indeo4: reuse context block VLC for band instead of defaulting
[libav.git] / tests / Makefile
CommitLineData
7263cd55
MR
1VREF = tests/vsynth1/00.pgm
2AREF = tests/data/asynth1.sw
698a183e 3
7263cd55 4OBJDIRS += tests/data tests/vsynth1
e9ba6b37 5
3eec1d41 6$(VREF): tests/videogen$(HOSTEXESUF) | tests/vsynth1
698a183e
MR
7 $(M)./$< 'tests/vsynth1/'
8
3eec1d41 9$(AREF): tests/audiogen$(HOSTEXESUF) | tests/data
698a183e
MR
10 $(M)./$< $@
11
870165e2
JR
12tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
13 $(M)./$< $@ $(subst -, ,$*)
14
7263cd55 15tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
d0e9415d 16 $(M)$< $@
7263cd55
MR
17
18tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
d0e9415d 19 $(M)$< $(SRC_PATH)/tests/lena.pnm $@
7263cd55
MR
20
21tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
22
a1f6ad69
MR
23CHKCFG = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
24
21fed588
MR
25ALLYES = $(strip $(call XYES, $(1)))
26XYES = $(if $(strip $(1)), \
a1f6ad69 27 $(if $(call CHKCFG,CONFIG_$(firstword $(1))), \
21fed588
MR
28 $(call XYES, $(wordlist 2, $(words $(1)), $(1)))), \
29 yes)
30
31ENCDEC = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
32 $(firstword $(2))_MUXER $(lastword $(2))_DEMUXER)
33
34ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
35 $(firstword $(2))_ENCODER $(lastword $(2))_DECODER \
36 $(firstword $(3))_MUXER $(lastword $(3))_DEMUXER)
37
c0329748 38DEMDEC = $(call ALLYES, $(1)_DEMUXER $(2:%=%_DECODER))
6f9018fc 39ENCMUX = $(call ALLYES, $(1:%=%_ENCODER) $(2)_MUXER)
c0329748 40
b357f1d1
DB
41FILTERDEMDEC = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER)
42FILTERDEMDECMUX = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER $(4)_MUXER)
43FILTERDEMDECENCMUX = $(call ALLYES, $(1)_FILTER $(2)_DEMUXER $(3)_DECODER $(4)_ENCODER $(5)_MUXER)
44
7263cd55
MR
45include $(SRC_PATH)/tests/fate/acodec.mak
46include $(SRC_PATH)/tests/fate/vcodec.mak
fa263350 47include $(SRC_PATH)/tests/fate/avformat.mak
36ac9a16 48include $(SRC_PATH)/tests/fate/seek.mak
698a183e 49
f038cf3c 50include $(SRC_PATH)/tests/fate/aac.mak
bf692357 51include $(SRC_PATH)/tests/fate/ac3.mak
2df5f59a 52include $(SRC_PATH)/tests/fate/adpcm.mak
e9812159 53include $(SRC_PATH)/tests/fate/alac.mak
f038cf3c 54include $(SRC_PATH)/tests/fate/als.mak
0291ce84
MR
55include $(SRC_PATH)/tests/fate/amrnb.mak
56include $(SRC_PATH)/tests/fate/amrwb.mak
44b7e1b9 57include $(SRC_PATH)/tests/fate/atrac.mak
ab2d11f7 58include $(SRC_PATH)/tests/fate/audio.mak
7756859a 59include $(SRC_PATH)/tests/fate/bmp.mak
159a2436 60include $(SRC_PATH)/tests/fate/cdxl.mak
bf2a7f91 61include $(SRC_PATH)/tests/fate/cover-art.mak
c7cb1730 62include $(SRC_PATH)/tests/fate/demux.mak
febd0222 63include $(SRC_PATH)/tests/fate/dfa.mak
209c4452 64include $(SRC_PATH)/tests/fate/dpcm.mak
394f0b18 65include $(SRC_PATH)/tests/fate/ea.mak
b357f1d1 66include $(SRC_PATH)/tests/fate/filter-audio.mak
a77aed14 67include $(SRC_PATH)/tests/fate/filter-video.mak
983fa8bc 68include $(SRC_PATH)/tests/fate/flac.mak
f038cf3c
MR
69include $(SRC_PATH)/tests/fate/fft.mak
70include $(SRC_PATH)/tests/fate/h264.mak
d69a03ef 71include $(SRC_PATH)/tests/fate/image.mak
6146d78d 72include $(SRC_PATH)/tests/fate/indeo.mak
913b6b4b 73include $(SRC_PATH)/tests/fate/libavcodec.mak
7bc433b3 74include $(SRC_PATH)/tests/fate/libavformat.mak
03256d96 75include $(SRC_PATH)/tests/fate/libavutil.mak
86027674
DB
76include $(SRC_PATH)/tests/fate/lossless-audio.mak
77include $(SRC_PATH)/tests/fate/lossless-video.mak
4e616d09 78include $(SRC_PATH)/tests/fate/microsoft.mak
e9e5a1bd 79include $(SRC_PATH)/tests/fate/monkeysaudio.mak
f038cf3c 80include $(SRC_PATH)/tests/fate/mp3.mak
9e5bd6cc 81include $(SRC_PATH)/tests/fate/mpc.mak
bdda1616 82include $(SRC_PATH)/tests/fate/pcm.mak
4bfa67bd 83include $(SRC_PATH)/tests/fate/probe.mak
a62d3669 84include $(SRC_PATH)/tests/fate/prores.mak
f6ba1f26 85include $(SRC_PATH)/tests/fate/qt.mak
f8c47cb8 86include $(SRC_PATH)/tests/fate/qtrle.mak
bad38179 87include $(SRC_PATH)/tests/fate/real.mak
753a5063 88include $(SRC_PATH)/tests/fate/screen.mak
42de665d 89include $(SRC_PATH)/tests/fate/utvideo.mak
628637f6 90include $(SRC_PATH)/tests/fate/video.mak
51150cf0 91include $(SRC_PATH)/tests/fate/voice.mak
f038cf3c 92include $(SRC_PATH)/tests/fate/vorbis.mak
bebf9f92 93include $(SRC_PATH)/tests/fate/vpx.mak
723c35fe 94include $(SRC_PATH)/tests/fate/vqf.mak
273f4b39 95include $(SRC_PATH)/tests/fate/wavpack.mak
b998aec4 96include $(SRC_PATH)/tests/fate/wma.mak
698a183e 97
f7c2dca0 98FATE_AVCONV += $(FATE_AVCONV-yes)
63dcd16d 99FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
f7c2dca0 100
eccd0671 101FATE_SAMPLES_AVCONV += $(FATE_SAMPLES_AVCONV-yes)
63dcd16d
MR
102FATE_SAMPLES-$(CONFIG_AVCONV) += $(FATE_SAMPLES_AVCONV)
103FATE_SAMPLES += $(FATE_SAMPLES-yes)
104
908f12f3 105FATE += $(FATE-yes)
f7c2dca0 106
63dcd16d 107$(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
908f12f3 108
698a183e 109ifdef SAMPLES
63dcd16d 110FATE += $(FATE_SAMPLES)
698a183e
MR
111fate-rsync:
112 rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
113else
114fate-rsync:
115 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
63dcd16d
MR
116$(FATE_SAMPLES):
117 @echo "$@ requires external samples and SAMPLES not specified"; false
698a183e
MR
118endif
119
120FATE_UTILS = base64 tiny_psnr
121
122fate: $(FATE)
123
f7c2dca0 124$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
698a183e 125 @echo "TEST $(@:fate-%=%)"
b01b60a2 126 $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(CPUFLAGS)' '$(CMP_SHIFT)' '$(CMP_TARGET)' '$(SIZE_TOLERANCE)' '$(CMP_UNIT)' '$(GEN)'
698a183e
MR
127
128fate-list:
129 @printf '%s\n' $(sort $(FATE))
130
a862c7d3
RT
131coverage.info: TAG = LCOV
132coverage.info:
95e8ac60
RT
133 $(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture | \
134 sed "s,$(CURDIR)/\./,$(CURDIR)/," > $@
135 $(M)lcov -q --remove $@ "/usr/include*" -o $@
a862c7d3
RT
136
137lcov: TAG = GENHTML
138lcov: coverage.info
768e44d0 139 $(M)genhtml -q -o $(CURDIR)/lcov $<
a862c7d3
RT
140
141lcov-reset: TAG = LCOV
142lcov-reset:
143 $(M)lcov -d $(CURDIR) --zerocounters
144 $(Q)$(RM) -f coverage.info
145
698a183e
MR
146clean:: testclean
147
148testclean:
a4880283 149 $(RM) -r tests/vsynth1 tests/data
deb3ed01 150 $(RM) $(CLEANSUFFIXES:%=tests/%)
698a183e
MR
151 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
152
153-include $(wildcard tests/*.d)
154
a862c7d3
RT
155.PHONY: fate* lcov lcov-reset
156.INTERMEDIATE: coverage.info