[PATCH] build: Use check_PROGRAMS for test programs

Daiki Ueno ueno at gnu.org
Sun Nov 1 03:35:41 CET 2015


* agent/Makefile.am (check_PROGRAMS): Add test programs here, instead to
noinst_PROGRAMS.
* common/Makefile.am (check_PROGRAMS): Likewise.
dirmngr/Makefile.am (check_PROGRAMS): Likewise.
g10/Makefile.am (check_PROGRAMS): Likewise.

--
To reduce build time, defer compilation of test programs to the "make
check" phase.

Signed-off-by: Daiki Ueno <ueno at gnu.org>
---
 agent/Makefile.am   | 2 +-
 common/Makefile.am  | 2 +-
 dirmngr/Makefile.am | 2 +-
 g10/Makefile.am     | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/agent/Makefile.am b/agent/Makefile.am
index b33593d..3a3ec18 100644
--- a/agent/Makefile.am
+++ b/agent/Makefile.am
@@ -23,7 +23,7 @@ if !HAVE_W32CE_SYSTEM
 # fixme: Do no use simple-pwquery for preset-passphrase.
 libexec_PROGRAMS += gpg-preset-passphrase
 endif
-noinst_PROGRAMS = $(TESTS)
+check_PROGRAMS = $(TESTS)
 
 EXTRA_DIST = ChangeLog-2011 gpg-agent-w32info.rc
 
diff --git a/common/Makefile.am b/common/Makefile.am
index f84cea1..f296a8d 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -26,7 +26,7 @@ noinst_LIBRARIES = libcommon.a libcommonpth.a libgpgrl.a
 if !HAVE_W32CE_SYSTEM
 noinst_LIBRARIES += libsimple-pwquery.a
 endif
-noinst_PROGRAMS = $(module_tests) $(module_maint_tests)
+check_PROGRAMS = $(module_tests) $(module_maint_tests)
 TESTS = $(module_tests)
 
 BUILT_SOURCES = audit-events.h status-codes.h
diff --git a/dirmngr/Makefile.am b/dirmngr/Makefile.am
index 9ed5878..0d220a4 100644
--- a/dirmngr/Makefile.am
+++ b/dirmngr/Makefile.am
@@ -27,7 +27,7 @@ if USE_LDAPWRAPPER
 libexec_PROGRAMS = dirmngr_ldap
 endif
 
-noinst_PROGRAMS = $(module_tests) $(module_maint_tests)
+check_PROGRAMS = $(module_tests) $(module_maint_tests)
 TESTS = $(module_tests)
 
 AM_CPPFLAGS = -I$(top_srcdir)/common
diff --git a/g10/Makefile.am b/g10/Makefile.am
index 2fe5c9a..af8b8d8 100644
--- a/g10/Makefile.am
+++ b/g10/Makefile.am
@@ -35,7 +35,7 @@ bin_PROGRAMS = gpg2
 if !HAVE_W32CE_SYSTEM
 bin_PROGRAMS += gpgv2
 endif
-noinst_PROGRAMS = $(module_tests)
+check_PROGRAMS = $(module_tests)
 TESTS = $(module_tests)
 
 if ENABLE_BZIP2_SUPPORT
-- 
2.4.3




More information about the Gnupg-devel mailing list