int main(int argc, char* argv[]) { boost::mpi::environment env(argc, argv); boost::mpi::communicator comm; slctTest(); slctTupleTest(); funcInvokeTest(); MapTest(argc, argv); //ReduceTest(argc, argv); ReduceAllTest(argc, argv); FilterTest(argc, argv); readFileTest(argc, argv); MPIBridgeTest(argc, argv); LoadTest(argc, argv); std::cout<<"All tests passed successfully"<<std::endl; return 0; }
/** LoadTest * * */ bool XmlTestParser::LoadTestSuite(lc3_test_suite& suite, const std::string filename) { wxXmlDocument doc; if (!doc.Load(filename.c_str())) return false; suite.passed = false; suite.points = 0; suite.max_points = 0; wxXmlNode* child = doc.GetRoot()->GetChildren(); while (child) { if (child->GetName() != "comment") { if (child->GetName() != "test-case") throw "Child elements must be named test-case"; if (!LoadTest(suite, child)) return false; } child = getNextNode(child); } return true; }