summaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2018-07-06 14:53:33 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2018-07-10 10:12:38 +0530
commit0bd48ab2d9e463b75ef52c0eaa0cc00c4c385cce (patch)
treeb53d5b658676bba043f979d939dfb86fec8a3a19 /tests/fate-run.sh
parentfa19fbcf712a6a6cc5a5cfdc3254a97b9bce6582 (diff)
downloadffmpeg-streaming-0bd48ab2d9e463b75ef52c0eaa0cc00c4c385cce.zip
ffmpeg-streaming-0bd48ab2d9e463b75ef52c0eaa0cc00c4c385cce.tar.gz
fate: allow temp files for passed test to be kept
Set make variable KEEP to non-zero value to preserve temp files when a test has passed. Helpful in diagnosing failed tests when test outfile is some type of single hash and does not reveal differences in processed output.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 457761c..aece90a 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -25,6 +25,7 @@ cmp_unit=${15:-2}
gen=${16:-no}
hwaccel=${17:-none}
report_type=${18:-standard}
+keep=${19:-0}
outdir="tests/data/fate"
outfile="${outdir}/${test}"
@@ -428,7 +429,9 @@ if test $err != 0 && test $gen != "no" ; then
fi
if test $err = 0; then
- rm -f $outfile $errfile $cmpfile $cleanfiles
+ if test $keep = 0; then
+ rm -f $outfile $errfile $cmpfile $cleanfiles
+ fi
elif test $gen = "no"; then
echo "Test $test failed. Look at $errfile for details."
test "${V:-0}" -gt 0 && cat $errfile
OpenPOWER on IntegriCloud