d044474d42f6918de2f4b88af762650451034b5a
[glsdk/libdrm.git] / tests / Makefile.am
1 NULL:=#
3 AM_CPPFLAGS = \
4         -I $(top_srcdir)/include/drm \
5         -I $(top_srcdir)
7 LDADD = $(top_builddir)/libdrm.la
9 noinst_PROGRAMS = \
10         dristat \
11         drmstat
13 SUBDIRS =
15 if HAVE_INTEL
16 endif
18 if HAVE_LIBUDEV
20 EXTRA_LTLIBRARIES = libdrmtest.la
22 libdrmtest_la_SOURCES = \
23         drmtest.c \
24         drmtest.h
26 libdrmtest_la_LIBADD = \
27         $(top_builddir)/libdrm.la \
28         $(LIBUDEV_LIBS)
30 LDADD += libdrmtest.la
32 XFAIL_TESTS =                                   \
33         auth                                    \
34         lock
36 TESTS =                                         \
37         openclose                               \
38         getversion                              \
39         getclient                               \
40         getstats                                \
41         setversion                              \
42         updatedraw                              \
43         $(NULL)
45 if HAVE_INTEL
46 SUBDIRS += \
47         modeprint                               \
48         modetest                                \
49         $(NULL)
51 TESTS +=                                        \
52         gem_basic                               \
53         gem_flink                               \
54         gem_readwrite                           \
55         gem_mmap                                \
56         $(NULL)
57 endif
59 EXTRA_PROGRAMS = $(TESTS)
61 endif
63 CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)