mirror of https://github.com/FFmpeg/FFmpeg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
17 years ago
|
#!/bin/sh
|
||
19 years ago
|
|
||
16 years ago
|
#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
|
||
|
#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
|
||
22 years ago
|
|
||
18 years ago
|
FILES=`sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html`
|
||
22 years ago
|
|
||
18 years ago
|
rm -f tests/feed1.ffm
|
||
17 years ago
|
./ffserver -d -f "$2" 2> /dev/null &
|
||
22 years ago
|
FFSERVER_PID=$!
|
||
18 years ago
|
echo "Waiting for feeds to startup..."
|
||
17 years ago
|
sleep 2
|
||
22 years ago
|
(
|
||
18 years ago
|
cd tests/data || exit $?
|
||
22 years ago
|
rm -f ff-*;
|
||
19 years ago
|
WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off"
|
||
22 years ago
|
for file in $FILES; do
|
||
19 years ago
|
if [ `expr $file : "a-*"` != 0 ]; then
|
||
17 years ago
|
wget $WGET_OPTIONS -O - http://localhost:9999/$file > ff-$file
|
||
22 years ago
|
else
|
||
17 years ago
|
wget $WGET_OPTIONS -O - http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=20000 > ff-$file 2>/dev/null
|
||
22 years ago
|
fi
|
||
|
MDFILES="$MDFILES ff-$file"
|
||
19 years ago
|
done
|
||
22 years ago
|
wait
|
||
|
# the status page is always different
|
||
19 years ago
|
md5sum $MDFILES > ffserver.regression
|
||
22 years ago
|
)
|
||
|
kill $FFSERVER_PID
|
||
|
wait > /dev/null 2>&1
|
||
18 years ago
|
rm -f tests/feed1.ffm
|
||
17 years ago
|
if diff -u tests/data/ffserver.regression "$1" ; then
|
||
19 years ago
|
echo
|
||
22 years ago
|
echo Server regression test succeeded.
|
||
|
exit 0
|
||
|
else
|
||
19 years ago
|
echo
|
||
22 years ago
|
echo Server regression test: Error.
|
||
|
exit 1
|
||
|
fi
|