1 FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
3 VREF = tests/vsynth1/00.pgm
4 AREF = tests/data/asynth1.sw
9 ffservertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/data/asynth1.sw
11 @echo "Unfortunately ffserver is broken and therefore its regression"
12 @echo "test fails randomly. Treat the results accordingly."
14 $(SRC_PATH)/tests/ffserver-regression.sh $(FFSERVER_REFFILE) $(SRC_PATH)/tests/ffserver.conf
16 OBJDIRS += tests/data tests/vsynth1
18 tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
19 $(M)./$< 'tests/vsynth1/'
21 tests/data/asynth1.sw: tests/audiogen$(HOSTEXESUF) | tests/data
24 tests/data/asynth-%.wav: tests/audiogen$(HOSTEXESUF) | tests/data
25 $(M)./$< $@ $(subst -, ,$*)
27 tests/data/vsynth1.yuv: tests/videogen$(HOSTEXESUF) | tests/data
30 tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
31 $(M)$< $(SRC_PATH)/tests/lena.pnm $@
33 tests/data/ffprobe-test.nut: ffmpeg$(EXESUF) | tests/data
35 -f lavfi -i "aevalsrc=sin(400*PI*2*t)::d=0.125[out0]; testsrc=d=0.125[out1]; testsrc=s=100x100:d=0.125[out2]" \
36 -f ffmetadata -i $(SRC_PATH)/tests/test.ffmeta \
37 -flags +bitexact -map 0:0 -map 0:1 -map 0:2 -map_metadata 1 \
38 -vcodec rawvideo -acodec pcm_s16le \
41 tests/data/%.sw tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm tests/data/%.nut: TAG = GEN
43 include $(SRC_PATH)/tests/fate/acodec.mak
44 include $(SRC_PATH)/tests/fate/vcodec.mak
46 include $(SRC_PATH)/tests/fate/aac.mak
47 include $(SRC_PATH)/tests/fate/ac3.mak
48 include $(SRC_PATH)/tests/fate/adpcm.mak
49 include $(SRC_PATH)/tests/fate/alac.mak
50 include $(SRC_PATH)/tests/fate/als.mak
51 include $(SRC_PATH)/tests/fate/amrnb.mak
52 include $(SRC_PATH)/tests/fate/amrwb.mak
53 include $(SRC_PATH)/tests/fate/atrac.mak
54 include $(SRC_PATH)/tests/fate/audio.mak
55 include $(SRC_PATH)/tests/fate/bmp.mak
56 include $(SRC_PATH)/tests/fate/cdxl.mak
57 include $(SRC_PATH)/tests/fate/cover-art.mak
58 include $(SRC_PATH)/tests/fate/dct.mak
59 include $(SRC_PATH)/tests/fate/demux.mak
60 include $(SRC_PATH)/tests/fate/dfa.mak
61 include $(SRC_PATH)/tests/fate/dpcm.mak
62 include $(SRC_PATH)/tests/fate/ea.mak
63 include $(SRC_PATH)/tests/fate/ffprobe.mak
64 include $(SRC_PATH)/tests/fate/filter.mak
65 include $(SRC_PATH)/tests/fate/flac.mak
66 include $(SRC_PATH)/tests/fate/fft.mak
67 include $(SRC_PATH)/tests/fate/h264.mak
68 include $(SRC_PATH)/tests/fate/image.mak
69 include $(SRC_PATH)/tests/fate/indeo.mak
70 include $(SRC_PATH)/tests/fate/libavcodec.mak
71 include $(SRC_PATH)/tests/fate/libavutil.mak
72 include $(SRC_PATH)/tests/fate/mapchan.mak
73 include $(SRC_PATH)/tests/fate/lossless-audio.mak
74 include $(SRC_PATH)/tests/fate/lossless-video.mak
75 include $(SRC_PATH)/tests/fate/microsoft.mak
76 include $(SRC_PATH)/tests/fate/mp3.mak
77 include $(SRC_PATH)/tests/fate/mpc.mak
78 include $(SRC_PATH)/tests/fate/options.mak
79 include $(SRC_PATH)/tests/fate/pcm.mak
80 include $(SRC_PATH)/tests/fate/probe.mak
81 include $(SRC_PATH)/tests/fate/prores.mak
82 include $(SRC_PATH)/tests/fate/qt.mak
83 include $(SRC_PATH)/tests/fate/qtrle.mak
84 include $(SRC_PATH)/tests/fate/real.mak
85 include $(SRC_PATH)/tests/fate/screen.mak
86 include $(SRC_PATH)/tests/fate/subtitles.mak
87 include $(SRC_PATH)/tests/fate/utvideo.mak
88 include $(SRC_PATH)/tests/fate/video.mak
89 include $(SRC_PATH)/tests/fate/voice.mak
90 include $(SRC_PATH)/tests/fate/vorbis.mak
91 include $(SRC_PATH)/tests/fate/vpx.mak
92 include $(SRC_PATH)/tests/fate/vqf.mak
93 include $(SRC_PATH)/tests/fate/wavpack.mak
94 include $(SRC_PATH)/tests/fate/wma.mak
96 FATE_LAVF_FATE = $(LAVF_FATE_TESTS:%=fate-lavf-fate-%)
97 FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
98 FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
99 FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
101 FATE_AVCONV += $(FATE_LAVF) \
105 FATE_FFMPEG += $(FATE_FFMPEG-yes) $(FATE_AVCONV) $(FATE_AVCONV-yes)
106 FATE-$(CONFIG_FFMPEG) += $(FATE_FFMPEG)
107 FATE-$(CONFIG_FFPROBE) += $(FATE_FFPROBE)
109 FATE-$(CONFIG_AVCODEC) += $(FATE_LIBAVCODEC)
111 FATE_EXTERN-$(CONFIG_FFMPEG) += $(FATE_SAMPLES_AVCONV) $(FATE_SAMPLES_FFMPEG)
112 FATE_EXTERN += $(FATE_EXTERN-yes)
115 FATE += $(FATE_LIBAVUTIL)
117 $(FATE_FFMPEG) $(FATE_LAVF_FATE) $(FATE_SAMPLES_AVCONV) $(FATE_SAMPLES_FFMPEG): ffmpeg$(EXESUF)
119 $(FATE_FFPROBE): ffprobe$(EXESUF)
121 $(FATE_LAVF): $(AREF) $(VREF)
122 $(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
123 $(FATE_SEEK): fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF)
125 $(FATE_LAVF_FATE): CMD = lavffatetest
126 $(FATE_LAVF): CMD = lavftest
127 $(FATE_LAVFI): CMD = lavfitest
128 $(FATE_SEEK): CMD = seektest
130 fate-lavf-fate: $(FATE_LAVF_FATE)
131 fate-lavf: $(FATE_LAVF)
132 fate-lavfi: $(FATE_LAVFI)
133 fate-seek: $(FATE_SEEK)
136 FATE += $(FATE_LAVF_FATE)
137 FATE += $(FATE_FULL) $(FATE_FULL-yes)
138 FATE += $(FATE_EXTERN)
140 rsync -vaLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ $(SAMPLES)
143 @echo "warning: only a subset of the fate tests will be run because SAMPLES is not specified"
145 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
147 @echo "$@ requires external samples and SAMPLES not specified"; false
150 FATE_UTILS = base64 tiny_psnr
156 $(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
157 @echo "TEST $(@:fate-%=%)"
158 $(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)'
161 @printf '%s\n' $(sort $(FATE))
166 $(RM) -r tests/vsynth1 tests/data tools/lavfi-showfiltfmts$(EXESUF)
167 $(RM) $(CLEANSUFFIXES:%=tests/%)
168 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
170 -include $(wildcard tests/*.d)