Commit e1621087 authored by Måns Rullgård's avatar Måns Rullgård

Clean up make rules for calling codec test scripts

Originally committed as revision 24112 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4ab20de6
...@@ -289,28 +289,32 @@ $(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref ...@@ -289,28 +289,32 @@ $(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%) REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
RESFILE = tests/data/$(2:regtest-%=%).$(1).regression RESFILE = tests/data/$(2:regtest-%=%).$(1).regression
define CODECTEST_CMD define VCODECTEST
$(SRC_PATH)/tests/codec-regression.sh $@ vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)" @echo "TEST VCODEC $(1:regtest-%=%)"
$(SRC_PATH)/tests/codec-regression.sh $@ vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)" $(SRC_PATH)/tests/codec-regression.sh $(1) vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth2 tests/vsynth2 "$(TARGET_EXEC)" "$(TARGET_PATH)"
endef
define ACODECTEST
@echo "TEST ACODEC $(1:regtest-%=%)"
$(SRC_PATH)/tests/codec-regression.sh $(1) acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
endef endef
regtest-ref: regtest-aref regtest-vref regtest-ref: regtest-aref regtest-vref
regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
$(CODECTEST_CMD) @$(call VCODECTEST,vref)
regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw
@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)" @$(call ACODECTEST,aref)
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF) $(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
@echo "TEST VCODEC $(@:regtest-%=%)" @$(call VCODECTEST,$@)
@$(CODECTEST_CMD)
@diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@) @diff -u -w $(call REFFILE,vsynth1,$@) $(call RESFILE,vsynth1,$@)
@diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@) @diff -u -w $(call REFFILE,vsynth2,$@) $(call RESFILE,vsynth2,$@)
$(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF) $(ACODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)
@echo "TEST ACODEC $(@:regtest-%=%)" @$(call ACODECTEST,$@)
@$(SRC_PATH)/tests/codec-regression.sh $@ acodec tests/acodec "$(TARGET_EXEC)" "$(TARGET_PATH)"
@diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@) @diff -u -w $(call REFFILE,acodec,$@) $(call RESFILE,acodec,$@)
$(LAVF_TESTS): $(LAVF_TESTS):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment