Add entry for AVFilterPicRef interlaced and top_field_first fields
[libav.git] / tests / ffserver-regression.sh
CommitLineData
2d83fe90 1#!/bin/sh
115329f1 2
688a4773
DB
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#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
d746f928 5
fc8cb398 6. $(dirname $0)/md5.sh
66d23c96 7
3d147064 8FILES=$(sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html)
e2b2851e 9
4fbd52f0 10rm -f tests/feed1.ffm
968ae1d9 11./ffserver -d -f "$2" 2> /dev/null &
e2b2851e 12FFSERVER_PID=$!
508826f9 13echo "Waiting for feeds to startup..."
626932fd 14sleep 2
e2b2851e 15(
4fbd52f0 16 cd tests/data || exit $?
21f7ab7a 17 rm -f ff-* ffserver.regression
bf40937b 18 WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off"
e2b2851e 19 for file in $FILES; do
3d147064 20 if [ $(expr $file : "a-*") != 0 ]; then
fd83ad7f 21 wget $WGET_OPTIONS -O - http://localhost:9999/$file > ff-$file
d746f928 22 else
fd83ad7f 23 wget $WGET_OPTIONS -O - http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=20000 > ff-$file 2>/dev/null
d746f928 24 fi
21f7ab7a 25 do_md5sum ff-$file >>ffserver.regression
115329f1 26 done
e2b2851e
PG
27)
28kill $FFSERVER_PID
29wait > /dev/null 2>&1
4fbd52f0 30rm -f tests/feed1.ffm
21f7ab7a 31if diff -u "$1" tests/data/ffserver.regression; then
115329f1 32 echo
e2b2851e
PG
33 echo Server regression test succeeded.
34 exit 0
35else
115329f1 36 echo
e2b2851e
PG
37 echo Server regression test: Error.
38 exit 1
39fi