macosx: use the default surface on newer sdl
[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
20tests/data/asynth1.sw tests/vsynth%/00.pgm: TAG = GEN
21
f038cf3c
MR
22include $(SRC_PATH)/tests/fate.mak
23include $(SRC_PATH)/tests/fate2.mak
24
25include $(SRC_PATH)/tests/fate/aac.mak
26include $(SRC_PATH)/tests/fate/als.mak
0291ce84
MR
27include $(SRC_PATH)/tests/fate/amrnb.mak
28include $(SRC_PATH)/tests/fate/amrwb.mak
27e71443 29include $(SRC_PATH)/tests/fate/dct.mak
f038cf3c
MR
30include $(SRC_PATH)/tests/fate/fft.mak
31include $(SRC_PATH)/tests/fate/h264.mak
03256d96 32include $(SRC_PATH)/tests/fate/libavutil.mak
f038cf3c 33include $(SRC_PATH)/tests/fate/mp3.mak
a62d3669 34include $(SRC_PATH)/tests/fate/prores.mak
f038cf3c
MR
35include $(SRC_PATH)/tests/fate/vorbis.mak
36include $(SRC_PATH)/tests/fate/vp8.mak
698a183e
MR
37
38FATE_ACODEC = $(ACODEC_TESTS:%=fate-acodec-%)
39FATE_VSYNTH1 = $(VCODEC_TESTS:%=fate-vsynth1-%)
40FATE_VSYNTH2 = $(VCODEC_TESTS:%=fate-vsynth2-%)
41FATE_VCODEC = $(FATE_VSYNTH1) $(FATE_VSYNTH2)
42FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
43FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
44FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
45
46FATE = $(FATE_ACODEC) \
47 $(FATE_VCODEC) \
48 $(FATE_LAVF) \
698a183e
MR
49 $(FATE_SEEK) \
50
908f12f3
MR
51FATE-$(CONFIG_AVFILTER) += $(FATE_LAVFI)
52
53FATE += $(FATE-yes)
54
698a183e 55$(filter-out %-aref,$(FATE_ACODEC)): $(AREF)
b13c6e33
MR
56$(filter-out %-vref,$(FATE_VSYNTH1)): fate-vsynth1-vref
57$(filter-out %-vref,$(FATE_VSYNTH2)): fate-vsynth2-vref
698a183e
MR
58$(FATE_LAVF): $(REFS)
59$(FATE_LAVFI): $(REFS) tools/lavfi-showfiltfmts$(EXESUF)
191c5f8f 60$(FATE_SEEK): fate-codec fate-lavf libavformat/seek-test$(EXESUF)
698a183e
MR
61
62$(FATE_ACODEC): CMD = codectest acodec
63$(FATE_VSYNTH1): CMD = codectest vsynth1
64$(FATE_VSYNTH2): CMD = codectest vsynth2
65$(FATE_LAVF): CMD = lavftest
66$(FATE_LAVFI): CMD = lavfitest
67$(FATE_SEEK): CMD = seektest
68
69fate-codec: fate-acodec fate-vcodec
70fate-acodec: $(FATE_ACODEC)
71fate-vcodec: $(FATE_VCODEC)
72fate-lavf: $(FATE_LAVF)
73fate-lavfi: $(FATE_LAVFI)
74fate-seek: $(FATE_SEEK)
75
76ifdef SAMPLES
908f12f3 77FATE += $(FATE_TESTS) $(FATE_TESTS-yes)
698a183e
MR
78fate-rsync:
79 rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
80else
81fate-rsync:
82 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
83$(FATE_TESTS):
84 @echo "SAMPLES not specified, cannot run FATE"
85endif
86
87FATE_UTILS = base64 tiny_psnr
88
89fate: $(FATE)
90
6291d7e4 91$(FATE): avconv$(EXESUF) $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
698a183e
MR
92 @echo "TEST $(@:fate-%=%)"
93 $(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)'
94
95fate-list:
96 @printf '%s\n' $(sort $(FATE))
97
98clean:: testclean
99
100testclean:
101 $(RM) -r tests/vsynth1 tests/vsynth2 tests/data
deb3ed01 102 $(RM) $(CLEANSUFFIXES:%=tests/%)
698a183e
MR
103 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
104
105-include $(wildcard tests/*.d)
106
bd9a9a2f 107.PHONY: fate*