Mercurial > hg > pmhd
annotate ffmpeg/tests/copycooker.sh @ 13:844d341cf643 tip
Back up before ISMIR
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Thu, 31 Oct 2013 13:17:06 +0000 |
parents | f445c3017523 |
children |
rev | line source |
---|---|
yading@11 | 1 #!/bin/sh |
yading@11 | 2 |
yading@11 | 3 LC_ALL=C |
yading@11 | 4 export LC_ALL |
yading@11 | 5 |
yading@11 | 6 datadir="tests/data" |
yading@11 | 7 |
yading@11 | 8 logfile="$datadir/copy.regression" |
yading@11 | 9 reffile="$1" |
yading@11 | 10 |
yading@11 | 11 list=$(grep -oh ' ./tests/data/.*' tests/ref/{acodec,lavf,vsynth1}/*| sort) |
yading@11 | 12 rm -f $logfile |
yading@11 | 13 for i in $list ; do |
yading@11 | 14 echo ---------------- >> $logfile |
yading@11 | 15 echo $i >> $logfile |
yading@11 | 16 ./ffmpeg_g -flags +bitexact -i $i -acodec copy -vcodec copy -y first.nut |
yading@11 | 17 ./ffmpeg_g -flags +bitexact -i first.nut -acodec copy -vcodec copy -y second.nut |
yading@11 | 18 cmp first.nut second.nut >> $logfile |
yading@11 | 19 md5sum first.nut >> $logfile |
yading@11 | 20 done |
yading@11 | 21 |
yading@11 | 22 if diff -u -w "$reffile" "$logfile" ; then |
yading@11 | 23 echo |
yading@11 | 24 echo copy regression test: success |
yading@11 | 25 exit 0 |
yading@11 | 26 else |
yading@11 | 27 echo |
yading@11 | 28 echo copy regression test: error |
yading@11 | 29 exit 1 |
yading@11 | 30 fi |