From 05c7a7702277e522579474abccd2e0cf16d42dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Tue, 24 Sep 2019 12:56:09 +0200 Subject: [PATCH] meson: Add missing "nm-bt-test" helper program In 878d4963e a new `nm-bt-test` helper program was added. However, although `autotools` build steps were included, meson build steps were not. This add meson's build steps. --- Makefile.am | 4 +++- src/devices/bluetooth/meson.build | 2 ++ src/devices/bluetooth/tests/meson.build | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/devices/bluetooth/tests/meson.build diff --git a/Makefile.am b/Makefile.am index 95238324a4..3cae931805 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3486,7 +3486,9 @@ check_local += check-local-devices-bluetooth endif EXTRA_DIST += \ - src/devices/bluetooth/meson.build + src/devices/bluetooth/meson.build \ + src/devices/bluetooth/tests/meson.build \ + $(NULL) ############################################################################### # src/devices/wifi diff --git a/src/devices/bluetooth/meson.build b/src/devices/bluetooth/meson.build index d3489871f2..7854d1756e 100644 --- a/src/devices/bluetooth/meson.build +++ b/src/devices/bluetooth/meson.build @@ -34,3 +34,5 @@ test( check_exports, args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices], ) + +subdir('tests') diff --git a/src/devices/bluetooth/tests/meson.build b/src/devices/bluetooth/tests/meson.build new file mode 100644 index 0000000000..19b1955d17 --- /dev/null +++ b/src/devices/bluetooth/tests/meson.build @@ -0,0 +1,8 @@ +test_unit = 'nm-bt-test' + +executable( + test_unit, + test_unit + '.c', + dependencies: libnetwork_manager_test_dep, + c_args: test_c_flags, +)