[gnome-bluetooth/wip/hadess/more-tests-fun: 3/3] tests: Show skipped test when dbusmock isn't available




commit ee4b8916e5d6b915d34889d9b0340a9277a3b499
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jan 20 14:07:41 2022 +0100

    tests: Show skipped test when dbusmock isn't available
    
    This would have made the CI fail a couple of commits earlier...

 tests/integration-test-skipped.sh | 3 +++
 tests/meson.build                 | 6 ++++++
 2 files changed, 9 insertions(+)
---
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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]