VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/tests/server-regression.sh@ 8459

最後變更 在這個檔案從8459是 5776,由 vboxsync 提交於 17 年 前

ffmpeg: exported to OSE

  • 屬性 svn:executable 設為 *
檔案大小: 1.5 KB
 
1#!/bin/bash
2# Even in the 21st century some diffs are not supporting -u.
3diff -u $0 $0 > /dev/null 2>&1
4if [ $? -eq 0 ]; then
5 diff_cmd="diff -u"
6else
7 diff_cmd="diff"
8fi
9
10# Make sure that the data directory exists
11mkdir -p data
12
13cp "$2" data/test.conf
14#perl -e 'chomp($wd = `pwd`); print map { s!data/!!; "<Stream $_>\nFile $wd/data/$_\n</Stream>\n\n" } @ARGV' data/a* >> data/test.conf
15#perl -e 'chomp($wd = `pwd`); print map { s!data/!!; "<Stream $_.asf>\nFile $wd/data/$_\n</Stream>\n\n" } @ARGV' data/a* >> data/test.conf
16
17FILES=`sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' data/test.conf | grep -v html`
18
19rm -f /tmp/feed.ffm
20../ffserver -d -f data/test.conf 2> /dev/null &
21FFSERVER_PID=$!
22echo "Waiting for feeds to startup..."
23sleep 2
24(
25 cd data || exit $?
26 rm -f ff-*;
27 WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off"
28 for file in $FILES; do
29 if [ `expr $file : "a-*"` != 0 ]; then
30 wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file > ff-$file &
31 else
32 wget $WGET_OPTIONS --output-document=- http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=100000 > ff-$file 2>/dev/null &
33 fi
34 MDFILES="$MDFILES ff-$file"
35 done
36 wait
37 # the status page is always different
38 md5sum $MDFILES > ffserver.regression
39)
40kill $FFSERVER_PID
41wait > /dev/null 2>&1
42if $diff_cmd data/ffserver.regression $1 ; then
43 echo
44 echo Server regression test succeeded.
45 exit 0
46else
47 echo
48 echo Server regression test: Error.
49 exit 1
50fi
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette