don't try to build modetest without libkms
[platform/upstream/libdrm.git] / tests / Makefile.am
1 NULL:=#
2
3 AM_CPPFLAGS = \
4         -I $(top_srcdir)/include/drm \
5         -I $(top_srcdir)
6
7 LDADD = $(top_builddir)/libdrm.la
8
9 check_PROGRAMS = \
10         dristat \
11         drmstat
12
13 SUBDIRS =
14
15 if HAVE_LIBKMS
16 SUBDIRS += kmstest
17 endif
18
19 if HAVE_LIBUDEV
20
21 check_LTLIBRARIES = libdrmtest.la
22
23 libdrmtest_la_SOURCES = \
24         drmtest.c \
25         drmtest.h
26
27 libdrmtest_la_LIBADD = \
28         $(top_builddir)/libdrm.la \
29         $(LIBUDEV_LIBS)
30
31 LDADD += libdrmtest.la
32
33 XFAIL_TESTS =                                   \
34         auth                                    \
35         lock
36
37 TESTS =                                         \
38         openclose                               \
39         getversion                              \
40         getclient                               \
41         getstats                                \
42         setversion                              \
43         updatedraw                              \
44         name_from_fd                            \
45         $(NULL)
46
47 SUBDIRS += vbltest $(NULL)
48
49 if HAVE_INTEL
50 if HAVE_LIBKMS
51 SUBDIRS += \
52         modetest
53 endif
54
55 SUBDIRS += \
56         modeprint                               \
57         $(NULL)
58
59 TESTS +=                                        \
60         gem_basic                               \
61         gem_flink                               \
62         gem_readwrite                           \
63         gem_mmap                                \
64         $(NULL)
65 endif
66
67 check_PROGRAMS += $(TESTS)
68
69 endif