diff options
author | Måns Rullgård <mans@mansr.com> | 2010-07-19 00:46:42 +0400 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-07-19 00:46:42 +0400 |
commit | f366a6de310226e5f8f39fa9923fcf8271259f7f (patch) | |
tree | eeb3fb3a4324a487aef9cddaaa004c25f56ed627 /tests/fate-update.sh | |
parent | 76d908b3fe8953217c50f491c9b466c5d8a46be7 (diff) |
fate: use helper functions in test rules
Originally committed as revision 24316 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/fate-update.sh')
-rwxr-xr-x | tests/fate-update.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/fate-update.sh b/tests/fate-update.sh index c2a30a90c9..5deaf546a3 100755 --- a/tests/fate-update.sh +++ b/tests/fate-update.sh @@ -22,11 +22,27 @@ do_sql "$SQL_TESTS" | while read id name command; do 00-full-regression|ffmpeg-help|binsize-*) continue ;; esac case "$command" in - {MD5}*) command="${command#\{MD5\}} | do_md5sum | cut -c-32" ;; + {MD5}*) + command="${command#*ffmpeg}"; command="${command% -}" + command="md5 $command" + ;; {*}*) continue ;; + *-f\ framecrc\ -) + command="${command#*ffmpeg}"; command="${command% -f *}" + command="framecrc $command" + ;; + *-f\ framemd5\ -) + command="${command#*ffmpeg}"; command="${command% -f *}" + command="framemd5 $command" + ;; + *-f\ crc\ -) + command="${command#*ffmpeg}"; command="${command% -f *}" + command="crc $command" + ;; esac command=$(echo "$command" | sed 's/\$BUILD_PATH/$(TARGET_PATH)/g') command=$(echo "$command" | sed 's/\$SAMPLES_PATH/$(SAMPLES)/g') + command=$(echo "$command" | sed 's/ *$//') do_sql "SELECT expected_stdout FROM test_spec WHERE id=$id" | awk '/./{print}' > "$ref/$name" printf "FATE_TESTS += fate-${name}\n" >&3 printf "fate-${name}: CMD = %s\n" "$command" >&3 |