Commit 08693dbe authored by Olivier Crête's avatar Olivier Crête

meson.build: Simplify shell based test checks

parent 549f9576
...@@ -85,14 +85,12 @@ if gst_dep.found() ...@@ -85,14 +85,12 @@ if gst_dep.found()
endif endif
endif endif
if find_program('sh', required : false).found() if find_program('sh', required : false).found() and \
dd = find_program('dd', required : false) find_program('dd', required : false).found() and \
diff = find_program('diff', required : false) find_program('diff', required : false).found()
if dd.found() and diff.found()
test('test-pseudotcp-random', find_program('test-pseudotcp-random.sh'), test('test-pseudotcp-random', find_program('test-pseudotcp-random.sh'),
args: test_pseudotcp, args: test_pseudotcp,
env: tenv) env: tenv)
endif
endif endif
debugenv = environment() debugenv = environment()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment