diff options
author | John Dalgliesh <johnd@defyne.org> | 2004-02-28 15:15:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-28 15:15:58 +0000 |
commit | 853d659d6fed7903726300a0b06cbe3c73236800 (patch) | |
tree | aa842ca6d1ddd7e6bdafa062bd96bed832062fb4 /tests/regression.sh | |
parent | aab34ca0c5bbffd06aaa3718151ef1662860da3a (diff) | |
download | ffmpeg-853d659d6fed7903726300a0b06cbe3c73236800.tar.gz |
os x md5sum patch by (John Dalgliesh <johnd at defyne dot org>)
Originally committed as revision 2824 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/regression.sh')
-rwxr-xr-x | tests/regression.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/regression.sh b/tests/regression.sh index f12925709e..b9fa0d4a78 100755 --- a/tests/regression.sh +++ b/tests/regression.sh @@ -24,6 +24,7 @@ if [ "$1" = "mpeg4" ] ; then do_mpeg4=y elif [ "$1" = "mpeg" ] ; then do_mpeg=y + do_mpeg2=y elif [ "$1" = "ac3" ] ; then do_ac3=y elif [ "$1" = "libavtest" ] ; then @@ -73,6 +74,13 @@ raw_dst="$datadir/out.yuv" raw_ref="$datadir/ref.yuv" pcm_src="asynth1.sw" pcm_dst="$datadir/out.wav" +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# \**\./# *./#'; } +else + do_md5sum() { echo No md5sum program found; } +fi # create the data directory if it does not exists mkdir -p $datadir @@ -85,7 +93,7 @@ do_ffmpeg() $ffmpeg -y -bitexact -dct_algo 1 -idct_algo 2 -benchmark $* > $datadir/bench.tmp 2> /tmp/ffmpeg$$ egrep -v "^(Stream|Press|Input|Output|frame| Stream| Duration)" /tmp/ffmpeg$$ || true rm -f /tmp/ffmpeg$$ - md5sum -b $f >> $logfile + do_md5sum $f >> $logfile if [ $f = $raw_dst ] ; then $tiny_psnr $f $raw_ref >> $logfile fi |