summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-12-13 09:10:55 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-12-13 09:10:55 +0000
commitde40eb8df2adef3aea77adac615493b159cb0205 (patch)
tree4e2d3fa3232cb0fefa8f1dbe9a6652b972a4a39f /tests
parentd88f7df899072b956ee6dbfae91a4afc48726821 (diff)
Fix regression.sh to work on OpenBSD which has md5 instead of md5sum
but it is in the path (/bin), not /sbin. Originally committed as revision 16088 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests')
-rwxr-xr-xtests/regression.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regression.sh b/tests/regression.sh
index e89e55ef79..529a7036fb 100755
--- a/tests/regression.sh
+++ b/tests/regression.sh
@@ -37,6 +37,8 @@ target_crcfile="$target_datadir/$this.crc"
if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
do_md5sum() { md5sum -b $1; }
+elif [ X"`echo | md5 2> /dev/null`" != X ]; then
+ do_md5sum() { md5 -r $1 | sed 's# \**\./# *./#'; }
elif [ -x /sbin/md5 ]; then
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
else