summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-03-21 04:18:48 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-22 09:42:05 +0100
commit14478b6c3820339442d8c96b701d021499de0827 (patch)
treecc908f6cc8ed1d5915b095a657b11d66e87a978a /tests/fate-run.sh
parent30d1213ecd59e096cff35713208c8906e241f64e (diff)
fate: add audiomatch
Testset provided by Justin Greer <justin@zencoder.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 5631267a1c..68b552cd3f 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -277,6 +277,18 @@ gaplessenc(){
probegaplessinfo "$file1"
}
+audio_match(){
+ sample=$(target_path $1)
+ trefile=$(target_path $2)
+ extra_args=$3
+
+ decfile="${outdir}/${test}.wav"
+ cleanfiles="$cleanfiles $decfile"
+
+ ffmpeg -i "$sample" -flags +bitexact -fflags +bitexact $extra_args -y $decfile
+ tests/audiomatch $decfile $trefile
+}
+
concat(){
template=$1
sample=$2