diff options
Diffstat (limited to 'test/Makefile.am')
-rw-r--r-- | test/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/Makefile.am b/test/Makefile.am new file mode 100644 index 000000000..bf74eaa47 --- /dev/null +++ b/test/Makefile.am @@ -0,0 +1,23 @@ +if HAVE_CXXTESTGEN + +AM_CPPFLAGS = -I. "-I$(CXXTEST)" "-I@top_srcdir@/src/include" "-I@top_srcdir@/src" +AM_CXXFLAGS = -fno-access-control +AM_LDFLAGS = -L@top_builddir@/src/libcvc4.a +TESTS = \ + expr/expr_black \ + expr/expr_white + +%.cpp: %.h + $(CXXTESTGEN) --have-eh --have-std --error-printer -o $@ $< +%: %.cpp + $(CXX) $(TEST_CPPFLAGS) $(AM_CPPFLAGS) $(TEST_CXXFLAGS) $(AM_CXXFLAGS) -o $@ $(TEST_LDFLAGS) $(AM_LDFLAGS) $< @top_builddir@/src/libcvc4.a + +MOSTLYCLEANFILES = $(TESTS) $(TESTS:%=%.cpp) + +else + +# force a user-visible failure for "make check" +TESTS = no_cxxtest + +endif + |