Only build tests in make check
[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_INTEL
20 endif
21
22 if HAVE_LIBUDEV
23
24 check_LTLIBRARIES = libdrmtest.la
25
26 libdrmtest_la_SOURCES = \
27         drmtest.c \
28         drmtest.h
29
30 libdrmtest_la_LIBADD = \
31         $(top_builddir)/libdrm.la \
32         $(LIBUDEV_LIBS)
33
34 LDADD += libdrmtest.la
35
36 XFAIL_TESTS =                                   \
37         auth                                    \
38         lock
39
40 TESTS =                                         \
41         openclose                               \
42         getversion                              \
43         getclient                               \
44         getstats                                \
45         setversion                              \
46         updatedraw                              \
47         name_from_fd                            \
48         $(NULL)
49
50 SUBDIRS += vbltest $(NULL)
51
52 if HAVE_INTEL
53 SUBDIRS += \
54         modeprint                               \
55         modetest                                \
56         $(NULL)
57
58 TESTS +=                                        \
59         gem_basic                               \
60         gem_flink                               \
61         gem_readwrite                           \
62         gem_mmap                                \
63         $(NULL)
64 endif
65
66 check_PROGRAMS += $(TESTS)
67
68 endif