2007-07-19 18:46:07 +02:00
|
|
|
|
|
|
|
#pragma warning(disable : 4250)
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////
|
|
|
|
#include "../CppUnit/TestRunner.hpp"
|
|
|
|
#include "../CppUnit/framework/Test.h"
|
|
|
|
#include "../CppUnit/framework/TestCase.h"
|
|
|
|
#include "../CppUnit/framework/TestSuite.h"
|
|
|
|
|
|
|
|
// #include "scope_test.hpp"
|
|
|
|
#include "xslt_test.hpp"
|
|
|
|
|
|
|
|
int main(int argc, const char* argv[])
|
|
|
|
{
|
|
|
|
TestRunner runner;
|
|
|
|
|
|
|
|
// runner.addTest("ScopeTest", ScopeTest_suite<string_type, string_adaptor>());
|
2007-11-19 23:11:05 +01:00
|
|
|
// Xalan supplied test cases
|
2007-12-21 18:03:09 +01:00
|
|
|
|
2007-12-22 23:21:26 +01:00
|
|
|
/*
|
2007-07-19 18:46:07 +02:00
|
|
|
//runner.addTest("attribset", XSLTTest_suite("attribset"));
|
|
|
|
runner.addTest("attribvaltemplate", XSLTTest_suite("attribvaltemplate"));
|
|
|
|
runner.addTest("axes", XSLTTest_suite("axes"));
|
|
|
|
runner.addTest("boolean", XSLTTest_suite("boolean"));
|
|
|
|
runner.addTest("conditional", XSLTTest_suite("conditional"));
|
|
|
|
runner.addTest("conflictres", XSLTTest_suite("conflictres"));
|
|
|
|
runner.addTest("copy", XSLTTest_suite("copy"));
|
|
|
|
runner.addTest("dflt", XSLTTest_suite("dflt"));
|
|
|
|
runner.addTest("expression", XSLTTest_suite("expression"));
|
|
|
|
runner.addTest("extend", XSLTTest_suite("extend"));
|
|
|
|
//runner.addTest("idkey", XSLTTest_suite("idkey"));
|
|
|
|
runner.addTest("impincl", XSLTTest_suite("impincl"));
|
|
|
|
runner.addTest("lre", XSLTTest_suite("lre"));
|
|
|
|
runner.addTest("match", XSLTTest_suite("match"));
|
|
|
|
runner.addTest("math", XSLTTest_suite("math"));
|
|
|
|
runner.addTest("mdocs", XSLTTest_suite("mdocs"));
|
|
|
|
runner.addTest("message", XSLTTest_suite("message"));
|
|
|
|
runner.addTest("modes", XSLTTest_suite("modes"));
|
|
|
|
runner.addTest("namedtemplate", XSLTTest_suite("namedtemplate"));
|
|
|
|
runner.addTest("namespace", XSLTTest_suite("namespace"));
|
|
|
|
runner.addTest("node", XSLTTest_suite("node"));
|
|
|
|
//runner.addTest("numberformat", XSLTTest_suite("numberformat"));
|
|
|
|
//runner.addTest("numbering", XSLTTest_suite("numbering"));
|
|
|
|
runner.addTest("output", XSLTTest_suite("output"));
|
|
|
|
runner.addTest("position", XSLTTest_suite("position"));
|
|
|
|
runner.addTest("predicate", XSLTTest_suite("predicate"));
|
|
|
|
runner.addTest("processorinfo", XSLTTest_suite("processorinfo"));
|
|
|
|
runner.addTest("reluri", XSLTTest_suite("reluri"));
|
|
|
|
runner.addTest("select", XSLTTest_suite("select"));
|
|
|
|
runner.addTest("sort", XSLTTest_suite("sort"));
|
|
|
|
runner.addTest("string", XSLTTest_suite("string"));
|
|
|
|
runner.addTest("variable", XSLTTest_suite("variable"));
|
|
|
|
runner.addTest("ver", XSLTTest_suite("ver"));
|
|
|
|
runner.addTest("whitespace", XSLTTest_suite("whitespace"));
|
2007-11-19 23:11:05 +01:00
|
|
|
|
|
|
|
// MSFT supplied test cases
|
|
|
|
runner.addTest("AVTs", XSLTTest_suite("AVTs"));
|
|
|
|
//runner.addTest("AttributeSets", XSLTTest_suite("AttributeSets"));
|
|
|
|
runner.addTest("Attributes", XSLTTest_suite("Attributes"));
|
|
|
|
runner.addTest("BVTs", XSLTTest_suite("BVTs"));
|
|
|
|
runner.addTest("Comment", XSLTTest_suite("Comment"));
|
|
|
|
runner.addTest("Completeness", XSLTTest_suite("Completeness"));
|
|
|
|
runner.addTest("ConflictResolution", XSLTTest_suite("ConflictResolution"));
|
|
|
|
runner.addTest("Copying", XSLTTest_suite("Copying"));
|
|
|
|
runner.addTest("Elements", XSLTTest_suite("Elements"));
|
|
|
|
runner.addTest("Errors", XSLTTest_suite("Errors"));
|
|
|
|
runner.addTest("Fallback", XSLTTest_suite("Fallback"));
|
|
|
|
runner.addTest("ForEach", XSLTTest_suite("ForEach"));
|
|
|
|
//runner.addTest("FormatNumber", XSLTTest_suite("FormatNumber"));
|
|
|
|
runner.addTest("ForwardComp", XSLTTest_suite("ForwardComp"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("Import", XSLTTest_suite("Import"));
|
2007-11-19 23:11:05 +01:00
|
|
|
//runner.addTest("Keys", XSLTTest_suite("Keys"));
|
|
|
|
runner.addTest("Messages", XSLTTest_suite("Messages"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("Miscellaneous", XSLTTest_suite("Miscellaneous"));
|
2007-11-19 23:11:05 +01:00
|
|
|
runner.addTest("Modes", XSLTTest_suite("Modes"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("NamedTemplates", XSLTTest_suite("NamedTemplates"));
|
|
|
|
//runner.addTest("Namespace", XSLTTest_suite("Namespace"));
|
|
|
|
//runner.addTest("Namespace-alias", XSLTTest_suite("Namespace-alias"));
|
|
|
|
//runner.addTest("Namespace_XPath", XSLTTest_suite("Namespace_XPath"));
|
2007-11-19 23:11:05 +01:00
|
|
|
//runner.addTest("Number", XSLTTest_suite("Number"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("Output", XSLTTest_suite("Output"));
|
2007-12-22 23:21:26 +01:00
|
|
|
*/
|
2007-11-19 23:11:05 +01:00
|
|
|
runner.addTest("ProcessingInstruction", XSLTTest_suite("ProcessingInstruction"));
|
2007-12-25 22:58:52 +01:00
|
|
|
|
2007-12-30 00:35:01 +01:00
|
|
|
runner.addTest("RTF", XSLTTest_suite("RTF"));
|
2007-11-19 23:11:05 +01:00
|
|
|
runner.addTest("Sorting", XSLTTest_suite("Sorting"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("Stylesheet", XSLTTest_suite("Stylesheet"));
|
|
|
|
//runner.addTest("Template", XSLTTest_suite("Template"));
|
2008-01-19 23:45:48 +01:00
|
|
|
//runner.addTest("Text", XSLTTest_suite("Text"));
|
|
|
|
//runner.addTest("Valueof", XSLTTest_suite("Valueof"));
|
2007-12-21 18:03:09 +01:00
|
|
|
//runner.addTest("Variables", XSLTTest_suite("Variables"));
|
|
|
|
//runner.addTest("Whitespaces", XSLTTest_suite("Whitespaces"));
|
2007-12-25 22:58:52 +01:00
|
|
|
runner.addTest("XSLTFunctions", XSLTTest_suite("XSLTFunctions"));
|
|
|
|
|
2007-11-21 00:08:49 +01:00
|
|
|
runner.addTest("ArabicaErrors", ArabicaTest_suite("errors"));
|
|
|
|
runner.addTest("ArabicaInclude", ArabicaTest_suite("include"));
|
2007-11-22 22:53:44 +01:00
|
|
|
runner.addTest("ArabicaProcessingInstruction", ArabicaTest_suite("processing-instruction"));
|
2007-11-23 01:07:08 +01:00
|
|
|
runner.addTest("ArabicaStylesheets", ArabicaTest_suite("stylesheet"));
|
2007-11-21 00:08:49 +01:00
|
|
|
|
2007-07-19 18:46:07 +02:00
|
|
|
runner.run(argc, argv);
|
|
|
|
|
2007-09-09 00:30:13 +02:00
|
|
|
return 77;
|
2007-12-01 22:52:15 +01:00
|
|
|
}
|