diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-02-20 08:22:42 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-02-20 08:22:42 +0100 |
commit | 4b72f27de6706a6001e82b477b647ced30cc37b5 (patch) | |
tree | 74942f9fb6a26d6e5251972f0db606ab062fe985 | |
parent | 5ada931ede89d3401d4e434fb65bc53fff06535e (diff) |
build: Look for sh just once
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | tests/meson.build | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 435827c..28ee27a 100644 --- a/meson.build +++ b/meson.build @@ -91,6 +91,7 @@ gusb_dep = dependency('gusb', version: '>= 0.2.0') mathlib_dep = cc.find_library('m', required: false) # The following dependencies are only used for tests +sh = find_program('sh', required: true) cairo_dep = dependency('cairo', required: false) # introspection scanning and Gio-2.0.gir diff --git a/tests/meson.build b/tests/meson.build index f68ed40..8c8f5d0 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -151,7 +151,7 @@ if get_option('introspection') endif else test(vdtest, - find_program('sh'), + sh, args: ['-c', 'exit 77'] ) endif @@ -205,7 +205,7 @@ if get_option('introspection') endif else test(driver_test, - find_program('sh'), + sh, args: ['-c', 'exit 77'] ) endif @@ -224,13 +224,13 @@ if get_option('introspection') else warning('Skipping all driver tests as introspection bindings are missing') test('virtual-image', - find_program('sh'), + sh, args: ['-c', 'exit 77'] ) foreach driver_test: drivers_tests test(driver_test, - find_program('sh'), + sh, args: ['-c', 'exit 77'] ) endforeach @@ -273,7 +273,7 @@ foreach test_name: unit_tests # Create a dummy test that always skips instead warning('Test @0@ cannot be compiled due to missing dependencies'.format(test_name)) test(test_name, - find_program('sh'), + sh, suite: ['unit-tests'], args: ['-c', 'exit 77'], ) |