Revision fc8cb398

View differences:

tests/ffserver-regression.sh
3 3
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
4 4
#perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf
5 5

  
6
. $(dirname $0)/regression-funcs.sh
6
. $(dirname $0)/md5.sh
7 7

  
8 8
FILES=$(sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html)
9 9

  
tests/md5.sh
1
# try to find an md5 program
2

  
3
if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
4
    do_md5sum() { md5sum -b $1; }
5
elif [ X"$(echo | md5 2> /dev/null)" != X ]; then
6
    do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
7
elif [ -x /sbin/md5 ]; then
8
    do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
9
else
10
    do_md5sum() { echo No md5sum program found; }
11
fi
tests/regression-funcs.sh
39 39
[ "${V-0}" -gt 0 ] && echov=echo || echov=:
40 40
[ "${V-0}" -gt 1 ] || exec 2>$errfile
41 41

  
42
if [ X"$(echo | md5sum 2> /dev/null)" != X ]; then
43
    do_md5sum() { md5sum -b $1; }
44
elif [ X"$(echo | md5 2> /dev/null)" != X ]; then
45
    do_md5sum() { md5 $1 | sed 's#MD5 (\(.*\)) = \(.*\)#\2 *\1#'; }
46
elif [ -x /sbin/md5 ]; then
47
    do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
48
else
49
    do_md5sum() { echo No md5sum program found; }
50
fi
42
. $(dirname $0)/md5.sh
51 43

  
52 44
FFMPEG_OPTS="-v 0 -y -flags +bitexact -dct fastint -idct simple -sws_flags +accurate_rnd+bitexact"
53 45

  

Also available in: Unified diff