about summary refs log tree commit diff
path: root/src/initrd/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-03-31 10:11:55 +0200
committerMichael Biebl <biebl@debian.org>2019-03-31 10:11:55 +0200
commit4b96345400eafd4bfc70fd77ef19e026d690aca0 (patch)
treefed6aa242532689235f5333132ff98b82961765f /src/initrd/tests
parent8ea1145a9e031c8021590abf780dd7c149e231cf (diff)
parentf66fcea265a5869667d832386e9337237a44afef (diff)
Merge branch 'master' into stretch-backports
Diffstat (limited to 'src/initrd/tests')
-rw-r--r--src/initrd/tests/meson.build23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/initrd/tests/meson.build b/src/initrd/tests/meson.build
new file mode 100644
index 00000000..6b316d4e
--- /dev/null
+++ b/src/initrd/tests/meson.build
@@ -0,0 +1,23 @@
+test_units = [
+  '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,
+    link_with: libnmi_core
+  )
+  test(
+    'initrd/' + test_unit,
+    test_script,
+    args: test_args + [exe.full_path()]
+  )
+endforeach