From 618371db52361e636a36a00558c5412288d6861e Mon Sep 17 00:00:00 2001 From: jez <> Date: Wed, 11 Oct 2006 23:04:59 +0000 Subject: [PATCH] added first cut at test target --- Makefile.am | 4 ++-- tests/DOM/Makefile.am | 2 +- tests/SAX2DOM/Makefile.am | 2 +- tests/XPath/Makefile.am | 2 +- tests/XPath/main.cpp | 2 -- tests/XPath/main_silly.cpp | 2 -- 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index c2a34bd5..e2cbe31d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,6 @@ pkgconfigdir = src/pkgconfig pkgconfig_DATA = arabica.pc test: - cd tests && make test; - cd .. + @cd tests && make test; + @cd .. diff --git a/tests/DOM/Makefile.am b/tests/DOM/Makefile.am index cda31480..a367115c 100644 --- a/tests/DOM/Makefile.am +++ b/tests/DOM/Makefile.am @@ -52,7 +52,7 @@ dom_test_wide_LDADD = $(LIBARABICA) INCLUDES = -I$(top_srcdir)/include $(PARSER_HEADERS) $(BOOST_CPPFLAGS) -test: +test: $(bin_PROGRAMS) @for p in $(bin_PROGRAMS); do \ echo Running $$p; \ ./$$p -q; \ diff --git a/tests/SAX2DOM/Makefile.am b/tests/SAX2DOM/Makefile.am index 1298dcdb..ebc1867d 100755 --- a/tests/SAX2DOM/Makefile.am +++ b/tests/SAX2DOM/Makefile.am @@ -34,7 +34,7 @@ sax2dom_test_LDADD = $(LIBARABICA) INCLUDES = -I$(top_srcdir)/include $(PARSER_HEADERS) $(BOOST_CPPFLAGS) -test: +test: $(bin_PROGRAMS) @for p in $(bin_PROGRAMS); do \ echo Running $$p; \ ./$$p -q; \ diff --git a/tests/XPath/Makefile.am b/tests/XPath/Makefile.am index c91f978b..27fa1dcf 100755 --- a/tests/XPath/Makefile.am +++ b/tests/XPath/Makefile.am @@ -54,7 +54,7 @@ xpath_test_wide_LDADD = $(LIBARABICA) INCLUDES = -I$(top_srcdir)/include $(PARSER_HEADERS) $(BOOST_CPPFLAGS) -test: +test: $(bin_PROGRAMS) @for p in $(bin_PROGRAMS); do \ echo Running $$p; \ ./$$p -q; \ diff --git a/tests/XPath/main.cpp b/tests/XPath/main.cpp index d63cb286..7fb335fa 100644 --- a/tests/XPath/main.cpp +++ b/tests/XPath/main.cpp @@ -9,8 +9,6 @@ ///////////////////////////////////////// int main(int argc, const char** argv) { - std::cout << "Hello" << std::endl; - XPath_test_suite >(argc, argv); } // main diff --git a/tests/XPath/main_silly.cpp b/tests/XPath/main_silly.cpp index 30016545..f7c81137 100755 --- a/tests/XPath/main_silly.cpp +++ b/tests/XPath/main_silly.cpp @@ -18,8 +18,6 @@ template<> class default_string_adaptor : public silly_string_adap ///////////////////////////////////////// int main(int argc, const char** argv) { - std::cout << "Hello" << std::endl; - XPath_test_suite >(argc, argv); } // main