diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-18 20:19:30 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-18 20:19:30 +0000 |
commit | 2b18c451bda2f12e30bb598af2c234031558d68a (patch) | |
tree | f767b4b33bfc8ceba217fbc6d76415bcefab05b2 | |
parent | f0388cf7168e0b56ce591ef7b48eb8e0ee459034 (diff) | |
download | ffmpeg-2b18c451bda2f12e30bb598af2c234031558d68a.tar.gz |
fate: add some helper functions to simplify test rules
Originally committed as revision 24314 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | tests/fate-run.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 541f87a524..015aab4291 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -35,6 +35,30 @@ stddev(){ do_tiny_psnr "$1" "$2" stddev '<=' ${fuzz:-1} } +ffmpeg(){ + $target_exec $target_path/ffmpeg "$@" +} + +framecrc(){ + ffmpeg "$@" -f framecrc - +} + +framemd5(){ + ffmpeg "$@" -f framemd5 - +} + +crc(){ + ffmpeg "$@" -f crc - +} + +md5(){ + ffmpeg "$@" md5: +} + +pcm(){ + ffmpeg "$@" -vn -f s16le - +} + if ! test -e "$ref"; then echo "reference file '$ref' not found" exit 1 |