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, +)