summaryrefslogtreecommitdiff
path: root/libnm/tests
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-05-30 10:23:17 +0200
committerThomas Haller <thaller@redhat.com>2018-05-31 15:59:38 +0200
commitb7426e91dbcbc9080e0018a43efd0aec1f5fc5ba (patch)
tree22481b509a9bc114f4180987877b75ce3455e77b /libnm/tests
parent7fcf33908be0ec10c7ed8a2a36bf8bf516058f5e (diff)
downloadNetworkManager-b7426e91dbcbc9080e0018a43efd0aec1f5fc5ba.tar.gz
build: use default NM_BUILD_* defines for tests
Use two common defines NM_BUILD_SRCDIR and NM_BUILD_BUILDDIR for specifying the location of srcdir and builddir. Note that this is only relevant for tests, as they expect a certain layout of the directories, to find files that concern them.
Diffstat (limited to 'libnm/tests')
-rw-r--r--libnm/tests/meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm/tests/meson.build b/libnm/tests/meson.build
index c47814b336..54a1bf3289 100644
--- a/libnm/tests/meson.build
+++ b/libnm/tests/meson.build
@@ -13,8 +13,7 @@ deps = [
cflags = [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
- '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tools', 'test-networkmanager-service.py'))
-]
+] + nm_build_cflags
foreach test_unit: test_units
exe = executable(