about summary refs log tree commit diff
path: root/libnm-glib/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-glib/tests/meson.build')
-rw-r--r--libnm-glib/tests/meson.build30
1 files changed, 30 insertions, 0 deletions
diff --git a/libnm-glib/tests/meson.build b/libnm-glib/tests/meson.build
new file mode 100644
index 00000000..029b3c20
--- /dev/null
+++ b/libnm-glib/tests/meson.build
@@ -0,0 +1,30 @@
+deps = [
+  dbus_dep,
+  dbus_glib_dep,
+  libnm_glib_dep,
+  libnm_util_dep,
+  shared_dep
+]
+
+test_units = [
+  'test-nm-client',
+  'test-remote-settings-client'
+]
+
+foreach test_unit: test_units
+  exe = executable(
+    test_unit,
+    [test_unit + '.c'] + shared_test_utils,
+    dependencies: deps,
+    c_args: common_cflags + [
+      '-DNETWORKMANAGER_COMPILATION_TEST',
+      '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py')),
+    ],
+  )
+
+  test(
+    'libnm-glib/' + test_unit,
+    test_script,
+    args: test_args + [exe.full_path()]
+  )
+endforeach