mesa-drm/tests/Makefile.am
Jonathan Callen 52a3e9df62 Only build tests in make check
Currently, all the tests for libdrm are built during 'make all', even
if you do not wish to run tests.  Attached is a patch, based on
version 2.4.15, to make the tests build in 'make check'.
2010-05-12 13:55:54 -04:00

68 lines
832 B
Makefile

NULL:=#
AM_CPPFLAGS = \
-I $(top_srcdir)/include/drm \
-I $(top_srcdir)
LDADD = $(top_builddir)/libdrm.la
check_PROGRAMS = \
dristat \
drmstat
SUBDIRS =
if HAVE_LIBKMS
SUBDIRS += kmstest
endif
if HAVE_INTEL
endif
if HAVE_LIBUDEV
check_LTLIBRARIES = libdrmtest.la
libdrmtest_la_SOURCES = \
drmtest.c \
drmtest.h
libdrmtest_la_LIBADD = \
$(top_builddir)/libdrm.la \
$(LIBUDEV_LIBS)
LDADD += libdrmtest.la
XFAIL_TESTS = \
auth \
lock
TESTS = \
openclose \
getversion \
getclient \
getstats \
setversion \
updatedraw \
name_from_fd \
$(NULL)
SUBDIRS += vbltest $(NULL)
if HAVE_INTEL
SUBDIRS += \
modeprint \
modetest \
$(NULL)
TESTS += \
gem_basic \
gem_flink \
gem_readwrite \
gem_mmap \
$(NULL)
endif
check_PROGRAMS += $(TESTS)
endif