summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-08 15:30:30 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-08 15:30:30 +0000
commit9be24c60d38398541cd3a916285029fa7f38951f (patch)
tree2331c45ece4f763e7e9503dccda1d3a0ae0380aa
parente1621087b6739e9f6e12aae7d59dd99549be384d (diff)
Create the regtest reference files only when necessary
This avoid recreating the ref files every time an individual test is run from the command line. Originally committed as revision 24113 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index de628aadff..23a39d25a5 100644
--- a/Makefile
+++ b/Makefile
@@ -289,6 +289,9 @@ $(LAVF_TESTS) $(LAVFI_TESTS): regtest-ref
REFFILE = $(SRC_PATH)/tests/ref/$(1)/$(2:regtest-%=%)
RESFILE = tests/data/$(2:regtest-%=%).$(1).regression
+AREF = tests/data/acodec.ref.wav
+VREF = tests/data/vsynth1.ref.yuv tests/data/vsynth2.ref.yuv
+
define VCODECTEST
@echo "TEST VCODEC $(1:regtest-%=%)"
$(SRC_PATH)/tests/codec-regression.sh $(1) vsynth1 tests/vsynth1 "$(TARGET_EXEC)" "$(TARGET_PATH)"
@@ -301,11 +304,13 @@ define ACODECTEST
endef
regtest-ref: regtest-aref regtest-vref
+regtest-aref: $(AREF)
+regtest-vref: $(VREF)
-regtest-vref: ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
+$(VREF): ffmpeg$(EXESUF) tests/vsynth1/00.pgm tests/vsynth2/00.pgm
@$(call VCODECTEST,vref)
-regtest-aref: ffmpeg$(EXESUF) tests/data/asynth1.sw
+$(AREF): ffmpeg$(EXESUF) tests/data/asynth1.sw
@$(call ACODECTEST,aref)
$(VCODEC_TESTS): tests/tiny_psnr$(HOSTEXESUF)