fate: list lavfi tests in a makefile
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
36ac9a16a1
commit
206a070dce
15
configure
vendored
15
configure
vendored
@ -1872,21 +1872,13 @@ ALL_COMPONENTS="
|
||||
$PROTOCOL_LIST
|
||||
"
|
||||
|
||||
find_tests(){
|
||||
map "echo ${2}\${v}_test" $(ls "$source_path"/tests/ref/$1 | grep -v '[^-a-z0-9_]')
|
||||
}
|
||||
|
||||
LAVFI_TESTS=$(find_tests lavfi)
|
||||
|
||||
ALL_TESTS="$LAVFI_TESTS"
|
||||
|
||||
for n in $COMPONENT_LIST; do
|
||||
v=$(toupper ${n%s})_LIST
|
||||
eval enable \$$v
|
||||
eval ${n}_if_any="\$$v"
|
||||
done
|
||||
|
||||
enable $ARCH_EXT_LIST $ALL_TESTS
|
||||
enable $ARCH_EXT_LIST
|
||||
|
||||
die_unknown(){
|
||||
echo "Unknown option \"$1\"."
|
||||
@ -3521,7 +3513,6 @@ check_deps $CONFIG_LIST \
|
||||
$CONFIG_EXTRA \
|
||||
$HAVE_LIST \
|
||||
$ALL_COMPONENTS \
|
||||
$ALL_TESTS \
|
||||
|
||||
! enabled_any memalign posix_memalign aligned_malloc &&
|
||||
enabled_any $need_memalign && enable memalign_hack
|
||||
@ -3780,10 +3771,6 @@ print_config CONFIG_ "$config_files" $CONFIG_LIST \
|
||||
$CONFIG_EXTRA \
|
||||
$ALL_COMPONENTS \
|
||||
|
||||
cat >>config.mak <<EOF
|
||||
LAVFI_TESTS=$(print_enabled -n _test $LAVFI_TESTS)
|
||||
EOF
|
||||
|
||||
echo "#endif /* LIBAV_CONFIG_H */" >> $TMPH
|
||||
|
||||
# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
|
||||
|
@ -36,6 +36,7 @@ ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
|
||||
include $(SRC_PATH)/tests/fate/acodec.mak
|
||||
include $(SRC_PATH)/tests/fate/vcodec.mak
|
||||
include $(SRC_PATH)/tests/fate/avformat.mak
|
||||
include $(SRC_PATH)/tests/fate/avfilter.mak
|
||||
include $(SRC_PATH)/tests/fate/seek.mak
|
||||
|
||||
include $(SRC_PATH)/tests/fate/aac.mak
|
||||
@ -85,10 +86,6 @@ include $(SRC_PATH)/tests/fate/vqf.mak
|
||||
include $(SRC_PATH)/tests/fate/wavpack.mak
|
||||
include $(SRC_PATH)/tests/fate/wma.mak
|
||||
|
||||
FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
|
||||
|
||||
FATE_AVCONV += $(FATE_LAVFI) \
|
||||
|
||||
FATE_AVCONV += $(FATE_AVCONV-yes)
|
||||
FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
|
||||
|
||||
@ -103,12 +100,6 @@ FATE += $(FATE_LIBAVUTIL)
|
||||
|
||||
$(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
|
||||
|
||||
$(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
|
||||
|
||||
$(FATE_LAVFI): CMD = lavfitest
|
||||
|
||||
fate-lavfi: $(FATE_LAVFI)
|
||||
|
||||
ifdef SAMPLES
|
||||
FATE += $(FATE_SAMPLES)
|
||||
fate-rsync:
|
||||
|
24
tests/fate/avfilter.mak
Normal file
24
tests/fate/avfilter.mak
Normal file
@ -0,0 +1,24 @@
|
||||
FATE_LAVFI = fate-lavfi-crop \
|
||||
fate-lavfi-crop_scale \
|
||||
fate-lavfi-crop_scale_vflip \
|
||||
fate-lavfi-crop_vflip \
|
||||
fate-lavfi-null \
|
||||
fate-lavfi-pixdesc \
|
||||
fate-lavfi-pixfmts_copy \
|
||||
fate-lavfi-pixfmts_crop \
|
||||
fate-lavfi-pixfmts_hflip \
|
||||
fate-lavfi-pixfmts_null \
|
||||
fate-lavfi-pixfmts_pad \
|
||||
fate-lavfi-pixfmts_scale \
|
||||
fate-lavfi-pixfmts_vflip \
|
||||
fate-lavfi-scale200 \
|
||||
fate-lavfi-scale500 \
|
||||
fate-lavfi-vflip \
|
||||
fate-lavfi-vflip_crop \
|
||||
fate-lavfi-vflip_vflip \
|
||||
|
||||
$(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
|
||||
$(FATE_LAVFI): CMD = lavfitest
|
||||
|
||||
FATE_AVCONV += $(FATE_LAVFI)
|
||||
fate-lavfi: $(FATE_LAVFI)
|
Loading…
x
Reference in New Issue
Block a user