diff tests/faterun.sh @ 34445:1b8e44d85ef7

Fix testing of H.264 conformance tests. Most of them need -fps to be accepted. This obviously should be fixed, but is really low priority, so work around it instead.
author reimar
date Sun, 08 Jan 2012 10:47:41 +0000
parents 57d1ace7fb63
children 8d19b1ec5ea5
line wrap: on
line diff
--- a/tests/faterun.sh	Sun Jan 08 10:44:00 2012 +0000
+++ b/tests/faterun.sh	Sun Jan 08 10:47:41 2012 +0000
@@ -7,12 +7,17 @@
 sample="$1"
 md5out="tests/res/$sample.md5"
 ref_file="tests/ref/$sample.md5"
+options="-noconfig all -lavdopts threads=4:bitexact -really-quiet -noconsolecontrols -nosound -benchmark"
+if [ -z ${sample##h264-conformance/*} ] ; then
+  # these files generally only work when a fps is given explicitly
+  options="$options -fps 25"
+fi
 echo "testing $sample"
 
 # create necessary files and run
 mkdir -p $(dirname "$md5out")
 touch "$md5out"
-./mplayer -noconfig all -lavdopts threads=4:bitexact -really-quiet -noconsolecontrols -nosound -benchmark -vo md5sum:outfile="$md5out" "$FATE_SAMPLES/$sample"
+./mplayer $options -vo md5sum:outfile="$md5out" "$FATE_SAMPLES/$sample"
 
 # check result
 if ! [ -e "$ref_file" ] ; then