| OLD | NEW |
| 1 #! /bin/sh | 1 #! /bin/sh |
| 2 | 2 |
| 3 export LC_ALL=C |
| 4 |
| 3 base=$(dirname $0) | 5 base=$(dirname $0) |
| 4 . "${base}/md5.sh" | 6 . "${base}/md5.sh" |
| 5 | 7 |
| 6 base64=tests/base64 | 8 base64=tests/base64 |
| 7 | 9 |
| 8 test="${1#fate-}" | 10 test="${1#fate-}" |
| 9 samples=$2 | 11 samples=$2 |
| 10 target_exec=$3 | 12 target_exec=$3 |
| 11 target_path=$4 | 13 target_path=$4 |
| 12 command=$5 | 14 command=$5 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 38 | 40 |
| 39 stddev(){ | 41 stddev(){ |
| 40 do_tiny_psnr "$1" "$2" stddev '<=' ${fuzz:-1} | 42 do_tiny_psnr "$1" "$2" stddev '<=' ${fuzz:-1} |
| 41 } | 43 } |
| 42 | 44 |
| 43 run(){ | 45 run(){ |
| 44 $target_exec $target_path/"$@" | 46 $target_exec $target_path/"$@" |
| 45 } | 47 } |
| 46 | 48 |
| 47 ffmpeg(){ | 49 ffmpeg(){ |
| 48 $target_exec $target_path/ffmpeg "$@" | 50 run ffmpeg -v 0 "$@" |
| 49 } | 51 } |
| 50 | 52 |
| 51 framecrc(){ | 53 framecrc(){ |
| 52 ffmpeg "$@" -f framecrc - | 54 ffmpeg "$@" -f framecrc - |
| 53 } | 55 } |
| 54 | 56 |
| 55 framemd5(){ | 57 framemd5(){ |
| 56 ffmpeg "$@" -f framemd5 - | 58 ffmpeg "$@" -f framemd5 - |
| 57 } | 59 } |
| 58 | 60 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 test $err = 0 || cat $cmpfile | 128 test $err = 0 || cat $cmpfile |
| 127 else | 129 else |
| 128 echo "reference file '$ref' not found" | 130 echo "reference file '$ref' not found" |
| 129 err=1 | 131 err=1 |
| 130 fi | 132 fi |
| 131 | 133 |
| 132 echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile | 134 echo "${test}:${sig:-$err}:$($base64 <$cmpfile):$($base64 <$errfile)" >$repfile |
| 133 | 135 |
| 134 test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles | 136 test $err = 0 && rm -f $outfile $errfile $cmpfile $cleanfiles |
| 135 exit $err | 137 exit $err |
| OLD | NEW |