4e4882ab7d2144104769677dcd252db1f7f72d53
[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         name_from_fd                            \
44         $(NULL)
46 if HAVE_INTEL
47 SUBDIRS += \
48         modeprint                               \
49         modetest                                \
50         $(NULL)
52 TESTS +=                                        \
53         gem_basic                               \
54         gem_flink                               \
55         gem_readwrite                           \
56         gem_mmap                                \
57         $(NULL)
58 endif
60 EXTRA_PROGRAMS = $(TESTS)
62 endif
64 CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)