summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-09-11 21:28:05 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-11 21:45:27 +0100
commit4fb651cb5f6086121d9ad9182e2374d90470ecce (patch)
treeaece63bd452684432d19da088d426867f98b0ac1 /test
parent815caa9fc660a4eec15992a52b0f8ff9c3c71c55 (diff)
test: only build DRI2 tests if DRI2 is enabled
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 893fa7d9..26d724a0 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -16,9 +16,14 @@ stress_TESTS = \
render-copyarea-size \
render-copy-alphaless \
mixed-stress \
+ $(NULL)
+
+if DRI2
+stress_TESTS += \
dri2-swap \
dri2-race \
$(NULL)
+endif
check_PROGRAMS = $(stress_TESTS)
@@ -34,9 +39,14 @@ libtest_la_SOURCES = \
test_image.c \
test_log.c \
test_render.c \
+ $(NULL)
+
+if DRI2
+libtest_la_SOURCES += \
dri2.c \
dri2.h \
$(NULL)
+endif
vsync.avi: mkvsync.sh
./mkvsync.sh $@