Package: xmltooling / 1.6.0-4+deb9u2

Test-BUILD_UNITTEST-in-the-main-Makefile-only.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Wed, 6 Jul 2016 17:26:12 +0200
Subject: Test BUILD_UNITTEST in the main Makefile only

---
 Makefile.am                | 6 +++++-
 xmltoolingtest/Makefile.am | 6 ------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 6bcdb1b..be2f2bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,11 @@ include doxygen.am
 
 MOSTLYCLEANFILES = $(DX_CLEANFILES)
 
-SUBDIRS = doc schemas @PACKAGE_NAME@ xmltoolingtest
+SUBDIRS = doc schemas @PACKAGE_NAME@
+
+if BUILD_UNITTEST
+SUBDIRS += xmltoolingtest
+endif
 
 if DX_COND_doc
 all-local: doxygen-doc
diff --git a/xmltoolingtest/Makefile.am b/xmltoolingtest/Makefile.am
index 7b58b5a..2927af1 100644
--- a/xmltoolingtest/Makefile.am
+++ b/xmltoolingtest/Makefile.am
@@ -1,7 +1,5 @@
 AUTOMAKE_OPTIONS = foreign
 
-if BUILD_UNITTEST
-
 TESTS = xmltoolingtest
 
 check_PROGRAMS = xmltoolingtest
@@ -15,8 +13,6 @@ else
 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling-lite.la $(xerces_LIBS)
 endif
 
-endif
-
 if BUILD_XMLSEC
 xmlsec_sources = \
     EncryptionTest.h \
@@ -49,10 +45,8 @@ noinst_HEADERS = \
 
 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
 
-if BUILD_UNITTEST
 BUILT_SOURCES = $(nodist_xmltoolingtest_SOURCES)
 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
-endif
 
 do-cxxtestgen:
 	if test "$(CPPFILE)" = "xmltoolingtest.cpp"; then \