$OpenBSD: patch-tests_regression_sh,v 1.5 2008/07/09 01:57:44 jakemsr Exp $ --- tests/regression.sh.orig Sat May 24 22:01:10 2008 +++ tests/regression.sh Fri Jun 20 22:38:19 2008 @@ -17,7 +17,8 @@ outfile="$datadir/$4-" eval do_$test=y # various files -ffmpeg="./ffmpeg_g" +# ffmpeg="./ffmpeg_g" +ffmpeg="env LD_LIBRARY_PATH=./libavcodec:./libavutil:./libavformat:./libswscale ./ffmpeg_g" tiny_psnr="tests/tiny_psnr" benchfile="$datadir/$this.bench" bench="$datadir/$this.bench.tmp" @@ -34,6 +35,8 @@ if [ X"`echo | md5sum 2> /dev/null`" != X ]; then do_md5sum() { md5sum -b $1; } elif [ -x /sbin/md5 ]; then do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; } +elif [ -x /bin/md5 ]; then + do_md5sum() { /bin/md5 $1 | sed 's/[)(]//g' | awk '{print $NF " *"$2}'; } else do_md5sum() { echo No md5sum program found; } fi