summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: 069285f57b5c42af9166bc8c3fb816c2264d7bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
SUBDIRS = modeprint proptest modetest

if HAVE_LIBKMS
SUBDIRS += kmstest
endif

if HAVE_RADEON
SUBDIRS += radeon
endif

if HAVE_EXYNOS
SUBDIRS += exynos
endif

if HAVE_TEGRA
SUBDIRS += tegra
endif

if HAVE_LIBUDEV
SUBDIRS += vbltest
endif

AM_CFLAGS = \
	$(WARN_CFLAGS)\
	-I $(top_srcdir)/include/drm \
	-I $(top_srcdir)

LDADD = $(top_builddir)/libdrm.la

check_PROGRAMS = \
	dristat \
	drmstat

if HAVE_NOUVEAU
SUBDIRS += nouveau
endif

TESTS = \
	drmsl \
	hash \
	random

if HAVE_LIBUDEV

check_LTLIBRARIES = libdrmtest.la

libdrmtest_la_SOURCES = \
	drmtest.c \
	drmtest.h

LDADD += \
	libdrmtest.la \
	$(LIBUDEV_LIBS)


XFAIL_TESTS =					\
	auth					\
	lock

TESTS +=					\
	openclose				\
	getversion				\
	getclient				\
	getstats				\
	setversion				\
	updatedraw				\
	name_from_fd
endif

check_PROGRAMS += $(TESTS)