tests/fate-run: add runecho command to run a test and display its output
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 May 2014 16:16:44 +0000 (18:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 14 May 2014 23:43:29 +0000 (01:43 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate-run.sh

index 35d79a6..74f4525 100755 (executable)
@@ -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 "$@"
 }