diff options
Diffstat (limited to 'src/tests/config/meson.build')
| -rw-r--r-- | src/tests/config/meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tests/config/meson.build b/src/tests/config/meson.build new file mode 100644 index 00000000..fb40d9a9 --- /dev/null +++ b/src/tests/config/meson.build @@ -0,0 +1,26 @@ +test_unit = 'test-config' + +sources = files( + 'nm-test-device.c', + 'test-config.c' +) + +test_config_dir = meson.current_source_dir() + +cflags = [ + '-DSRCDIR="@0@"'.format(test_config_dir), + '-DBUILDDIR="@0@"'.format(test_config_dir) +] + +exe = executable( + test_unit, + sources, + dependencies: test_nm_dep, + c_args: cflags +) + +test( + 'config/' + test_unit, + test_script, + args: test_args + [exe.full_path()] +) |