summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 40a4fe2f6d..dcfbc842da 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -85,6 +85,16 @@ pcm(){
avconv "$@" -vn -f s16le -
}
+enc_dec_pcm(){
+ out_fmt=$1
+ pcm_fmt=$2
+ shift 2
+ encfile="${outdir}/${test}.${out_fmt}"
+ cleanfiles=$encfile
+ avconv -i $ref "$@" -f $out_fmt -y $encfile || return
+ avconv -i $encfile -c:a pcm_${pcm_fmt} -f wav -
+}
+
regtest(){
t="${test#$2-}"
ref=${base}/ref/$2/$t