From 08693dbec10f1daf5530bf11856538907a25c6ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 1 Aug 2019 19:49:35 -0400 Subject: meson.build: Simplify shell based test checks --- tests/meson.build | 14 ++++++-------- 1 file 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() -- cgit v1.2.1