From 33e257ab43ebf35e838b80c416762e9b743e9385 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 22 Mar 2011 11:53:00 +1000 Subject: [PATCH] test: when unit tests are enabled, build them during "make" Catch compiler errors that were otherwise only spotted on make check. Signed-off-by: Peter Hutterer Reviewed-by: Dan Nicholson --- test/Makefile.am | 4 ++-- test/xi2/Makefile.am | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 34f21d7ed..f3265b788 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,10 +2,10 @@ if ENABLE_UNIT_TESTS if HAVE_GLIB if HAVE_LD_WRAP SUBDIRS= . xi2 -check_PROGRAMS = xkb input xtest list +noinst_PROGRAMS = xkb input xtest list check_LTLIBRARIES = libxservertest.la -TESTS=$(check_PROGRAMS) +TESTS=$(noinst_PROGRAMS) AM_CFLAGS = $(DIX_CFLAGS) $(GLIB_CFLAGS) @XORG_CFLAGS@ INCLUDES = @XORG_INCS@ diff --git a/test/xi2/Makefile.am b/test/xi2/Makefile.am index e19786973..1b9bfe08e 100644 --- a/test/xi2/Makefile.am +++ b/test/xi2/Makefile.am @@ -1,7 +1,7 @@ if ENABLE_UNIT_TESTS if HAVE_GLIB if HAVE_LD_WRAP -check_PROGRAMS = \ +noinst_PROGRAMS = \ protocol-xiqueryversion \ protocol-xiquerydevice \ protocol-xiselectevents \ @@ -12,7 +12,7 @@ check_PROGRAMS = \ protocol-xiwarppointer \ protocol-eventconvert -TESTS=$(check_PROGRAMS) +TESTS=$(noinst_PROGRAMS) AM_CFLAGS = $(DIX_CFLAGS) $(GLIB_CFLAGS) @XORG_CFLAGS@ INCLUDES = @XORG_INCS@