summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2015-10-24 15:39:18 +0200
committerMarton Balint <cus@passwd.hu>2015-11-15 19:22:46 +0100
commita01046c90c9a8ace6105fcef6cd7964edae62357 (patch)
treecc3fcff927cf7e741616213ab79fb294615dfaa7 /tests/fate-run.sh
parent7ad698e24e6b9dde57c4e01c145bcddfe9d6e4a3 (diff)
fate: add concat demuxer tests
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index a3938dc085..38dc334a0e 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -249,6 +249,26 @@ gapless(){
do_md5sum $decfile3
}
+concat(){
+ template=$1
+ sample=$(target_path $2)
+ mode=$3
+ extra_args=$4
+
+ concatfile="${outdir}/${test}.ffconcat"
+ packetfile="${outdir}/${test}.ffprobe"
+ cleanfiles="$concatfile $packetfile"
+
+ awk "{gsub(/%SRCFILE%/, \"$sample\"); print}" $template > $concatfile
+
+ if [ "$mode" = "md5" ]; then
+ run ffprobe${PROGSUF} -show_streams -show_packets -v 0 -fflags keepside -safe 0 $extra_args $concatfile > $packetfile
+ do_md5sum $packetfile
+ else
+ run ffprobe${PROGSUF} -show_streams -show_packets -v 0 -of compact=p=0:nk=1 -fflags keepside -safe 0 $extra_args $concatfile
+ fi
+}
+
mkdir -p "$outdir"
# Disable globbing: command arguments may contain globbing characters and