about summary refs log tree commit diff
path: root/src/settings/plugins/ifupdown/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-04-23 18:01:04 +0200
committerMichael Biebl <biebl@debian.org>2018-04-23 18:01:04 +0200
commitd00e17d14b5df5f7fcba1a17f91edbb3180fbf64 (patch)
tree2b16542fff332a3c38fb2191f7ae4d4795f66451 /src/settings/plugins/ifupdown/tests
parent2e03b565aa24225ca4992797a5d563542b0b2bdd (diff)
parentf60117b41d5433be1b4a96d82cd11d0c3dce9b63 (diff)
Update upstream source from tag 'upstream/1.11.3'
Update to upstream version '1.11.3'
with Debian dir a3a34e6c602cb81e76dc3c255c617e7f7ecfc11c
Diffstat (limited to 'src/settings/plugins/ifupdown/tests')
-rw-r--r--src/settings/plugins/ifupdown/tests/meson.build17
-rw-r--r--src/settings/plugins/ifupdown/tests/test-ifupdown.c2
2 files changed, 18 insertions, 1 deletions
diff --git a/src/settings/plugins/ifupdown/tests/meson.build b/src/settings/plugins/ifupdown/tests/meson.build
new file mode 100644
index 00000000..7f210034
--- /dev/null
+++ b/src/settings/plugins/ifupdown/tests/meson.build
@@ -0,0 +1,17 @@
+test_unit = 'test-ifupdown'
+
+cflags = '-DTEST_ENI_DIR="@0@"'.format(meson.current_source_dir())
+
+exe = executable(
+  test_unit,
+  test_unit + '.c',
+  dependencies: test_nm_dep,
+  c_args: cflags,
+  link_with: libnms_ifupdown_core
+)
+
+test(
+  'ifupdown/' + test_unit,
+  test_script,
+  args: test_args + [exe.full_path()]
+)
diff --git a/src/settings/plugins/ifupdown/tests/test-ifupdown.c b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
index d037b8a6..56515438 100644
--- a/src/settings/plugins/ifupdown/tests/test-ifupdown.c
+++ b/src/settings/plugins/ifupdown/tests/test-ifupdown.c
@@ -168,7 +168,7 @@ dump_blocks (void)
 	for (n = ifparser_getfirst (); n != NULL; n = n->next) {
 		if_data *m;
 
-		// each block start with its type & name 
+		// each block start with its type & name
 		// (single quotes used to show typ & name baoundaries)
 		g_print("'%s' '%s'\n", n->type, n->name);