diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2011-03-22 00:07:54 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-03-23 01:17:20 +0100 |
commit | 7851eb68c60e61497ec715f28f071c1527de1d38 (patch) | |
tree | ba61b42a9ca5e5558f5132e1bed3a0d9bb4cab22 /tests/fate-run.sh | |
parent | ee26abf2a4884bb56959bac8215758195776c553 (diff) | |
download | ffmpeg-7851eb68c60e61497ec715f28f071c1527de1d38.tar.gz |
fate: add support for multithread testing
Add a THREADS variable to fate calls.
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index c4a9a13e11..3a6b46b786 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -15,6 +15,7 @@ command=$5 cmp=${6:-diff} ref=${7:-"${base}/ref/fate/${test}"} fuzz=$8 +threads=${9:-1} outdir="tests/data/fate" outfile="${outdir}/${test}" @@ -48,7 +49,7 @@ run(){ } ffmpeg(){ - run ffmpeg -v 0 "$@" + run ffmpeg -v 0 -threads $threads "$@" } framecrc(){ @@ -77,7 +78,7 @@ regtest(){ cleanfiles="$cleanfiles $outfile $errfile" outfile=tests/data/regression/$2/$t errfile=tests/data/$t.$2.err - ${base}/${1}-regression.sh $t $2 $3 "$target_exec" "$target_path" + ${base}/${1}-regression.sh $t $2 $3 "$target_exec" "$target_path" "$threads" } codectest(){ |