2006-09-12 23:21:48 +02:00
|
|
|
|
2007-08-08 11:09:28 +02:00
|
|
|
noinst_PROGRAMS = filter_test filter_test_silly
|
|
|
|
TESTS = filter_test filter_test_silly
|
|
|
|
if HAS_STD_WSTRING
|
|
|
|
noinst_PROGRAMS += filter_test_wide
|
|
|
|
TESTS +=filter_test_wide
|
|
|
|
endif
|
2007-07-19 18:57:04 +02:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include @PARSER_HEADERS@ $(BOOST_CPPFLAGS)
|
2006-09-12 23:21:48 +02:00
|
|
|
LIBARABICA = $(top_builddir)/src/libarabica.la
|
|
|
|
|
|
|
|
cppunit_sources = ../CppUnit/framework/CppUnitException.h \
|
2007-08-07 23:31:18 +02:00
|
|
|
../CppUnit/framework/estring.h \
|
|
|
|
../CppUnit/framework/Guards.h \
|
|
|
|
../CppUnit/framework/Test.h \
|
|
|
|
../CppUnit/framework/TestCaller.h \
|
|
|
|
../CppUnit/framework/TestCase.cpp \
|
|
|
|
../CppUnit/framework/TestCase.h \
|
|
|
|
../CppUnit/framework/TestFailure.cpp \
|
|
|
|
../CppUnit/framework/TestFailure.h \
|
|
|
|
../CppUnit/framework/TestResult.cpp \
|
|
|
|
../CppUnit/framework/TestResult.h \
|
|
|
|
../CppUnit/framework/TestSuite.cpp \
|
|
|
|
../CppUnit/framework/TestSuite.h \
|
|
|
|
../CppUnit/TestRunner.cpp \
|
|
|
|
../CppUnit/TestRunner.hpp \
|
|
|
|
../CppUnit/textui/TextTestResult.cpp \
|
|
|
|
../CppUnit/textui/TextTestResult.h
|
2006-09-12 23:21:48 +02:00
|
|
|
|
2007-08-08 11:09:28 +02:00
|
|
|
silly_string_sources = ../silly_string/silly_string.cpp \
|
|
|
|
../silly_string/silly_string.hpp
|
|
|
|
|
|
|
|
test_sources = test_WhitespaceStripper.hpp
|
2006-09-12 23:21:48 +02:00
|
|
|
|
2007-07-19 18:57:04 +02:00
|
|
|
filter_test_SOURCES = filter_test.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources)
|
|
|
|
filter_test_LDADD = $(LIBARABICA)
|
|
|
|
filter_test_DEPENDENCIES = $(LIBARABICA)
|
2006-09-12 23:21:48 +02:00
|
|
|
|
2007-08-08 11:09:28 +02:00
|
|
|
filter_test_silly_SOURCES = filter_test_silly.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources) \
|
|
|
|
$(silly_string_sources)
|
|
|
|
filter_test_silly_LDADD = $(LIBARABICA)
|
|
|
|
filter_test_silly_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
|
|
|
|
filter_test_wide_SOURCES = filter_test_wide.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources)
|
|
|
|
filter_test_wide_LDADD = $(LIBARABICA)
|
|
|
|
filter_test_wide_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
|
2007-07-19 18:57:04 +02:00
|
|
|
test: $(noinst_PROGRAMS)
|
|
|
|
@for p in $(noinst_PROGRAMS); do \
|
|
|
|
echo Running $$p; \
|
|
|
|
./$$p -q; \
|
|
|
|
done
|
2006-09-12 23:21:48 +02:00
|
|
|
|