Statistics
| Branch: | Revision:

ffmpeg / tests / server-regression.sh @ bc15b8ef

History | View | Annotate | Download (712 Bytes)

1
#!/bin/bash
2

    
3
FILES=`perl -n -e 'print \$1, " " if /<stream\\s+(\\S+)>/i' test.conf`
4

    
5
rm -f /tmp/feed.ffm
6
../ffserver -d -f test.conf 2> /dev/null &
7
FFSERVER_PID=$!
8
sleep 1
9
(
10
    cd data
11
    rm -f $FILES;
12
    for file in $FILES; do
13
        wget --user-agent=NSPlayer -q --output-document=- http://localhost:9999/$file?date=19700101T000000Z | head --bytes=100000 > $file &
14
    done    
15
    wait
16
    # the status page is always different
17
    md5sum $FILES | grep -v html > ffserver.regression
18
)
19
kill $FFSERVER_PID
20
wait > /dev/null 2>&1
21
if diff -u data/ffserver.regression $1 ; then
22
    echo 
23
    echo Server regression test succeeded.
24
    exit 0
25
else
26
    echo 
27
    echo Server regression test: Error.
28
    exit 1
29
fi