Refactor some tests.
[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     saml1/core/impl/ActionTest.h \
16     saml1/core/impl/AdviceTest.h \
17     saml1/core/impl/AssertionIDReferenceTest.h \
18     saml1/core/impl/AssertionTest.h \
19     saml1/core/impl/AttributeDesignatorTest.h \
20     saml1/core/impl/AttributeStatementTest.h \
21     saml1/core/impl/AttributeTest.h \
22     saml1/core/impl/AudienceRestrictionConditionTest.h \
23     saml1/core/impl/AudienceTest.h \
24     saml1/core/impl/AuthenticationStatementTest.h
25
26 noinst_HEADERS = \
27     internal.h \
28     signature/SAMLSignatureTestBase.h
29
30 nodist_samltest_SOURCES = $(samltest_h:.h=.cpp)
31
32 CLEANFILES = $(nodist_samltest_SOURCES)
33
34 do-cxxtestgen:
35         if test $(HFILE) = "samltest.h"; then \
36                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
37         else \
38                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
39         fi;
40
41 $(nodist_samltest_SOURCES): %.cpp: %.h
42         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
43
44 samltest_LDADD = $(top_builddir)/saml/libsaml.la
45
46 EXTRA_DIST = samltest.vcproj $(samltest_h) data