fate: Add tests of the ff_make_absolute_url function
[ffmpeg.git] / tests / Makefile
1 VREF = tests/vsynth1/00.pgm
2 AREF = tests/data/asynth1.sw
3
4 OBJDIRS += tests/data tests/vsynth1
5
6 tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
7         $(M)./$< 'tests/vsynth1/'
8
9 tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
10         $(M)./$< $@
11
12 tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
13         $(M)./$< $@ $(subst -, ,$*)
14
15 tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
16         $(M)$< $@
17
18 tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
19         $(M)$< $(SRC_PATH)/tests/lena.pnm $@
20
21 tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
22
23 include $(SRC_PATH)/tests/fate/acodec.mak
24 include $(SRC_PATH)/tests/fate/vcodec.mak
25
26 include $(SRC_PATH)/tests/fate/aac.mak
27 include $(SRC_PATH)/tests/fate/ac3.mak
28 include $(SRC_PATH)/tests/fate/adpcm.mak
29 include $(SRC_PATH)/tests/fate/alac.mak
30 include $(SRC_PATH)/tests/fate/als.mak
31 include $(SRC_PATH)/tests/fate/amrnb.mak
32 include $(SRC_PATH)/tests/fate/amrwb.mak
33 include $(SRC_PATH)/tests/fate/atrac.mak
34 include $(SRC_PATH)/tests/fate/audio.mak
35 include $(SRC_PATH)/tests/fate/bmp.mak
36 include $(SRC_PATH)/tests/fate/cdxl.mak
37 include $(SRC_PATH)/tests/fate/cover-art.mak
38 include $(SRC_PATH)/tests/fate/dct.mak
39 include $(SRC_PATH)/tests/fate/demux.mak
40 include $(SRC_PATH)/tests/fate/dfa.mak
41 include $(SRC_PATH)/tests/fate/dpcm.mak
42 include $(SRC_PATH)/tests/fate/ea.mak
43 include $(SRC_PATH)/tests/fate/filter.mak
44 include $(SRC_PATH)/tests/fate/flac.mak
45 include $(SRC_PATH)/tests/fate/fft.mak
46 include $(SRC_PATH)/tests/fate/h264.mak
47 include $(SRC_PATH)/tests/fate/image.mak
48 include $(SRC_PATH)/tests/fate/indeo.mak
49 include $(SRC_PATH)/tests/fate/libavcodec.mak
50 include $(SRC_PATH)/tests/fate/libavformat.mak
51 include $(SRC_PATH)/tests/fate/libavutil.mak
52 include $(SRC_PATH)/tests/fate/lossless-audio.mak
53 include $(SRC_PATH)/tests/fate/lossless-video.mak
54 include $(SRC_PATH)/tests/fate/microsoft.mak
55 include $(SRC_PATH)/tests/fate/mp3.mak
56 include $(SRC_PATH)/tests/fate/mpc.mak
57 include $(SRC_PATH)/tests/fate/pcm.mak
58 include $(SRC_PATH)/tests/fate/probe.mak
59 include $(SRC_PATH)/tests/fate/prores.mak
60 include $(SRC_PATH)/tests/fate/qt.mak
61 include $(SRC_PATH)/tests/fate/qtrle.mak
62 include $(SRC_PATH)/tests/fate/real.mak
63 include $(SRC_PATH)/tests/fate/screen.mak
64 include $(SRC_PATH)/tests/fate/utvideo.mak
65 include $(SRC_PATH)/tests/fate/video.mak
66 include $(SRC_PATH)/tests/fate/voice.mak
67 include $(SRC_PATH)/tests/fate/vorbis.mak
68 include $(SRC_PATH)/tests/fate/vpx.mak
69 include $(SRC_PATH)/tests/fate/vqf.mak
70 include $(SRC_PATH)/tests/fate/wavpack.mak
71 include $(SRC_PATH)/tests/fate/wma.mak
72
73 FATE_LAVF    = $(LAVF_TESTS:%=fate-lavf-%)
74 FATE_LAVFI   = $(LAVFI_TESTS:%=fate-lavfi-%)
75 FATE_SEEK    = $(SEEK_TESTS:seek_%=fate-seek-%)
76
77 FATE_AVCONV += $(FATE_LAVF)                                             \
78                $(FATE_LAVFI)                                            \
79                $(FATE_SEEK)                                             \
80
81 FATE_AVCONV += $(FATE_AVCONV-yes)
82 FATE-$(CONFIG_AVCONV) += $(FATE_AVCONV)
83
84 FATE-$(CONFIG_AVCODEC)  += $(FATE_LIBAVCODEC)
85 FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT)
86
87 FATE_SAMPLES-$(CONFIG_AVCONV) += $(FATE_SAMPLES_AVCONV)
88 FATE_SAMPLES += $(FATE_SAMPLES-yes)
89
90 FATE += $(FATE-yes)
91 FATE += $(FATE_LIBAVUTIL)
92
93 $(FATE_AVCONV) $(FATE_SAMPLES_AVCONV): avconv$(EXESUF)
94
95 $(FATE_LAVF):  $(AREF) $(VREF)
96 $(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
97 $(FATE_SEEK):  fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF)
98
99 $(FATE_LAVF):    CMD = lavftest
100 $(FATE_LAVFI):   CMD = lavfitest
101 $(FATE_SEEK):    CMD = seektest
102
103 fate-lavf:   $(FATE_LAVF)
104 fate-lavfi:  $(FATE_LAVFI)
105 fate-seek:   $(FATE_SEEK)
106
107 ifdef SAMPLES
108 FATE += $(FATE_SAMPLES)
109 fate-rsync:
110         rsync -vaLW rsync://fate-suite.libav.org/fate-suite/ $(SAMPLES)
111 else
112 fate-rsync:
113         @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
114 $(FATE_SAMPLES):
115         @echo "$@ requires external samples and SAMPLES not specified"; false
116 endif
117
118 FATE_UTILS = base64 tiny_psnr
119
120 fate: $(FATE)
121
122 $(FATE): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
123         @echo "TEST    $(@:fate-%=%)"
124         $(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)'
125
126 fate-list:
127         @printf '%s\n' $(sort $(FATE))
128
129 clean:: testclean
130
131 testclean:
132         $(RM) -r tests/vsynth1 tests/data
133         $(RM) $(CLEANSUFFIXES:%=tests/%)
134         $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
135
136 -include $(wildcard tests/*.d)
137
138 .PHONY: fate*