[SCM] libav/experimental: get ride of perl and sort in ffserver regtest (and avoid problem with behavior of sort changing with locales)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:46:41 UTC 2013


The following commit has been merged in the experimental branch:
commit 927e193d3ab52fc7ce874e3aac310c2a1736b9ad
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Thu Feb 23 23:50:33 2006 +0000

    get ride of perl and sort in ffserver regtest (and avoid problem with behavior of sort changing with locales)
    
    Originally committed as revision 5058 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/tests/ffserver.regression.ref b/tests/ffserver.regression.ref
index af58444..a2f560c 100644
--- a/tests/ffserver.regression.ref
+++ b/tests/ffserver.regression.ref
@@ -1,12 +1,12 @@
-d41d8cd98f00b204e9800998ecf8427e  ff-test.jpg
-6ce0af834ee0abf4753df419f67648c5  ff-test.mjpg
-0f1795f0496f37aeea6272d272140efa  ff-test.swf
-f842864a654593ea9ee9d7a1bd024627  ff-test_h.asf
 03867bfc9f7dd494cbe2b71aa0ce6537  ff-test_h.avi
-d41d8cd98f00b204e9800998ecf8427e  ff-test_h.mpg
-71bfe6784e025f6eea9f92113d8c7dda  ff-test_h.rm
-5c12fa55e6b7fbade1b142ecf430a679  ff-test_l.asf
 ef4887809ddeb782ed66bf34cb506dcf  ff-test_l.avi
+d41d8cd98f00b204e9800998ecf8427e  ff-test_h.mpg
 d41d8cd98f00b204e9800998ecf8427e  ff-test_l.mpg
+0f1795f0496f37aeea6272d272140efa  ff-test.swf
+f842864a654593ea9ee9d7a1bd024627  ff-test_h.asf
+5c12fa55e6b7fbade1b142ecf430a679  ff-test_l.asf
+71bfe6784e025f6eea9f92113d8c7dda  ff-test_h.rm
 d5c1cc12240a4169abea3fb0fc7f4db3  ff-test_l.rm
+d41d8cd98f00b204e9800998ecf8427e  ff-test.jpg
 d41d8cd98f00b204e9800998ecf8427e  ff-test_small.jpg
+6ce0af834ee0abf4753df419f67648c5  ff-test.mjpg
diff --git a/tests/server-regression.sh b/tests/server-regression.sh
index b70a39a..b5edf6f 100755
--- a/tests/server-regression.sh
+++ b/tests/server-regression.sh
@@ -14,7 +14,7 @@ cp "$2" data/test.conf
 #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=`perl -n -e 'print \$1, "\n" if /<stream\\s+(\\S+)>/i' data/test.conf | sort`
+FILES=`sed -n 's/.*<Stream \(.*\)>.*/\1/p' data/test.conf | grep -v html`
 
 rm -f /tmp/feed.ffm
 ../ffserver -d -f data/test.conf 2> /dev/null &
@@ -35,7 +35,7 @@ sleep 2
     done
     wait
     # the status page is always different
-    md5sum $MDFILES | grep -v html > ffserver.regression
+    md5sum $MDFILES > ffserver.regression
 )
 kill $FFSERVER_PID
 wait > /dev/null 2>&1

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list