Revision e1621087

View differences:

Makefile
289 289
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
290 290
RESFILE = tests/data/$(2:regtest-%=%).$(1).regression
291 291

  
292
define CODECTEST_CMD
293
	$(SRC_PATH)/tests/codec-regression.sh $@ vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
294
	$(SRC_PATH)/tests/codec-regression.sh $@ vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
292
define VCODECTEST
293
	@echo "TEST VCODEC $(1:regtest-%=%)"
294
	$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
295
	$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
296
endef
297

  
298
define ACODECTEST
299
	@echo "TEST ACODEC $(1:regtest-%=%)"
300
	$(SRC_PATH)/tests/codec-regression.sh $(1) acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
295 301
endef
296 302

  
297 303
regtest-ref: regtest-aref regtest-vref
298 304

  
299 305
regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
300
	$(CODECTEST_CMD)
306
	@$(call VCODECTEST,vref)
301 307

  
302 308
regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw
303
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
309
	@$(call ACODECTEST,aref)
304 310

  
305 311
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
306
	@echo "TEST VCODEC $(@:regtest-%=%)"
307
	@$(CODECTEST_CMD)
312
	@$(call VCODECTEST,$@)
308 313
	@diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@)
309 314
	@diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@)
310 315

  
311 316
$(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
312
	@echo "TEST ACODEC $(@:regtest-%=%)"
313
	@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
317
	@$(call ACODECTEST,$@)
314 318
	@diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@)
315 319

  
316 320
$(LAVF_TESTS):

Also available in: Unified diff