diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-28 13:34:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-28 13:34:23 +0200 |
commit | 124244ec48c1b733b7ad40eee67ae1a205f0162b (patch) | |
tree | 008dc0200bf07f47103ba573a247c8e8ba15fc78 /tests/fate-run.sh | |
parent | 04001767728fd4ed8b4f9d2ebbb9f9a8c9a7be0d (diff) | |
parent | b963f021b603509b5159873de4919dec441d0782 (diff) | |
download | ffmpeg-124244ec48c1b733b7ad40eee67ae1a205f0162b.tar.gz |
Merge commit 'b963f021b603509b5159873de4919dec441d0782'
* commit 'b963f021b603509b5159873de4919dec441d0782':
fate: Invoke pixfmts lavfi tests through fate-run.sh
Conflicts:
tests/fate/avfilter.mak
tests/lavfi-regression.sh
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index da4f60eda9..42b9ebb5db 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -160,6 +160,7 @@ lavftest(){ regtest lavf lavf tests/vsynth1 } +#FIXME should be removed lavfitest(){ cleanfiles="tests/data/lavfi/${test#lavfi-}.nut" regtest lavfi lavfi tests/vsynth1 @@ -183,6 +184,27 @@ pixdesc(){ done } +pixfmts(){ + filter=${test#filter-pixfmts-} + filter_args=$1 + + showfiltfmts="$target_exec $target_path/libavfilter/filtfmts-test" + exclude_fmts=${outfile}${filter}_exclude_fmts + out_fmts=${outfile}${filter}_out_fmts + + # exclude pixel formats which are not supported as input + ffmpeg -pix_fmts list 2>/dev/null | awk 'NR > 8 && /^\..\./ { print $2 }' | sort >$exclude_fmts + $showfiltfmts scale | awk -F '[ \r:]' '/^OUTPUT/{ print $5 }' | sort | comm -23 - $exclude_fmts >$out_fmts + + pix_fmts=$($showfiltfmts $filter | awk -F '[ \r:]' '/^INPUT/{ print $5 }' | sort | comm -12 - $out_fmts) + for pix_fmt in $pix_fmts; do + test=$pix_fmt + video_filter "format=$pix_fmt,$filter=$filter_args" -pix_fmt $pix_fmt + done + + rm $exclude_fmts $out_fmts +} + mkdir -p "$outdir" # Disable globbing: command arguments may contain globbing characters and |