diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-12-12 19:53:05 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-12-12 19:53:05 +0000 |
commit | e2b2851e5aaba85c42ba527a47375f93abe361df (patch) | |
tree | d57a3f18c230f3b099470c9de9555e6c42cf3260 /tests/server-regression.sh | |
parent | 96d9cb220b3705cfb9e82befaedb72b6accc1240 (diff) | |
download | ffmpeg-e2b2851e5aaba85c42ba527a47375f93abe361df.tar.gz |
First shot at the ffserver regression tests. All feedback received with
interest
Originally committed as revision 1336 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/server-regression.sh')
-rwxr-xr-x | tests/server-regression.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/server-regression.sh b/tests/server-regression.sh new file mode 100755 index 0000000000..d5a41c5f1f --- /dev/null +++ b/tests/server-regression.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +FILES=`perl -n -e 'print \$1, " " if /<stream\\s+(\\S+)>/i' test.conf` + +rm -f /tmp/feed.ffm +../ffserver -d -f test.conf 2> /dev/null & +FFSERVER_PID=$! +sleep 1 +( + cd data + for file in $FILES; do + wget --user-agent=NSPlayer -q --output-document=- http://localhost:9999/$file?date=19700101T000000Z | head --bytes=100000 > $file & + done + wait + # the status page is always different + md5sum $FILES | grep -v html > ffserver.regression +) +kill $FFSERVER_PID +wait > /dev/null 2>&1 +if diff -u data/ffserver.regression $1 ; then + echo + echo Server regression test succeeded. + exit 0 +else + echo + echo Server regression test: Error. + exit 1 +fi |