From e9d6116e5bd30639d6333ef95462fe300f47ccd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 6 Apr 2009 17:13:01 -0400 Subject: Use libudev in test case to only run gem tests for intel devices. --- tests/Makefile.am | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index e66d1c82..123c5478 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,19 +6,22 @@ noinst_PROGRAMS = \ dristat \ drmstat +SUBDIRS = \ + modeprint \ + modetest + +if HAVE_LIBUDEV + EXTRA_LTLIBRARIES = libdrmtest.la libdrmtest_la_SOURCES = \ drmtest.c \ drmtest.h libdrmtest_la_LIBADD = \ - $(top_builddir)/libdrm/libdrm.la + $(top_builddir)/libdrm/libdrm.la \ + $(LIBUDEV_LIBS) LDADD = libdrmtest.la -SUBDIRS = \ - modeprint \ - modetest - TESTS = auth \ openclose \ getversion \ @@ -33,5 +36,8 @@ TESTS = auth \ gem_mmap EXTRA_PROGRAMS = $(TESTS) + +endif + CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) -- cgit v1.2.3