Extend KeyResolver to include certificate resolution, add inline resolver.
[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     InlineKeyResolverTest.h \
15     SignatureTest.h
16 else
17 xmlsec_sources =
18 endif
19
20 xmltoolingtest_h = \
21     ComplexXMLObjectTest.h \
22     ExceptionTest.h \
23     KeyInfoTest.h \
24     MarshallingTest.h \
25     UnmarshallingTest.h \
26     xmltoolingtest.h \
27     ${xmlsec_sources}
28
29 noinst_HEADERS = \
30     XMLObjectBaseTestCase.h
31
32 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
33
34 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
35
36 do-cxxtestgen:
37         if test $(HFILE) = "xmltoolingtest.h"; then \
38                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
39         else \
40                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
41         fi;
42
43 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
44         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
45
46 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
47
48 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data