summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-01-20 14:07:41 +0100
committerBastien Nocera <hadess@hadess.net>2022-01-20 14:07:41 +0100
commitee4b8916e5d6b915d34889d9b0340a9277a3b499 (patch)
tree5d986ffaf7b6fa5119eebce1610bf5dc791118de /tests
parent2c4714911d0da6c0c120240515b3d3a12e3c35b4 (diff)
downloadgnome-bluetooth-ee4b8916e5d6b915d34889d9b0340a9277a3b499.tar.gz
tests: Show skipped test when dbusmock isn't available
This would have made the CI fail a couple of commits earlier...
Diffstat (limited to 'tests')
-rwxr-xr-xtests/integration-test-skipped.sh3
-rw-r--r--tests/meson.build6
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/integration-test-skipped.sh b/tests/integration-test-skipped.sh
new file mode 100755
index 00000000..ac144944
--- /dev/null
+++ b/tests/integration-test-skipped.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exit 77
diff --git a/tests/meson.build b/tests/meson.build
index 1c9ce125..c895ed67 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -24,6 +24,12 @@ if enable_gir and has_dbusmock
endforeach
endif
+if not has_dbusmock
+ test('integration-test-skipped',
+ find_program('integration-test-skipped.sh'),
+ )
+endif
+
test_bluetooth_device = executable('test-bluetooth-device',
'test-bluetooth-device.c',
include_directories: lib_inc,