summary refs log tree commit diff
path: root/src/libnm-core-impl/tests/meson.build
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2021-10-01 23:05:04 +0200
committerMichael Biebl <biebl@debian.org>2021-10-01 23:05:04 +0200
commite74c568b07b50b97873fb4ee1d776dedefbd54d6 (patch)
tree3469f17ea9af91f7ff169b890633bda68b0cf76e /src/libnm-core-impl/tests/meson.build
parentbfe522304da217296e2a61040f58e35ec5d6f3f2 (diff)
New upstream version 1.32.12 upstream/1.32.12
Diffstat (limited to 'src/libnm-core-impl/tests/meson.build')
-rw-r--r--src/libnm-core-impl/tests/meson.build49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/libnm-core-impl/tests/meson.build b/src/libnm-core-impl/tests/meson.build
new file mode 100644
index 00000000..988c60db
--- /dev/null
+++ b/src/libnm-core-impl/tests/meson.build
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+enum_sources = gnome.mkenums_simple(
+  'nm-core-tests-enum-types',
+  sources: 'test-general-enums.h',
+  identifier_prefix: nm_id_prefix,
+  body_prefix: '#include "libnm-core-impl/nm-default-libnm-core.h"',
+)
+
+test_units = [
+  'test-compare',
+  'test-crypto',
+  'test-general',
+  'test-keyfile',
+  'test-secrets',
+  'test-setting',
+  'test-settings-defaults',
+]
+
+foreach test_unit: test_units
+  exe = executable(
+    'libnm-core-' + test_unit,
+    [test_unit + '.c'] + enum_sources,
+    include_directories: [
+      libnm_core_impl_inc,
+    ],
+    dependencies: [
+      libnm_core_public_dep,
+    ],
+    link_with: [
+      libnm_core_aux_intern,
+      libnm_core_impl,
+      libnm_crypto,
+      libnm_base,
+      libnm_systemd_shared,
+      libnm_log_null,
+      libnm_glib_aux,
+      libnm_std_aux,
+      libc_siphash,
+    ],
+  )
+
+  test(
+    'src/libnm-core-impl/tests/' + test_unit,
+    test_script,
+    args: test_args + [exe.full_path()],
+    timeout: default_test_timeout,
+  )
+endforeach