Commit 77c991d8 authored by Stefano Sabatini's avatar Stefano Sabatini

tests/lavfi-regressions: support user-specified test name in do_lavfi_pixfmts()

Make do_lavfi_pixfmts() support an user-specified name for the test.

This allows to specify two pixfmts tests for the same filter, e.g. to
test a filter with different parameters. Useful for the pending
tinterlace tests.
parent 9a2daef5
......@@ -74,7 +74,14 @@ do_lavfi_plain "alphaextract_yuv" "[in]slicify=random,format=yuv420p,split,alp
do_lavfi_colormatrix "colormatrix" bt709 fcc bt601 smpte240m
do_lavfi_pixfmts(){
test ${test%_[bl]e} = pixfmts_$1 || return 0
# if there are three parameters, the first param is the test name
if [ -n "$3" ]; then
testname=$1;
shift;
else
testname=pixfmts_$1;
fi
test ${test%_[bl]e} = $testname || return 0
filter=$1
filter_args=$2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment