diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-04-24 03:59:33 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-04-24 03:59:33 +0000 |
commit | 8c0ff5d5c28df0cda89f31cda2df2fcdf8fd85bb (patch) | |
tree | ab6b59970eb72f865cde043fa9b177d2af9d91b0 /tests/server-regression.sh | |
parent | 546031ee868c2b1b61c5878051e50c2bbad34096 (diff) | |
download | ffmpeg-8c0ff5d5c28df0cda89f31cda2df2fcdf8fd85bb.tar.gz |
* Making AVI encoding predictable (all JUNK chunks are filled with 0)
* Updating regression refs
* Making server-regression.sh work on Solaris
Originally committed as revision 1818 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/server-regression.sh')
-rwxr-xr-x | tests/server-regression.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/server-regression.sh b/tests/server-regression.sh index e83df6041c..0e612716dd 100755 --- a/tests/server-regression.sh +++ b/tests/server-regression.sh @@ -1,5 +1,12 @@ #!/bin/bash - +# Even in the 21st century some diffs are not supporting -u. +diff -u $0 $0 > /dev/null 2>&1 +if [ $? -eq 0 ]; then + diff_cmd="diff -u" +else + diff_cmd="diff" +fi + # Make sure that the data directory exists mkdir -p data @@ -22,7 +29,7 @@ sleep 2 if [ `expr match $file "a-*"` -ne 0 ]; then wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file > ff-$file & else - wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file?date=19700101T000000Z | head --bytes=100000 > ff-$file & + wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=100000 > ff-$file 2>/dev/null & fi MDFILES="$MDFILES ff-$file" done @@ -32,7 +39,7 @@ sleep 2 ) kill $FFSERVER_PID wait > /dev/null 2>&1 -if diff -u data/ffserver.regression $1 ; then +if $diff_cmd data/ffserver.regression $1 ; then echo echo Server regression test succeeded. exit 0 |