From d7b4c64223e84059622c1fb9d866f1c67d497342 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Thu, 7 Mar 2013 18:14:08 +0100
Subject: [PATCH v4 07/13] build: Move unit tests from noinst_PROGRAMS to
 check_PROGRAMS
Status: applied
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This means the unit tests will only be built when running «make check»,
only when they will be used.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 8e58ac1..e92d48e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -215,7 +215,7 @@ unit_test_snep_read_SOURCES = $(gdbus_sources) src/log.c src/dbus.c \
 					unit/test-utils.h
 unit_test_snep_read_LDADD = ${GLIB_LIBS} ${DBUS_LIBS}
 
-noinst_PROGRAMS += $(unit_tests)
+check_PROGRAMS = $(unit_tests)
 
 TESTS = $(unit_tests)
 
-- 
2.1.1

