2007-07-19 18:57:04 +02:00
|
|
|
|
|
|
|
noinst_PROGRAMS = utils_test utils_test_silly
|
|
|
|
TESTS = utils_test utils_test_silly
|
|
|
|
if HAS_STD_WSTRING
|
|
|
|
noinst_PROGRAMS += utils_test_wide
|
|
|
|
TESTS += utils_test_wide
|
|
|
|
endif
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include @PARSER_HEADERS@ $(BOOST_CPPFLAGS)
|
|
|
|
LIBARABICA = $(top_builddir)/src/libarabica.la
|
|
|
|
|
|
|
|
cppunit_sources = ../CppUnit/framework/CppUnitException.h \
|
|
|
|
../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
|
|
|
|
|
|
|
|
silly_string_sources = ../silly_string/silly_string.cpp \
|
|
|
|
../silly_string/silly_string.hpp
|
|
|
|
|
|
|
|
|
|
|
|
test_sources = util_test_suite.hpp \
|
2007-08-28 03:57:39 +02:00
|
|
|
test_normalize_whitespace.hpp \
|
2007-07-19 18:57:04 +02:00
|
|
|
test_base64.hpp \
|
|
|
|
test_uri.hpp
|
|
|
|
|
|
|
|
|
|
|
|
utils_test_SOURCES = utils_test.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources)
|
|
|
|
utils_test_LDADD = $(LIBARABICA)
|
|
|
|
utils_test_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
|
|
|
|
utils_test_silly_SOURCES = utils_test.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources) \
|
|
|
|
$(silly_string_sources)
|
|
|
|
utils_test_silly_LDADD = $(LIBARABICA)
|
|
|
|
utils_test_silly_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
|
|
|
|
utils_test_wide_SOURCES = utils_test.cpp \
|
|
|
|
$(cppunit_sources) \
|
|
|
|
$(test_sources)
|
|
|
|
utils_test_wide_LDADD = $(LIBARABICA)
|
|
|
|
utils_test_wide_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
|
|
|
|
test: $(noinst_PROGRAMS)
|
|
|
|
@for p in $(noinst_PROGRAMS); do \
|
|
|
|
echo Running $$p; \
|
|
|
|
./$$p -q; \
|
|
|
|
done
|
|
|
|
|