middle of porting; unstable, don't checkout, added xml check output; refs #1

This commit is contained in:
Marc Wäckerlin
2011-12-11 13:47:45 +00:00
parent 2624b602af
commit 569e566b5e
15 changed files with 126 additions and 54 deletions

View File

@@ -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;
}