summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-16 01:42:38 +0200
committerDiego Biurrun <diego@biurrun.de>2013-04-27 16:53:42 +0200
commitb963f021b603509b5159873de4919dec441d0782 (patch)
tree0d8b39fbdec8d096bf1440914f1fa3c1c2ce7797 /tests/fate-run.sh
parent28663511c99b3cdaf9387a15032259879474f5f4 (diff)
fate: Invoke pixfmts lavfi tests through fate-run.sh
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh26
1 files changed, 21 insertions, 5 deletions
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