middle of porting; unstable, don't checkout, added xml check output; refs #1
This commit is contained in:
		@@ -85,8 +85,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(AutoTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -65,8 +65,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(ConfigFileTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -40,8 +40,13 @@ class DynamicLibraryTest: public CppUnit::TestFixture {
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(DynamicLibraryTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -127,8 +127,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(ExecTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -126,8 +126,13 @@ class FunctionTraceTest: public CppUnit::TestFixture {
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(FunctionTraceTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -237,8 +237,13 @@ namespace mrw {
 | 
			
		||||
  CPPUNIT_TEST_SUITE_REGISTRATION(AutoFunctionTraceLog4CxxTest);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -85,9 +85,13 @@ namespace mrw {
 | 
			
		||||
  CPPUNIT_TEST_SUITE_REGISTRATION(AutoExcLog4CxxTest);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
  log4cxx::BasicConfigurator::configure();
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -84,8 +84,13 @@ namespace mrw {
 | 
			
		||||
  CPPUNIT_TEST_SUITE_REGISTRATION(AutoExcStderrTest);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -56,8 +56,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(RegExpTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -155,8 +155,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(SmartPointerTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -76,8 +76,13 @@ namespace mrw {
 | 
			
		||||
  CPPUNIT_TEST_SUITE_REGISTRATION(StackTraceTest);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -259,8 +259,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(StdExtTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -42,8 +42,13 @@ class StringTest: public CppUnit::TestFixture {
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(StringTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
@@ -67,8 +67,13 @@ public:
 | 
			
		||||
};
 | 
			
		||||
CPPUNIT_TEST_SUITE_REGISTRATION(TokenizerTest);
 | 
			
		||||
 | 
			
		||||
int main() {
 | 
			
		||||
int main(int argc, char** argv) try {
 | 
			
		||||
  std::ofstream ofs((*argv+std::string(".xml")).c_str());
 | 
			
		||||
  CppUnit::TextUi::TestRunner runner;
 | 
			
		||||
  runner.setOutputter(new CppUnit::XmlOutputter(&runner.result(), ofs));
 | 
			
		||||
  runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
 | 
			
		||||
  return runner.run() ? 0 : 1;
 | 
			
		||||
}
 | 
			
		||||
 } catch (std::exception& e) {
 | 
			
		||||
  std::cerr<<"***Exception: "<<e.what()<<std::endl;
 | 
			
		||||
  return 1;
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user