h261: Move mvmap table to the only place it is used
[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
DB
5
6tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
698a183e
MR
7 $(M)./$< 'tests/vsynth1/'
8
e9ba6b37 9tests/data/asynth1.sw: 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
7263cd55
MR
41include $(SRC_PATH)/tests/fate/acodec.mak
42include $(SRC_PATH)/tests/fate/vcodec.mak
fa263350 43include $(SRC_PATH)/tests/fate/avformat.mak
206a070d 44include $(SRC_PATH)/tests/fate/avfilter.mak
36ac9a16 45include $(SRC_PATH)/tests/fate/seek.mak
698a183e 46
f038cf3c 47include $(SRC_PATH)/tests/fate/aac.mak
bf692357 48include $(SRC_PATH)/tests/fate/ac3.mak
2df5f59a 49include $(SRC_PATH)/tests/fate/adpcm.mak
e9812159 50include $(SRC_PATH)/tests/fate/alac.mak
f038cf3c 51include $(SRC_PATH)/tests/fate/als.mak
0291ce84
MR
52include $(SRC_PATH)/tests/fate/amrnb.mak
53include $(SRC_PATH)/tests/fate/amrwb.mak
44b7e1b9 54include $(SRC_PATH)/tests/fate/atrac.mak
ab2d11f7 55include $(SRC_PATH)/tests/fate/audio.mak
7756859a 56include $(SRC_PATH)/tests/fate/bmp.mak
159a2436 57include $(SRC_PATH)/tests/fate/cdxl.mak
bf2a7f91 58include $(SRC_PATH)/tests/fate/cover-art.mak
c7cb1730 59include $(SRC_PATH)/tests/fate/demux.mak
febd0222 60include $(SRC_PATH)/tests/fate/dfa.mak
209c4452 61include $(SRC_PATH)/tests/fate/dpcm.mak
394f0b18 62include $(SRC_PATH)/tests/fate/ea.mak
73cd131e 63include $(SRC_PATH)/tests/fate/filter.mak
983fa8bc 64include $(SRC_PATH)/tests/fate/flac.mak
f038cf3c
MR
65include $(SRC_PATH)/tests/fate/fft.mak
66include $(SRC_PATH)/tests/fate/h264.mak
d69a03ef 67include $(SRC_PATH)/tests/fate/image.mak
6146d78d 68include $(SRC_PATH)/tests/fate/indeo.mak
913b6b4b 69include $(SRC_PATH)/tests/fate/libavcodec.mak
7bc433b3 70include $(SRC_PATH)/tests/fate/libavformat.mak
03256d96 71include $(SRC_PATH)/tests/fate/libavutil.mak
86027674
DB
72include $(SRC_PATH)/tests/fate/lossless-audio.mak
73include $(SRC_PATH)/tests/fate/lossless-video.mak
4e616d09 74include $(SRC_PATH)/tests/fate/microsoft.mak
f038cf3c 75include $(SRC_PATH)/tests/fate/mp3.mak
9e5bd6cc 76include $(SRC_PATH)/tests/fate/mpc.mak
bdda1616 77include $(SRC_PATH)/tests/fate/pcm.mak
4bfa67bd 78include $(SRC_PATH)/tests/fate/probe.mak
a62d3669 79include $(SRC_PATH)/tests/fate/prores.mak
f6ba1f26 80include $(SRC_PATH)/tests/fate/qt.mak
f8c47cb8 81include $(SRC_PATH)/tests/fate/qtrle.mak
bad38179 82include $(SRC_PATH)/tests/fate/real.mak
753a5063 83include $(SRC_PATH)/tests/fate/screen.mak
42de665d 84include $(SRC_PATH)/tests/fate/utvideo.mak
628637f6 85include $(SRC_PATH)/tests/fate/video.mak
51150cf0 86include $(SRC_PATH)/tests/fate/voice.mak
f038cf3c 87include $(SRC_PATH)/tests/fate/vorbis.mak
bebf9f92 88include $(SRC_PATH)/tests/fate/vpx.mak
723c35fe 89include $(SRC_PATH)/tests/fate/vqf.mak
273f4b39 90include $(SRC_PATH)/tests/fate/wavpack.mak
b998aec4 91include $(SRC_PATH)/tests/fate/wma.mak
698a183e 92
f7c2dca0 93FATE_AVCONV += $(FATE_AVCONV-yes)
63dcd16d 94FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
f7c2dca0 95
eccd0671 96FATE_SAMPLES_AVCONV += $(FATE_SAMPLES_AVCONV-yes)
63dcd16d
MR
97FATE_SAMPLES-$(CONFIG_AVCONV) += $(FATE_SAMPLES_AVCONV)
98FATE_SAMPLES += $(FATE_SAMPLES-yes)
99
908f12f3 100FATE += $(FATE-yes)
f7c2dca0 101
63dcd16d 102$(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
908f12f3 103
698a183e 104ifdef SAMPLES
63dcd16d 105FATE += $(FATE_SAMPLES)
698a183e
MR
106fate-rsync:
107 rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
108else
109fate-rsync:
110 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
63dcd16d
MR
111$(FATE_SAMPLES):
112 @echo "$@ requires external samples and SAMPLES not specified"; false
698a183e
MR
113endif
114
115FATE_UTILS = base64 tiny_psnr
116
117fate: $(FATE)
118
f7c2dca0 119$(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
698a183e 120 @echo "TEST $(@:fate-%=%)"
b01b60a2 121 $(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
122
123fate-list:
124 @printf '%s\n' $(sort $(FATE))
125
126clean:: testclean
127
128testclean:
a4880283 129 $(RM) -r tests/vsynth1 tests/data
deb3ed01 130 $(RM) $(CLEANSUFFIXES:%=tests/%)
698a183e
MR
131 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
132
133-include $(wildcard tests/*.d)
134
bd9a9a2f 135.PHONY: fate*