The server configuration file is passed as a command line parameter.
authorDiego Biurrun <diego@biurrun.de>
Thu, 7 Jun 2007 21:36:58 +0000 (21:36 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 7 Jun 2007 21:36:58 +0000 (21:36 +0000)
Originally committed as revision 9254 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/server-regression.sh

index 1f561aa..290afd0 100755 (executable)
@@ -13,7 +13,7 @@ mkdir -p data
 #perl -e 'chomp($wd = `pwd`); print map { s!data/!!; "<Stream $_>\nFile $wd/data/$_\n</Stream>\n\n" } @ARGV' data/a* >> data/test.conf
 #perl -e 'chomp($wd = `pwd`); print map { s!data/!!; "<Stream $_.asf>\nFile $wd/data/$_\n</Stream>\n\n" } @ARGV' data/a* >> data/test.conf
 
-FILES=`sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' test.conf | grep -v html`
+FILES=`sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html`
 
 rm -f feed1.ffm
 ../ffserver -d -f test.conf 2> /dev/null &