diff --git a/src/devices/bluetooth/meson.build b/src/devices/bluetooth/meson.build index 63c47bcba9..a77ad60d46 100644 --- a/src/devices/bluetooth/meson.build +++ b/src/devices/bluetooth/meson.build @@ -35,11 +35,13 @@ test( args: [libnm_device_plugin_bluetooth.full_path(), linker_script_devices], ) -test_unit = 'nm-bt-test' +if enable_tests + test_unit = 'nm-bt-test' -executable( - test_unit, - 'tests/' + test_unit + '.c', - dependencies: libnetwork_manager_test_dep, - c_args: test_c_flags, -) + executable( + test_unit, + 'tests/' + test_unit + '.c', + dependencies: libnetwork_manager_test_dep, + c_args: test_c_flags, + ) +endif