From de40eb8df2adef3aea77adac615493b159cb0205 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 13 Dec 2008 09:10:55 +0000 Subject: 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 --- tests/regression.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/regression.sh') 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 -- cgit v1.2.3