OSDN Git Service

cd114913021475ea9288a7ac47da9b539d8dfba2
[android-x86/external-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 = modeprint
14
15 if HAVE_LIBKMS
16 SUBDIRS += kmstest modetest
17 endif
18
19 if HAVE_RADEON
20 SUBDIRS += radeon
21 endif
22
23 if HAVE_EXYNOS
24 SUBDIRS += exynos
25 endif
26
27 if HAVE_LIBUDEV
28
29 check_LTLIBRARIES = libdrmtest.la
30
31 libdrmtest_la_SOURCES = \
32         drmtest.c \
33         drmtest.h
34
35 libdrmtest_la_LIBADD = \
36         $(top_builddir)/libdrm.la \
37         $(LIBUDEV_LIBS)
38
39 LDADD += libdrmtest.la
40
41 XFAIL_TESTS =                                   \
42         auth                                    \
43         lock
44
45 TESTS =                                         \
46         openclose                               \
47         getversion                              \
48         getclient                               \
49         getstats                                \
50         setversion                              \
51         updatedraw                              \
52         name_from_fd                            \
53         $(NULL)
54
55 SUBDIRS += vbltest $(NULL)
56
57 if HAVE_INTEL
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