summaryrefslogtreecommitdiff
path: root/src/initrd/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/initrd/tests')
-rw-r--r--src/initrd/tests/meson.build11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/initrd/tests/meson.build b/src/initrd/tests/meson.build
index 6a508d3d8b..5dd2873cc1 100644
--- a/src/initrd/tests/meson.build
+++ b/src/initrd/tests/meson.build
@@ -1,21 +1,20 @@
+c_flags = test_c_flags + ['-DTEST_INITRD_DIR="@0@"'.format(meson.current_source_dir())]
+
test_units = [
'test-dt-reader',
'test-ibft-reader',
'test-cmdline-reader',
]
-cflags = [
- '-DTEST_INITRD_DIR="@0@"'.format(meson.current_source_dir()),
-]
-
foreach test_unit : test_units
exe = executable(
test_unit,
test_unit + '.c',
- dependencies: test_nm_dep,
- c_args: cflags,
+ dependencies: libnetwork_manager_test_dep,
+ c_args: c_flags,
link_with: libnmi_core,
)
+
test(
'initrd/' + test_unit,
test_script,