Add SAML 2 signed assertion test.
[shibboleth/cpp-opensaml.git] / samltest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4 bin_PROGRAMS = samltest
5 samltest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
6 else
7 bin_PROGRAMS = 
8 endif
9
10 samltest_h = \
11     samltest.h \
12     signature/SAML1AssertionTest.h \
13     signature/SAML1RequestTest.h \
14     signature/SAML1ResponseTest.h \
15     signature/SAML2AssertionTest.h \
16     saml1/core/impl/ActionTest.h \
17     saml1/core/impl/AdviceTest.h \
18     saml1/core/impl/AssertionIDReferenceTest.h \
19     saml1/core/impl/AssertionTest.h \
20     saml1/core/impl/AttributeDesignatorTest.h \
21     saml1/core/impl/AttributeStatementTest.h \
22     saml1/core/impl/AttributeTest.h \
23     saml1/core/impl/AudienceRestrictionConditionTest.h \
24     saml1/core/impl/AudienceTest.h \
25     saml1/core/impl/AuthenticationStatementTest.h
26
27 noinst_HEADERS = \
28     internal.h \
29     signature/SAMLSignatureTestBase.h
30
31 nodist_samltest_SOURCES = $(samltest_h:.h=.cpp)
32
33 CLEANFILES = $(nodist_samltest_SOURCES)
34
35 do-cxxtestgen:
36         if test $(HFILE) = "samltest.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_samltest_SOURCES): %.cpp: %.h
43         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
44
45 samltest_LDADD = $(top_builddir)/saml/libsaml.la
46
47 EXTRA_DIST = samltest.vcproj $(samltest_h) data