[FFmpeg-devel] [PATCH] fate: warn if SAMPLES is not specified.

Clément Bœsch ubitux at gmail.com
Thu Dec 22 16:23:05 CET 2011


---
 tests/Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile
index b44db7d..d825cd8 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -108,9 +108,13 @@ fate-seek:   $(FATE_SEEK)
 
 ifdef SAMPLES
 FATE += $(FATE_TESTS) $(FATE_TESTS-yes)
+fate: $(FATE)
 fate-rsync:
 	rsync -vaLW --timeout=60 --contimeout=60 rsync://fate.ffmpeg.org/fate-suite/ $(SAMPLES)
 else
+fate-samples-warning:
+	@echo "warning: only a subset of the fate tests will be run because SAMPLES is not specified"
+fate: fate-samples-warning $(FATE)
 fate-rsync:
 	@echo "use 'make fate-rsync SAMPLES=/path/to/samples' to sync the fate suite"
 $(FATE_TESTS):
@@ -121,8 +125,6 @@ FATE_UTILS = base64 tiny_psnr
 
 TOOL = ffmpeg
 
-fate: $(FATE)
-
 $(FATE): $(TOOL)$(EXESUF) $(FATE_UTILS:%=tests/%$(HOSTEXESUF))
 	@echo "TEST    $(@:fate-%=%)"
 	$(Q)$(SRC_PATH)/tests/fate-run.sh $@ "$(SAMPLES)" "$(TARGET_EXEC)" "$(TARGET_PATH)" '$(CMD)' '$(CMP)' '$(REF)' '$(FUZZ)' '$(THREADS)' '$(THREAD_TYPE)' '$(TOOL)'
-- 
1.7.8.1



More information about the ffmpeg-devel mailing list