summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-16 14:38:44 +0100
committerMans Rullgard <mans@mansr.com>2012-10-17 22:31:18 +0100
commit21fed588cba73f9fe19a66acc1e23124944240ec (patch)
treeacee3c075868c5158f631e3bfecbb88eb5ebd4cc /tests
parentabd8b9e7e05be481163624a9b0b1a572757e5633 (diff)
fate: add macros useful for conditionally enabling things
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index cb9954af12..58964d730e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -20,6 +20,19 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
+ALLYES = $(strip $(call XYES, $(1)))
+XYES = $(if $(strip $(1)), \
+ $(if $(CONFIG_$(firstword $(1))), \
+ $(call XYES, $(wordlist 2, $(words $(1)), $(1)))), \
+ yes)
+
+ENCDEC = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
+ $(firstword $(2))_MUXER $(lastword $(2))_DEMUXER)
+
+ENCDEC2 = $(call ALLYES, $(firstword $(1))_ENCODER $(lastword $(1))_DECODER \
+ $(firstword $(2))_ENCODER $(lastword $(2))_DECODER \
+ $(firstword $(3))_MUXER $(lastword $(3))_DEMUXER)
+
include $(SRC_PATH)/tests/fate/acodec.mak
include $(SRC_PATH)/tests/fate/vcodec.mak