[FFmpeg-cvslog] fate: check that dependencies actually exist

Mans Rullgard git at videolan.org
Tue Oct 23 15:15:54 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue Oct 23 03:28:08 2012 +0100| [a1f6ad69c77917a348650a745752535503a44f88] | committer: Mans Rullgard

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 at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1f6ad69c77917a348650a745752535503a44f88
---

 tests/Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 8bc2b41..64ad6ad 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)
 



More information about the ffmpeg-cvslog mailing list