]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-nspawn-tables: add another "tables" test 9103/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 May 2018 08:38:03 +0000 (10:38 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 May 2018 08:40:00 +0000 (10:40 +0200)
src/nspawn/meson.build
src/nspawn/test-nspawn-tables.c [new file with mode: 0644]

index f80339b335ebf1088c35ff48007c734515760d13..9ca463b370b5b2d9581741fb316809d4ee5b5843 100644 (file)
@@ -45,6 +45,11 @@ libnspawn_core = static_library(
 systemd_nspawn_sources = files('nspawn.c')
 
 tests += [
+        [['src/nspawn/test-nspawn-tables.c'],
+         [libnspawn_core,
+          libshared],
+         []],
+
         [['src/nspawn/test-patch-uid.c'],
          [libnspawn_core,
           libshared],
diff --git a/src/nspawn/test-nspawn-tables.c b/src/nspawn/test-nspawn-tables.c
new file mode 100644 (file)
index 0000000..2c5f2ef
--- /dev/null
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+
+#include "nspawn-settings.h"
+#include "test-tables.h"
+
+int main(int argc, char **argv) {
+        test_table(resolv_conf_mode, RESOLV_CONF_MODE);
+        test_table(timezone_mode, TIMEZONE_MODE);
+
+        return 0;
+}