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'.
LDADD = $(top_builddir)/libdrm.la
-noinst_PROGRAMS = \
+check_PROGRAMS = \
dristat \
drmstat
if HAVE_LIBUDEV
-EXTRA_LTLIBRARIES = libdrmtest.la
+check_LTLIBRARIES = libdrmtest.la
libdrmtest_la_SOURCES = \
drmtest.c \
$(NULL)
endif
-EXTRA_PROGRAMS = $(TESTS)
+check_PROGRAMS += $(TESTS)
endif
-
-CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES)