Mercurial > mplayer.hg
annotate tests/faterun.sh @ 37031:2c8fbf453871
menu: Add a few "const" to string arguments.
author | reimar |
---|---|
date | Sun, 06 Apr 2014 17:56:13 +0000 |
parents | 8d19b1ec5ea5 |
children |
rev | line source |
---|---|
34241 | 1 #!/bin/sh |
34440 | 2 if [ -z "$FATE_SAMPLES" ] ; then |
3 echo "FATE_SAMPLES is not set!" | |
4 exit 1 | |
5 fi | |
6 | |
7 sample="$1" | |
8 md5out="tests/res/$sample.md5" | |
9 ref_file="tests/ref/$sample.md5" | |
34449
8d19b1ec5ea5
Force "simple" IDCT to avoid different results on different PCs.
reimar
parents:
34445
diff
changeset
|
10 options="-noconfig all -lavdopts threads=4:bitexact:idct=2 -really-quiet -noconsolecontrols -nosound -benchmark" |
34445 | 11 if [ -z ${sample##h264-conformance/*} ] ; then |
12 # these files generally only work when a fps is given explicitly | |
13 options="$options -fps 25" | |
14 fi | |
34440 | 15 echo "testing $sample" |
16 | |
17 # create necessary files and run | |
18 mkdir -p $(dirname "$md5out") | |
19 touch "$md5out" | |
34445 | 20 ./mplayer $options -vo md5sum:outfile="$md5out" "$FATE_SAMPLES/$sample" |
34440 | 21 |
22 # check result | |
23 if ! [ -e "$ref_file" ] ; then | |
34418
6faf474f9ce3
build: Merge tests/Makefile into top-level Makefile and test non-recursively.
diego
parents:
34241
diff
changeset
|
24 touch tests/ref/empty.md5 |
6faf474f9ce3
build: Merge tests/Makefile into top-level Makefile and test non-recursively.
diego
parents:
34241
diff
changeset
|
25 ref_file=tests/ref/empty.md5 |
34241 | 26 fi |
34440 | 27 if ! diff -uw "$ref_file" "$md5out" ; then |
28 mv "$md5out" "$md5out.bad" | |
34241 | 29 exit 1 |
30 fi |