Commit 05e24fa8 authored by Måns Rullgård's avatar Måns Rullgård

regtest: run tests only for enabled codecs and formats

Originally committed as revision 21256 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4b294c18
...@@ -140,109 +140,89 @@ fulltest test: codectest lavftest seektest ...@@ -140,109 +140,89 @@ fulltest test: codectest lavftest seektest
FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
SEEK_REFFILE = $(SRC_PATH)/tests/seek.regression.ref SEEK_REFFILE = $(SRC_PATH)/tests/seek.regression.ref
CODEC_TESTS = $(addprefix regtest-, \ ENCDEC = $(and $(CONFIG_$(1)_ENCODER),$(CONFIG_$(1)_DECODER))
mpeg \ MUXDEM = $(and $(CONFIG_$(1)_MUXER),$(CONFIG_$(or $(2),$(1))_DEMUXER))
mpeg2 \
mpeg2thread \ CODEC_TESTS =
msmpeg4v2 \ CODEC_TESTS-$(call ENCDEC,AC3) += ac3
msmpeg4 \ CODEC_TESTS-$(call ENCDEC,ADPCM_G726) += g726
wmv1 \ CODEC_TESTS-$(call ENCDEC,ADPCM_IMA_QT) += adpcm_ima_qt
wmv2 \ CODEC_TESTS-$(call ENCDEC,ADPCM_IMA_WAV) += adpcm_ima_wav
h261 \ CODEC_TESTS-$(call ENCDEC,ADPCM_MS) += adpcm_ms
h263 \ CODEC_TESTS-$(call ENCDEC,ADPCM_SWF) += adpcm_swf
h263p \ CODEC_TESTS-$(call ENCDEC,ADPCM_YAMAHA) += adpcm_yam
mpeg4 \ CODEC_TESTS-$(call ENCDEC,ALAC) += alac
huffyuv \ CODEC_TESTS-$(call ENCDEC,ASV1) += asv1
rc \ CODEC_TESTS-$(call ENCDEC,ASV2) += asv2
mpeg4adv \ CODEC_TESTS-$(call ENCDEC,DNXHD) += dnxhd_1080i dnxhd_720p dnxhd_720p_rd
mpeg4thread \ CODEC_TESTS-$(call ENCDEC,DVVIDEO) += dv dv50
error \ CODEC_TESTS-$(call ENCDEC,FFV1) += ffv1
mpeg4nr \ CODEC_TESTS-$(call ENCDEC,FLAC) += flac
mpeg1b \ CODEC_TESTS-$(call ENCDEC,FLASHSV) += flashsv
mjpeg \ CODEC_TESTS-$(call ENCDEC,FLV) += flv
ljpeg \ CODEC_TESTS-$(call ENCDEC,H261) += h261
jpegls \ CODEC_TESTS-$(call ENCDEC,H263) += h263 h263p
rv10 \ CODEC_TESTS-$(call ENCDEC,HUFFYUV) += huffyuv
rv20 \ CODEC_TESTS-$(call ENCDEC,JPEGLS) += jpegls
asv1 \ CODEC_TESTS-$(call ENCDEC,MJPEG) += mjpeg ljpeg
asv2 \ CODEC_TESTS-$(call ENCDEC,MP2) += mp2
flv \ CODEC_TESTS-$(call ENCDEC,MPEG1VIDEO) += mpeg mpeg1b
ffv1 \ CODEC_TESTS-$(call ENCDEC,MPEG2VIDEO) += mpeg2 mpeg2thread
snow \ CODEC_TESTS-$(call ENCDEC,MPEG4) += mpeg4 mpeg4adv mpeg4nr mpeg4thread error rc
snowll \ CODEC_TESTS-$(call ENCDEC,MSMPEG4V1) += msmpeg4
dv \ CODEC_TESTS-$(call ENCDEC,MSMPEG4V2) += msmpeg4v2
dv50 \ CODEC_TESTS-$(call ENCDEC,PCM_S16LE) += pcm # fixme
dnxhd_1080i \ CODEC_TESTS-$(call ENCDEC,ROQ) += roq
dnxhd_720p \ CODEC_TESTS-$(call ENCDEC,RV10) += rv10
dnxhd_720p_rd \ CODEC_TESTS-$(call ENCDEC,RV20) += rv20
svq1 \ CODEC_TESTS-$(call ENCDEC,SNOW) += snow snowll
flashsv \ CODEC_TESTS-$(call ENCDEC,SVQ1) += svq1
roq \ CODEC_TESTS-$(call ENCDEC,WMAV1) += wmav1
mp2 \ CODEC_TESTS-$(call ENCDEC,WMAV1) += wmav2
ac3 \ CODEC_TESTS-$(call ENCDEC,WMV1) += wmv1
g726 \ CODEC_TESTS-$(call ENCDEC,WMV2) += wmv2
adpcm_ima_wav \
adpcm_ima_qt \ LAVF_TESTS =
adpcm_ms \ LAVF_TESTS-$(call MUXDEM,AIFF) += aiff
adpcm_yam \ LAVF_TESTS-$(call MUXDEM,PCM_ALAW) += alaw
adpcm_swf \ LAVF_TESTS-$(call MUXDEM,ASF) += asf
alac \ LAVF_TESTS-$(call MUXDEM,AU) += au
flac \ LAVF_TESTS-$(call MUXDEM,AVI) += avi
wmav1 \ LAVF_TESTS-$(call ENCDEC,BMP) += bmp
wmav2 \ LAVF_TESTS-$(call MUXDEM,DV) += dv_fmt
pcm \ LAVF_TESTS-$(call MUXDEM,FFM) += ffm
) LAVF_TESTS-$(call MUXDEM,FLV) += flv_fmt
LAVF_TESTS-$(call ENCDEC,GIF) += gif
LAVF_TESTS = $(addprefix regtest-, \ LAVF_TESTS-$(call MUXDEM,GXF) += gxf
avi \ LAVF_TESTS-$(call ENCDEC,MJPEG) += jpg
asf \ LAVF_TESTS-$(call MUXDEM,MATROSKA) += mkv
rm \ LAVF_TESTS-$(call MUXDEM,MMF) += mmf
mpg \ LAVF_TESTS-$(call MUXDEM,MOV) += mov
mxf \ LAVF_TESTS-$(call MUXDEM,MPEG1SYSTEM,MPEGPS) += mpg
ts \ LAVF_TESTS-$(call MUXDEM,PCM_MULAW) += mulaw
swf \ LAVF_TESTS-$(call MUXDEM,MXF) += mxf
ffm \ LAVF_TESTS-$(call MUXDEM,NUT) += nut
flv_fmt \ LAVF_TESTS-$(call MUXDEM,OGG) += ogg
mov \ LAVF_TESTS-$(call ENCDEC,PBM) += pbmpipe
dv_fmt \ LAVF_TESTS-$(call ENCDEC,PCX) += pcx
gxf \ LAVF_TESTS-$(call ENCDEC,PGM) += pgm pgmpipe
nut \ LAVF_TESTS-$(call MUXDEM,RAWVIDEO) += pixfmt
mkv \ LAVF_TESTS-$(call ENCDEC,PPM) += ppm ppmpipe
pbmpipe \ LAVF_TESTS-$(call MUXDEM,RM) += rm
pgmpipe \ LAVF_TESTS-$(call ENCDEC,SGI) += sgi
ppmpipe \ LAVF_TESTS-$(call MUXDEM,SWF) += swf
gif \ LAVF_TESTS-$(call ENCDEC,TARGA) += tga
yuv4mpeg \ LAVF_TESTS-$(call ENCDEC,TIFF) += tiff
pgm \ LAVF_TESTS-$(call MUXDEM,MPEGTS) += ts
ppm \ LAVF_TESTS-$(call MUXDEM,VOC) += voc
bmp \ LAVF_TESTS-$(call MUXDEM,WAV) += wav
tga \ LAVF_TESTS-$(call MUXDEM,YUV4MPEGPIPE) += yuv4mpeg
tiff \
sgi \ LAVFI_TESTS =
jpg \
wav \ CODEC_TESTS := $(addprefix regtest-, $(CODEC_TESTS) $(CODEC_TESTS-yes))
alaw \ LAVF_TESTS := $(addprefix regtest-, $(LAVF_TESTS) $(LAVF_TESTS-yes))
mulaw \ LAVFI_TESTS := $(addprefix regtest-, $(LAVFI_TESTS) $(LAVFI_TESTS-yes))
au \
mmf \
aiff \
voc \
ogg \
pixfmt \
pcx \
)
LAVFI_TESTS = $(addprefix regtest-, \
)
ifneq ($(CONFIG_ZLIB),yes)
regtest-flashsv codectest: zlib-error
endif
zlib-error:
@echo
@echo "This regression test requires zlib."
@echo
@exit 1
codectest: $(CODEC_TESTS) codectest: $(CODEC_TESTS)
lavftest: $(LAVF_TESTS) lavftest: $(LAVF_TESTS)
......
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