tests: Disable intel-specific tests with --disable-intel
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Oct 2009 22:17:57 +0000 (23:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 3 Oct 2009 22:18:19 +0000 (23:18 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/Makefile.am

index 98c106b..af44d6a 100644 (file)
@@ -1,3 +1,5 @@
+NULL:=#
+
 AM_CPPFLAGS = \
        -I $(top_srcdir)/shared-core \
        -I $(top_srcdir)/libdrm
@@ -8,9 +10,10 @@ noinst_PROGRAMS = \
        dristat \
        drmstat
 
-SUBDIRS = \
-       modeprint \
-       modetest
+SUBDIRS =
+
+if HAVE_INTEL
+endif
 
 if HAVE_LIBUDEV
 
@@ -37,14 +40,24 @@ TESTS =                                             \
        getstats                                \
        setversion                              \
        updatedraw                              \
+       $(NULL)
+
+if HAVE_INTEL
+SUBDIRS += \
+       modeprint                               \
+       modetest                                \
+       $(NULL)
+
+TESTS +=                                       \
        gem_basic                               \
        gem_flink                               \
        gem_readwrite                           \
-       gem_mmap
+       gem_mmap                                \
+       $(NULL)
+endif
 
 EXTRA_PROGRAMS = $(TESTS)
 
 endif
 
 CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)
-