diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-12-26 14:24:04 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-12-26 14:24:04 +0300 |
commit | 3d1470649c91aa9d325b94aef54fc15b8185356d (patch) | |
tree | a459a5b600df92fcfebf43a762616f47c79b01a1 /tests/ffserver-regression.sh | |
parent | b03a63d16ad940af629234aa4e80b813cc1f1dca (diff) |
Replace ` ` syntax by $( ) in regression test shell scripts.
The latter syntax variant is more readable and easier to nest.
Originally committed as revision 20924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/ffserver-regression.sh')
-rwxr-xr-x | tests/ffserver-regression.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ffserver-regression.sh b/tests/ffserver-regression.sh index 711e169006..592787d745 100755 --- a/tests/ffserver-regression.sh +++ b/tests/ffserver-regression.sh @@ -3,7 +3,7 @@ #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf #perl -e 'chomp($wd = `pwd`); print map { s!tests/data/!!; "<Stream $_.asf>\nFile $wd/tests/data/$_\n</Stream>\n\n" } @ARGV' tests/data/a* >> tests/data/ffserver.conf -FILES=`sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html` +FILES=$(sed -n 's/^[^#]*<Stream \(.*\)>.*/\1/p' $2 | grep -v html) rm -f tests/feed1.ffm ./ffserver -d -f "$2" 2> /dev/null & @@ -15,7 +15,7 @@ sleep 2 rm -f ff-*; WGET_OPTIONS="--user-agent=NSPlayer -q --proxy=off -e verbose=off -e server_response=off" for file in $FILES; do - if [ `expr $file : "a-*"` != 0 ]; then + if [ $(expr $file : "a-*") != 0 ]; then wget $WGET_OPTIONS -O - http://localhost:9999/$file > ff-$file else wget $WGET_OPTIONS -O - http://localhost:9999/$file?date=19700101T000000Z | dd bs=1 count=20000 > ff-$file 2>/dev/null |