From 7efe83996c02341aed6a28f43396a478979ce1bf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 May 2014 18:16:44 +0200 Subject: [PATCH] tests/fate-run: add runecho command to run a test and display its output Signed-off-by: Michael Niedermayer --- tests/fate-run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 35d79a6b71..74f4525b9e 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -71,6 +71,11 @@ run(){ $target_exec $target_path/"$@" } +runecho(){ + test "${V:-0}" -gt 0 && echo "$target_exec" $target_path/"$@" >&3 + $target_exec $target_path/"$@" >&3 +} + probefmt(){ run ffprobe -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@" }