arabica/tests/SAX/Makefile.am
jez bc9bc15b6a Add configure option to disable running tests. make check will still build
tests, but will not run them.
--with-tests=no to manually disable.  Tests are automatically disabled if
cross-compiling.
2008-08-07 18:56:02 +01:00

32 lines
977 B
Makefile
Executable file

check_PROGRAMS = filter_test filter_test_silly
if HAS_STD_WSTRING
check_PROGRAMS += filter_test_wide
endif
if WANT_TESTS
TESTS = $(check_PROGRAMS)
endif
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include @PARSER_HEADERS@ $(BOOST_CPPFLAGS)
LIBARABICA = $(top_builddir)/src/libarabica.la
LIBSILLY = ../CppUnit/libsillystring.la
TESTLIBS = $(LIBARABICA) ../CppUnit/libcppunit.la
test_sources = test_WhitespaceStripper.hpp
filter_test_SOURCES = filter_test.cpp \
$(test_sources)
filter_test_LDADD = $(TESTLIBS)
filter_test_DEPENDENCIES = $(TESTLIBS)
filter_test_silly_SOURCES = filter_test_silly.cpp \
$(test_sources)
filter_test_silly_LDADD = $(TESTLIBS) $(LIBSILLY)
filter_test_silly_DEPENDENCIES = $(TESTLIBS) $(LIBSILLY)
filter_test_wide_SOURCES = filter_test_wide.cpp \
$(test_sources)
filter_test_wide_LDADD = $(TESTLIBS)
filter_test_wide_DEPENDENCIES = $(TESTLIBS)