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$(HOSTEXESUF) | 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 -flags +bitexact -map 0:0 -map 0:1 -map 0:2 \
37 -metadata "title=ffprobe test file" \
38 -metadata "comment='A comment wih CSV, XML & JSON special chars': <tag value=\"x\">" \
39 -metadata "comment2=I ♥ Üñîçød€" \
40 -vcodec rawvideo -acodec pcm_s16le \
43 tests/data/%.sw tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm tests/data/%.nut: TAG = GEN
45 include $(SRC_PATH)/tests/fate/acodec.mak
46 include $(SRC_PATH)/tests/fate/vcodec.mak
48 include $(SRC_PATH)/tests/fate/aac.mak
49 include $(SRC_PATH)/tests/fate/ac3.mak
50 include $(SRC_PATH)/tests/fate/adpcm.mak
51 include $(SRC_PATH)/tests/fate/alac.mak
52 include $(SRC_PATH)/tests/fate/als.mak
53 include $(SRC_PATH)/tests/fate/amrnb.mak
54 include $(SRC_PATH)/tests/fate/amrwb.mak
55 include $(SRC_PATH)/tests/fate/atrac.mak
56 include $(SRC_PATH)/tests/fate/audio.mak
57 include $(SRC_PATH)/tests/fate/bmp.mak
58 include $(SRC_PATH)/tests/fate/cdxl.mak
59 include $(SRC_PATH)/tests/fate/cover-art.mak
60 include $(SRC_PATH)/tests/fate/dct.mak
61 include $(SRC_PATH)/tests/fate/demux.mak
62 include $(SRC_PATH)/tests/fate/dfa.mak
63 include $(SRC_PATH)/tests/fate/dpcm.mak
64 include $(SRC_PATH)/tests/fate/ea.mak
65 include $(SRC_PATH)/tests/fate/ffprobe.mak
66 include $(SRC_PATH)/tests/fate/filter.mak
67 include $(SRC_PATH)/tests/fate/flac.mak
68 include $(SRC_PATH)/tests/fate/fft.mak
69 include $(SRC_PATH)/tests/fate/h264.mak
70 include $(SRC_PATH)/tests/fate/image.mak
71 include $(SRC_PATH)/tests/fate/indeo.mak
72 include $(SRC_PATH)/tests/fate/libavcodec.mak
73 include $(SRC_PATH)/tests/fate/libavutil.mak
74 include $(SRC_PATH)/tests/fate/mapchan.mak
75 include $(SRC_PATH)/tests/fate/lossless-audio.mak
76 include $(SRC_PATH)/tests/fate/lossless-video.mak
77 include $(SRC_PATH)/tests/fate/microsoft.mak
78 include $(SRC_PATH)/tests/fate/mp3.mak
79 include $(SRC_PATH)/tests/fate/mpc.mak
80 include $(SRC_PATH)/tests/fate/options.mak
81 include $(SRC_PATH)/tests/fate/pcm.mak
82 include $(SRC_PATH)/tests/fate/probe.mak
83 include $(SRC_PATH)/tests/fate/prores.mak
84 include $(SRC_PATH)/tests/fate/qt.mak
85 include $(SRC_PATH)/tests/fate/qtrle.mak
86 include $(SRC_PATH)/tests/fate/real.mak
87 include $(SRC_PATH)/tests/fate/screen.mak
88 include $(SRC_PATH)/tests/fate/subtitles.mak
89 include $(SRC_PATH)/tests/fate/utvideo.mak
90 include $(SRC_PATH)/tests/fate/video.mak
91 include $(SRC_PATH)/tests/fate/voice.mak
92 include $(SRC_PATH)/tests/fate/vorbis.mak
93 include $(SRC_PATH)/tests/fate/vpx.mak
94 include $(SRC_PATH)/tests/fate/vqf.mak
95 include $(SRC_PATH)/tests/fate/wavpack.mak
96 include $(SRC_PATH)/tests/fate/wma.mak
98 FATE_LAVF_FATE = $(LAVF_FATE_TESTS:%=fate-lavf-fate-%)
99 FATE_LAVF = $(LAVF_TESTS:%=fate-lavf-%)
100 FATE_LAVFI = $(LAVFI_TESTS:%=fate-lavfi-%)
101 FATE_SEEK = $(SEEK_TESTS:seek_%=fate-seek-%)
103 FATE_AVCONV += $(FATE_LAVF) \
107 FATE_FFMPEG += $(FATE_FFMPEG-yes) $(FATE_AVCONV) $(FATE_AVCONV-yes)
108 FATE-$(CONFIG_FFMPEG) += $(FATE_FFMPEG)
110 FATE-$(CONFIG_AVCODEC) += $(FATE_LIBAVCODEC)
112 FATE_EXTERN-$(CONFIG_FFMPEG) += $(FATE_SAMPLES_AVCONV) $(FATE_SAMPLES_FFMPEG)
113 FATE_EXTERN += $(FATE_EXTERN-yes)
116 FATE += $(FATE_LIBAVUTIL)
117 FATE += $(FATE_FFPROBE)
119 $(FATE_FFMPEG) $(FATE_LAVF_FATE) $(FATE_SAMPLES_AVCONV) $(FATE_SAMPLES_FFMPEG): ffmpeg$(EXESUF)
121 $(FATE_FFPROBE): ffprobe$(EXESUF)
123 $(FATE_LAVF): $(AREF) $(VREF)
124 $(FATE_LAVFI): $(VREF) libavfilter/filtfmts-test$(EXESUF)
125 $(FATE_SEEK): fate-acodec fate-vsynth2 fate-lavf libavformat/seek-test$(EXESUF)
127 $(FATE_LAVF_FATE): CMD = lavffatetest
128 $(FATE_LAVF): CMD = lavftest
129 $(FATE_LAVFI): CMD = lavfitest
130 $(FATE_SEEK): CMD = seektest
132 fate-lavf-fate: $(FATE_LAVF_FATE)
133 fate-lavf: $(FATE_LAVF)
134 fate-lavfi: $(FATE_LAVFI)
135 fate-seek: $(FATE_SEEK)
138 FATE += $(FATE_LAVF_FATE)
139 FATE += $(FATE_FULL) $(FATE_FULL-yes)
140 FATE += $(FATE_EXTERN)
142 rsync -vaLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ $(SAMPLES)
145 @echo "warning: only a subset of the fate tests will be run because SAMPLES is not specified"
147 @echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
149 @echo "$@ requires external samples and SAMPLES not specified"; false
152 FATE_UTILS = base64 tiny_psnr
158 $(FATE) $(FATE_TESTS-no): $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
159 @echo "TEST $(@:fate-%=%)"
160 $(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)'
163 @printf '%s\n' $(sort $(FATE))
168 $(RM) -r tests/vsynth1 tests/data tools/lavfi-showfiltfmts$(EXESUF)
169 $(RM) $(CLEANSUFFIXES:%=tests/%)
170 $(RM) $(TESTTOOLS:%=tests/%$(HOSTEXESUF))
172 -include $(wildcard tests/*.d)