From b963f021b603509b5159873de4919dec441d0782 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 16 Apr 2013 01:42:38 +0200 Subject: fate: Invoke pixfmts lavfi tests through fate-run.sh --- tests/fate-run.sh | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'tests/fate-run.sh') diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 6e30b5afe5..9d98531cae 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -156,11 +156,6 @@ lavftest(){ regtest lavf lavf tests/vsynth1 } -lavfitest(){ - cleanfiles="tests/data/lavfi/${test#lavfi-}.nut" - regtest lavfi lavfi tests/vsynth1 -} - video_filter(){ filters=$1 shift @@ -179,6 +174,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 + avconv -pix_fmts list 2>/dev/null | awk 'NR > 8 && /^\..\./ { print $2 }' | sort >$exclude_fmts + $showfiltfmts scale | awk -F '[ \r]' '/^OUTPUT/{ print $3 }' | sort | comm -23 - $exclude_fmts >$out_fmts + + pix_fmts=$($showfiltfmts $filter | awk -F '[ \r]' '/^INPUT/{ print $3 }' | 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" exec 3>&2 -- cgit v1.2.3