summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2019-08-01 19:49:35 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2019-08-02 12:42:26 -0400
commit08693dbec10f1daf5530bf11856538907a25c6ee (patch)
treeb64e823dfedd0dc528eedb64c2bd0a270a367d46
parent549f957696ecc0e93f9d6f377927001928b7225e (diff)
downloadlibnice-08693dbec10f1daf5530bf11856538907a25c6ee.tar.gz
meson.build: Simplify shell based test checks
-rw-r--r--tests/meson.build14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/meson.build b/tests/meson.build
index 4cb1cb1..91fc76f 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -85,14 +85,12 @@ if gst_dep.found()
endif
endif
-if find_program('sh', required : false).found()
- dd = find_program('dd', required : false)
- diff = find_program('diff', required : false)
- if dd.found() and diff.found()
- test('test-pseudotcp-random', find_program('test-pseudotcp-random.sh'),
- args: test_pseudotcp,
- env: tenv)
- endif
+if find_program('sh', required : false).found() and \
+ find_program('dd', required : false).found() and \
+ find_program('diff', required : false).found()
+ test('test-pseudotcp-random', find_program('test-pseudotcp-random.sh'),
+ args: test_pseudotcp,
+ env: tenv)
endif
debugenv = environment()