want_tests = get_option('tests')
slow_tests = want_tests != 'false' and get_option('slow-tests')
fuzz_tests = want_tests != 'false' and get_option('fuzz-tests')
+integration_tests = want_tests != 'false' and get_option('integration-tests')
install_tests = want_tests != 'false' and get_option('install-tests')
if add_languages('cpp', native : false, required : fuzzer_build)
#####################################################################
mkosi = find_program('mkosi', required : false)
+if integration_tests and not mkosi.found()
+ error('Could not find mkosi which is required to run the integration tests')
+endif
+
+mkosi_depends = public_programs
+
+foreach executable : ['systemd-journal-remote', 'systemd-measure']
+ if executable in executables_by_name
+ mkosi_depends += [executables_by_name[executable]]
+ endif
+endforeach
+
if mkosi.found()
custom_target('mkosi',
build_always_stale : true,
'--build-dir', meson.current_build_dir() / 'mkosi.builddir',
'--force',
'--debug',
- 'build'
- ],
- depends : public_programs + [
- executables_by_name['systemd-journal-remote'],
- executables_by_name['systemd-measure'],
- ukify,
+ 'build',
],
+ depends : mkosi_depends,
)
endif