mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
fate: use our variable names in test rules imported from Mike's db
Originally committed as revision 24312 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
122a9af76b
commit
d2f33c8021
@ -12,10 +12,6 @@ cmp=${6:-diff}
|
|||||||
ref=${7:-"${base}/ref/fate/${test}"}
|
ref=${7:-"${base}/ref/fate/${test}"}
|
||||||
fuzz=$8
|
fuzz=$8
|
||||||
|
|
||||||
# compatibility with Mike's test specs
|
|
||||||
SAMPLES_PATH=$samples
|
|
||||||
BUILD_PATH=$target_path
|
|
||||||
|
|
||||||
outdir="tests/data/fate"
|
outdir="tests/data/fate"
|
||||||
outfile="${outdir}/${test}"
|
outfile="${outdir}/${test}"
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@ do_sql "$SQL_TESTS" | while read id name command; do
|
|||||||
{MD5}*) command="${command#\{MD5\}} | do_md5sum | cut -c-32" ;;
|
{MD5}*) command="${command#\{MD5\}} | do_md5sum | cut -c-32" ;;
|
||||||
{*}*) continue ;;
|
{*}*) continue ;;
|
||||||
esac
|
esac
|
||||||
command=$(echo "$command" | sed 's/\$/$$/g')
|
command=$(echo "$command" | sed 's/\$BUILD_PATH/$(TARGET_PATH)/g')
|
||||||
|
command=$(echo "$command" | sed 's/\$SAMPLES_PATH/$(SAMPLES)/g')
|
||||||
do_sql "SELECT expected_stdout FROM test_spec WHERE id=$id" | awk '/./{print}' > "$ref/$name"
|
do_sql "SELECT expected_stdout FROM test_spec WHERE id=$id" | awk '/./{print}' > "$ref/$name"
|
||||||
printf "FATE_TESTS += fate-${name}\n" >&3
|
printf "FATE_TESTS += fate-${name}\n" >&3
|
||||||
printf "fate-${name}: CMD = %s\n" "$command" >&3
|
printf "fate-${name}: CMD = %s\n" "$command" >&3
|
||||||
|
728
tests/fate.mak
728
tests/fate.mak
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user