aboutsummaryrefslogtreecommitdiffstats
path: root/tests/regression-funcs.sh
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2011-03-22 00:07:54 +0100
committerLuca Barbato <lu_zero@gentoo.org>2011-03-23 01:17:20 +0100
commit7851eb68c60e61497ec715f28f071c1527de1d38 (patch)
treeba61b42a9ca5e5558f5132e1bed3a0d9bb4cab22 /tests/regression-funcs.sh
parentee26abf2a4884bb56959bac8215758195776c553 (diff)
downloadffmpeg-7851eb68c60e61497ec715f28f071c1527de1d38.tar.gz
fate: add support for multithread testing
Add a THREADS variable to fate calls.
Diffstat (limited to 'tests/regression-funcs.sh')
-rwxr-xr-xtests/regression-funcs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index 3ca3c9c77a..148a255556 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -9,6 +9,7 @@ test_ref=$2
raw_src_dir=$3
target_exec=$4
target_path=$5
+threads=${6:-1}
datadir="./tests/data"
target_datadir="${target_path}/${datadir}"
@@ -52,7 +53,7 @@ echov(){
. $(dirname $0)/md5.sh
-FFMPEG_OPTS="-v 0 -y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact"
+FFMPEG_OPTS="-v 0 -threads $threads -y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact"
run_ffmpeg()
{