Revision 57f09630

View differences:

Makefile
176 176
FFSERVER_REFFILE = $(SRC_PATH)/tests/ffserver.regression.ref
177 177
SEEK_REFFILE     = $(SRC_PATH)/tests/seek.regression.ref
178 178

  
179
ACODEC_TESTS := $(addprefix regtest-, $(ACODEC_TESTS) $(ACODEC_TESTS-yes))
180
VCODEC_TESTS := $(addprefix regtest-, $(VCODEC_TESTS) $(VCODEC_TESTS-yes))
181
LAVF_TESTS  := $(addprefix regtest-, $(LAVF_TESTS)  $(LAVF_TESTS-yes))
182
LAVFI_TESTS := $(addprefix regtest-, $(LAVFI_TESTS) $(LAVFI_TESTS-yes))
183

  
184
CODEC_TESTS = $(VCODEC_TESTS) $(ACODEC_TESTS)
185

  
186
codectest: $(CODEC_TESTS)
187
lavftest:  $(LAVF_TESTS)
188
lavfitest: $(LAVFI_TESTS)
179
codectest: fate-codec
180
lavftest:  fate-lavf
181
lavfitest: fate-lavfi
182
seektest:  fate-seek
189 183

  
190 184
AREF = tests/data/acodec.ref.wav
191 185
VREF = tests/data/vsynth1.ref.yuv
192 186
REFS = $(AREF) $(VREF)
193 187

  
194
$(ACODEC_TESTS): $(AREF)
195
$(VCODEC_TESTS): $(VREF)
196
$(LAVF_TESTS) $(LAVFI_TESTS): $(REFS)
197

  
198
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
199
RESFILE = tests/data/regression/$(1)/$(2:regtest-%=%)
200

  
201
define VCODECTEST
202
	@echo "TEST VCODEC $(1:regtest-%=%)"
203
	$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
204
	$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
205
endef
206

  
207
define ACODECTEST
208
	@echo "TEST ACODEC $(1:regtest-%=%)"
209
	$(SRC_PATH)/tests/codec-regression.sh $(1) acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
210
endef
188
$(REFS): TAG = GEN
211 189

  
212 190
$(VREF): ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
213
	@$(call VCODECTEST,vref)
191
	$(M)$(SRC_PATH)/tests/codec-regression.sh vref vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
192
	$(Q)$(SRC_PATH)/tests/codec-regression.sh vref vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
214 193

  
215 194
$(AREF): ffmpeg$(EXESUF) tests/data/asynth1.sw
216
	@$(call ACODECTEST,aref)
217

  
218
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
219
	@$(call VCODECTEST,$@)
220
	@diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@)
221
	@diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@)
222

  
223
$(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
224
	@$(call ACODECTEST,$@)
225
	@diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@)
226

  
227
$(LAVF_TESTS):
228
	@echo "TEST LAVF  $(@:regtest-%=%)"
229
	@$(SRC_PATH)/tests/lavf-regression.sh $@ lavf tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
230
	@diff -u -w $(call REFFILE,lavf,$@) $(call RESFILE,lavf,$@)
231

  
232
$(LAVFI_TESTS): tools/lavfi-showfiltfmts$(EXESUF)
233
	@echo "TEST LAVFI $(@:regtest-%=%)"
234
	@$(SRC_PATH)/tests/lavfi-regression.sh $@ lavfi tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
235
	@diff -u -w $(call REFFILE,lavfi,$@) $(call RESFILE,lavfi,$@)
236

  
237
seektest: codectest lavftest tests/seek_test$(EXESUF)
238
	$(SRC_PATH)/tests/seek-regression.sh $(SRC_PATH) "$(TARGET_EXEC)" "$(TARGET_PATH)"
195
	$(M)$(SRC_PATH)/tests/codec-regression.sh aref acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
239 196

  
240 197
ffservertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/data/asynth1.sw
241 198
	@echo
......
266 223

  
267 224
FATE_TESTS += $(FATE2_TESTS)
268 225

  
269
FATE_ACODEC  = $(ACODEC_TESTS:regtest-%=fate-acodec-%)
270
FATE_VSYNTH1 = $(VCODEC_TESTS:regtest-%=fate-vsynth1-%)
271
FATE_VSYNTH2 = $(VCODEC_TESTS:regtest-%=fate-vsynth2-%)
226
FATE_ACODEC  = $(ACODEC_TESTS:%=fate-acodec-%)
227
FATE_VSYNTH1 = $(VCODEC_TESTS:%=fate-vsynth1-%)
228
FATE_VSYNTH2 = $(VCODEC_TESTS:%=fate-vsynth2-%)
272 229
FATE_VCODEC  = $(FATE_VSYNTH1) $(FATE_VSYNTH2)
273
FATE_LAVF    = $(LAVF_TESTS:regtest-%=fate-lavf-%)
274
FATE_LAVFI   = $(LAVFI_TESTS:regtest-%=fate-lavfi-%)
230
FATE_LAVF    = $(LAVF_TESTS:%=fate-lavf-%)
231
FATE_LAVFI   = $(LAVFI_TESTS:%=fate-lavfi-%)
275 232
FATE_SEEK    = $(SEEK_TESTS:seek_%=fate-seek-%)
276 233

  
277 234
FATE = $(FATE_ACODEC)                                                   \

Also available in: Unified diff