fate: split off qtrle codec FATE tests into their own file
[libav.git] / tests / Makefile
CommitLineData
698a183e
MR
1AREF = fate-acodec-aref
2VREF = fate-vsynth1-vref fate-vsynth2-vref
3REFS = $(AREF) $(VREF)
4
6291d7e4
AK
5$(VREF): avconv$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
6$(AREF): avconv$(EXESUF) tests/data/asynth1.sw
698a183e 7
698a183e
MR
8tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF)
9 @mkdir -p tests/vsynth1
10 $(M)./$< 'tests/vsynth1/'
11
12tests/vsynth2/00.pgm: tests/rotozoom$(HOSTEXESUF)
13 @mkdir -p tests/vsynth2
14 $(M)./$< 'tests/vsynth2/' $(SRC_PATH)/tests/lena.pnm
15
16tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF)
17 @mkdir -p tests/data
18 $(M)./$< $@
19
73dbc89c
MS
20tests/data/asynth-16000-1.sw: tests/audiogen$(HOSTEXESUF)
21 @mkdir -p tests/data
22 $(M)./$< $@ 16000 1
23
24tests/data/asynth%.sw tests/vsynth%/00.pgm: TAG = GEN
698a183e 25
f038cf3c
MR
26include $(SRC_PATH)/tests/fate.mak
27include $(SRC_PATH)/tests/fate2.mak
28
29include $(SRC_PATH)/tests/fate/aac.mak
bf692357 30include $(SRC_PATH)/tests/fate/ac3.mak
f038cf3c 31include $(SRC_PATH)/tests/fate/als.mak
0291ce84
MR
32include $(SRC_PATH)/tests/fate/amrnb.mak
33include $(SRC_PATH)/tests/fate/amrwb.mak
27e71443 34include $(SRC_PATH)/tests/fate/dct.mak
f038cf3c
MR
35include $(SRC_PATH)/tests/fate/fft.mak
36include $(SRC_PATH)/tests/fate/h264.mak
03256d96 37include $(SRC_PATH)/tests/fate/libavutil.mak
f038cf3c 38include $(SRC_PATH)/tests/fate/mp3.mak
a62d3669 39include $(SRC_PATH)/tests/fate/prores.mak
f8c47cb8 40include $(SRC_PATH)/tests/fate/qtrle.mak
bad38179 41include $(SRC_PATH)/tests/fate/real.mak
753a5063 42include $(SRC_PATH)/tests/fate/screen.mak
42de665d 43include $(SRC_PATH)/tests/fate/utvideo.mak
f038cf3c
MR
44include $(SRC_PATH)/tests/fate/vorbis.mak
45include $(SRC_PATH)/tests/fate/vp8.mak
698a183e
MR
46
47FATE_ACODEC = $(ACODEC_TESTS:%=fate-acodec-%)
48FATE_VSYNTH1 = $(VCODEC_TESTS:%=fate-vsynth1-%)
49FATE_VSYNTH2 = $(VCODEC_TESTS:%=fate-vsynth2-%)
50FATE_VCODEC = $(FATE_VSYNTH1) $(FATE_VSYNTH2)
51FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
52FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
53FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
54
55FATE = $(FATE_ACODEC) \
56 $(FATE_VCODEC) \
57 $(FATE_LAVF) \
698a183e
MR
58 $(FATE_SEEK) \
59
908f12f3
MR
60FATE-$(CONFIG_AVFILTER) += $(FATE_LAVFI)
61
62FATE += $(FATE-yes)
63
698a183e 64$(filter-out %-aref,$(FATE_ACODEC)): $(AREF)
b13c6e33
MR
65$(filter-out %-vref,$(FATE_VSYNTH1)): fate-vsynth1-vref
66$(filter-out %-vref,$(FATE_VSYNTH2)): fate-vsynth2-vref
698a183e
MR
67$(FATE_LAVF): $(REFS)
68$(FATE_LAVFI): $(REFS) tools/lavfi-showfiltfmts$(EXESUF)
191c5f8f 69$(FATE_SEEK): fate-codec fate-lavf libavformat/seek-test$(EXESUF)
698a183e
MR
70
71$(FATE_ACODEC): CMD = codectest acodec
72$(FATE_VSYNTH1): CMD = codectest vsynth1
73$(FATE_VSYNTH2): CMD = codectest vsynth2
74$(FATE_LAVF): CMD = lavftest
75$(FATE_LAVFI): CMD = lavfitest
76$(FATE_SEEK): CMD = seektest
77
78fate-codec: fate-acodec fate-vcodec
79fate-acodec: $(FATE_ACODEC)
80fate-vcodec: $(FATE_VCODEC)
81fate-lavf: $(FATE_LAVF)
82fate-lavfi: $(FATE_LAVFI)
83fate-seek: $(FATE_SEEK)
84
85ifdef SAMPLES
908f12f3 86FATE += $(FATE_TESTS) $(FATE_TESTS-yes)
698a183e
MR
87fate-rsync:
88 rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
89else
90fate-rsync:
91 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
92$(FATE_TESTS):
93 @echo "SAMPLES not specified, cannot run FATE"
94endif
95
96FATE_UTILS = base64 tiny_psnr
97
98fate: $(FATE)
99
6291d7e4 100$(FATE): avconv$(EXESUF) $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
698a183e
MR
101 @echo "TEST $(@:fate-%=%)"
102 $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)'
103
104fate-list:
105 @printf '%s\n' $(sort $(FATE))
106
107clean:: testclean
108
109testclean:
110 $(RM) -r tests/vsynth1 tests/vsynth2 tests/data
deb3ed01 111 $(RM) $(CLEANSUFFIXES:%=tests/%)
698a183e
MR
112 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
113
114-include $(wildcard tests/*.d)
115
bd9a9a2f 116.PHONY: fate*