2007-07-19 18:57:04 +02:00
|
|
|
#ifndef ARABICA_UTIL_TEST_SUITE_HPP
|
|
|
|
#define ARABICA_UTIL_TEST_SUITE_HPP
|
|
|
|
|
|
|
|
#include "../CppUnit/TestRunner.hpp"
|
|
|
|
#include "../CppUnit/framework/Test.h"
|
|
|
|
#include "../CppUnit/framework/TestSuite.h"
|
|
|
|
|
|
|
|
#include "test_normalize_whitespace.hpp"
|
|
|
|
#include "test_base64.hpp"
|
|
|
|
#include "test_uri.hpp"
|
2007-12-22 23:21:26 +01:00
|
|
|
#include "test_xml_strings.hpp"
|
2009-02-18 23:48:35 +01:00
|
|
|
#include "test_qname.hpp"
|
2007-07-19 18:57:04 +02:00
|
|
|
|
|
|
|
template<class string_type, class string_adaptor>
|
2007-12-08 21:47:53 +01:00
|
|
|
bool Util_test_suite(int argc, const char** argv)
|
2007-07-19 18:57:04 +02:00
|
|
|
{
|
|
|
|
TestRunner runner;
|
|
|
|
|
|
|
|
runner.addTest("NormalizeWhitespaceTest", NormalizeWhitespaceTest_suite<string_type, string_adaptor >());
|
2009-02-18 23:48:35 +01:00
|
|
|
runner.addTest("Base64Test", Base64Test_suite());
|
2007-07-19 18:57:04 +02:00
|
|
|
runner.addTest("URITest", URITest_suite());
|
2009-02-23 20:23:12 +01:00
|
|
|
runner.addTest("XMLString", XMLStringTest_suite<string_type, string_adaptor>());
|
2009-02-23 09:38:50 +01:00
|
|
|
runner.addTest("QualifiedName", QualifiedNameTest_suite<string_type, string_adaptor>());
|
2007-07-19 18:57:04 +02:00
|
|
|
|
2007-12-08 21:47:53 +01:00
|
|
|
return runner.run(argc, argv);
|
2007-07-19 18:57:04 +02:00
|
|
|
} // main
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|