Remove some tracing, fix string compares.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4 bin_PROGRAMS = xmltoolingtest
5 xmltoolingtest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
6 else
7 bin_PROGRAMS = 
8 endif
9
10 if BUILD_XMLSEC
11 xmlsec_sources = \
12     EncryptionTest.h \
13     FilesystemCredentialResolverTest.h \
14     SignatureTest.h
15 else
16 xmlsec_sources =
17 endif
18
19 xmltoolingtest_h = \
20     ComplexXMLObjectTest.h \
21     ExceptionTest.h \
22     KeyInfoTest.h \
23     MarshallingTest.h \
24     UnmarshallingTest.h \
25     xmltoolingtest.h \
26     ${xmlsec_sources}
27
28 noinst_HEADERS = \
29     XMLObjectBaseTestCase.h
30
31 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
32
33 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
34
35 do-cxxtestgen:
36         if test $(HFILE) = "xmltoolingtest.h"; then \
37                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
38         else \
39                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
40         fi;
41
42 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
43         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
44
45 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
46
47 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data