aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-23 03:28:08 +0100
committerMans Rullgard <mans@mansr.com>2012-10-23 11:12:24 +0100
commita1f6ad69c77917a348650a745752535503a44f88 (patch)
treeacfd76d2660c9d5b556c6378c570cf18d4c56cac
parent6f9018fc5ecd974061e17ba84a14625a925e353a (diff)
downloadffmpeg-a1f6ad69c77917a348650a745752535503a44f88.tar.gz
fate: check that dependencies actually exist
This causes make to exit with an error message if a nonexistent dependency is specified rather than silently dropping the test. Signed-off-by: Mans Rullgard <mans@mansr.com>
-rw-r--r--tests/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 8bc2b410e5..64ad6ad8ae 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,9 +20,11 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
+CHKCFG = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
+
ALLYES = $(strip $(call XYES, $(1)))
XYES = $(if $(strip $(1)), \
- $(if $(CONFIG_$(firstword $(1))), \
+ $(if $(call CHKCFG,CONFIG_$(firstword $(1))), \
$(call XYES, $(wordlist 2, $(words $(1)), $(1)))), \
yes)