int main(int argc, char **argv) { MooseInit init(argc, argv); registerApp(MissekatApp); CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); CppUnit::TextTestRunner runner; runner.addTest(suite); std::ofstream out; // If you run with --xml, output will be sent to an xml file instead of the screen if (argc == 2 && std::string(argv[1]) == std::string("--xml")) { runner.setOutputter ( new CppUnit::XmlOutputter( &runner.result(), out ) ); out.open("test_results.xml"); } else { // Note: upon calling setOutputter, any previous outputter is // destroyed. The TextTestRunner assumes ownership of the outputter, so you // don't have to worry about deleting it. runner.setOutputter ( new CppUnit::CompilerOutputter( &runner.result(), std::cerr ) ); } bool wasSucessful = runner.run(/*testPath=*/"", /*doWait=*/false, /*doPrintResult=*/true, /*doPrintProgress=*/false); return wasSucessful ? 0 : 1; }
void MooseTestApp::registerApps() { #undef registerApp #define registerApp(name) AppFactory::instance().reg<name>(#name) registerApp(MooseTestApp); #undef registerApp #define registerApp(name) AppFactory::instance().regLegacy<name>(#name) }
void ChemicalReactionsApp::registerApps() { #undef registerApp #define registerApp(name) AppFactory::instance().reg<name>(#name) registerApp(ChemicalReactionsApp); #undef registerApp #define registerApp(name) AppFactory::instance().regLegacy<name>(#name) }
void RichardsApp::registerApps() { #undef registerApp #define registerApp(name) AppFactory::instance().reg<name>(#name) registerApp(RichardsApp); #undef registerApp #define registerApp(name) AppFactory::instance().regLegacy<name>(#name) }
void HeatConductionApp::registerApps() { #undef registerApp #define registerApp(name) AppFactory::instance().reg<name>(#name) registerApp(HeatConductionApp); #undef registerApp #define registerApp(name) AppFactory::instance().regLegacy<name>(#name) }
GTEST_API_ int main(int argc, char ** argv) { // gtest removes (only) its args from argc and argv - so this must be before moose init testing::InitGoogleTest(&argc, argv); MooseInit init(argc, argv); registerApp(devel_testrunApp); Moose::_throw_on_error = true; return RUN_ALL_TESTS(); }
void PhaseFieldApp::registerApps() { #undef registerApp #define registerApp(name) AppFactory::instance().reg<name>(#name) registerApp(PhaseFieldApp); #undef registerApp #define registerApp(name) AppFactory::instance().regLegacy<name>(#name) }
void StorkTestApp::registerApps() { registerApp(StorkApp); registerApp(StorkTestApp); }
void MiscApp::registerApps() { registerApp(MiscApp); }
void PigeonApp::registerApps() { registerApp(PigeonApp); }
void SolidMechanicsApp::registerApps() { registerApp(SolidMechanicsApp); }
void FluidPropertiesApp::registerApps() { registerApp(FluidPropertiesApp); }
void ExampleApp::registerApps() { registerApp(ExampleApp); }
void LinearElasticityApp::registerApps() { registerApp(LinearElasticityApp); }
void MooseTestApp::registerApps() { registerApp(MooseTestApp); }
void PhaseFieldApp::registerApps() { registerApp(PhaseFieldApp); }
void RdgTestApp::registerApps() { registerApp(RdgApp); registerApp(RdgTestApp); }
void BLEServer::createApp(uint16_t appId) { m_appId = appId; registerApp(); }
void XFEMApp::registerApps() { registerApp(XFEMApp); }
void TadpoleApp::registerApps() { registerApp(TadpoleApp); }
void ModulesApp::registerApps() { registerApp(ModulesApp); }
void init_snake(void) { registerApp(tick_snake, key_snake, 22); }
void DarcyThermoMechApp::registerApps() { registerApp(DarcyThermoMechApp); }
void LevelSetTestApp::registerApps() { registerApp(LevelSetApp); registerApp(LevelSetTestApp); }
void BovineApp::registerApps() { registerApp(BovineApp); }
void PorousFlowTestApp::registerApps() { registerApp(PorousFlowApp); registerApp(PorousFlowTestApp); }
void RichardsApp::registerApps() { registerApp(RichardsApp); }
void AhiApp::registerApps() { registerApp(AhiApp); }
void TensorMechanicsApp::registerApps() { registerApp(TensorMechanicsApp); }
void LionspeciesApp::registerApps() { registerApp(LionspeciesApp); }