2005-10-18 13:39:56 +02:00
|
|
|
#ifndef XPATHIC_XPATH_TEST_SUITE_HPP
|
|
|
|
#define XPATHIC_XPATH_TEST_SUITE_HPP
|
|
|
|
|
|
|
|
#include "../CppUnit/TestRunner.hpp"
|
|
|
|
#include "../CppUnit/framework/Test.h"
|
|
|
|
#include "../CppUnit/framework/TestSuite.h"
|
|
|
|
|
|
|
|
#include "parse_test.hpp"
|
|
|
|
#include "value_test.hpp"
|
|
|
|
#include "arithmetic_test.hpp"
|
|
|
|
#include "relational_test.hpp"
|
|
|
|
#include "logical_test.hpp"
|
|
|
|
#include "axis_enumerator_test.hpp"
|
|
|
|
#include "node_test_test.hpp"
|
|
|
|
#include "step_test.hpp"
|
|
|
|
#include "execute_test.hpp"
|
2005-12-15 13:27:48 +01:00
|
|
|
#include "expression_test.hpp"
|
2005-12-16 20:09:57 +01:00
|
|
|
#include "match_test.hpp"
|
2006-01-12 15:35:59 +01:00
|
|
|
#include "attr_value_test.hpp"
|
2005-10-18 13:39:56 +02:00
|
|
|
|
|
|
|
template<class string_type, class string_adaptor>
|
2005-10-31 13:07:30 +01:00
|
|
|
void XPath_test_suite(int argc, const char** argv)
|
2005-10-18 13:39:56 +02:00
|
|
|
{
|
|
|
|
TestRunner runner;
|
|
|
|
|
|
|
|
runner.addTest("ValueTest", ValueTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("ArithmeticTest", ArithmeticTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("RelationalTest", RelationalTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("LogicalTest", LogicalTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("AxisEnumeratorTest", AxisEnumeratorTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("NodeTestTest", NodeTestTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("StepTest", StepTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("ParseTest", ParseTest_suite<string_type, string_adaptor>());
|
|
|
|
runner.addTest("ExecuteTest", ExecuteTest_suite<string_type, string_adaptor>());
|
2005-12-15 13:27:48 +01:00
|
|
|
runner.addTest("ExpressionTest", ExpressionTest_suite<string_type, string_adaptor>());
|
2005-12-16 20:09:57 +01:00
|
|
|
runner.addTest("MatchTest", MatchTest_suite<string_type, string_adaptor>());
|
2006-01-12 15:35:59 +01:00
|
|
|
runner.addTest("AttributeValueTest", AttributeValueTest_suite<string_type, string_adaptor>());
|
2005-10-18 13:39:56 +02:00
|
|
|
|
|
|
|
runner.run(argc, argv);
|
|
|
|
} // XPath_test_suite
|
|
|
|
|
|
|
|
#endif
|