annotate tests/faterun.sh @ 34286:6a1d279b91c0

Support FFmpeg ADPCM IMA Electronic Arts SEAD decoding. Based on a patch by Paul B Mahol, onemda gmail
author cehoyos
date Fri, 02 Dec 2011 19:40:36 +0000
parents f6cce8c4ea66
children 6faf474f9ce3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34241
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
1 #!/bin/sh
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
2 i=$1
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
3 echo "running $i"
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
4 mkdir -p res/$(dirname $i)
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
5 touch res/$i.md5
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
6 ../mplayer -noconfig all -lavdopts threads=4:bitexact -really-quiet -noconsolecontrols -nosound -benchmark -vo md5sum:outfile=res/$i.md5 $FATE_SAMPLES/$i
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
7 ref_file=ref/$i.md5
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
8 if ! [ -e $ref_file ] ; then
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
9 touch ref/empty.md5
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
10 ref_file=ref/empty.md5
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
11 fi
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
12 if ! diff -uw $ref_file res/$i.md5 ; then
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
13 mv res/$i.md5 res/$i.md5.bad
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
14 exit 1
f6cce8c4ea66 Add beginnings of a test framework.
reimar
parents:
diff changeset
15 fi