TEST_CASE("kernel::resource::NetworkModelIntf: Factors invalid callbacks: exception", "")
{
- for (const auto& model : std::vector<std::string>{"LV08", "SMPI", "IB", "CM02"}) {
+ std::vector<std::string> models{"LV08", "CM02"};
+#if HAVE_SMPI
+ models.push_back("SMPI");
+ models.push_back("IB");
+#endif
+
+ for (const auto& model : models) {
_sg_cfg_init_status = 0; /* HACK: clear config global to be able to do set_config in UTs */
simgrid::s4u::Engine e("test");
simgrid::s4u::Engine::set_config("network/model:" + model);
}
}
+#if HAVE_SMPI
TEST_CASE("kernel::resource::NetworkModelIntf: Invalid smpi/lat-factor and smpi/bw-factor", "")
{
for (const auto& model : std::vector<std::string>{"SMPI", "IB"}) {
}
}
}
+#endif
\ No newline at end of file
new simgrid::kernel::routing::NetPoint("netpoint1", simgrid::kernel::routing::NetPoint::Type::NetZone);
auto* netpoint2 =
new simgrid::kernel::routing::NetPoint("netpoint2", simgrid::kernel::routing::NetPoint::Type::NetZone);
- auto* zone3 = new simgrid::kernel::routing::StarZone("test3");
+ auto zone3 = std::make_unique<simgrid::kernel::routing::StarZone>("test3");
auto* netpoint3 = zone3->create_router("netpoint3");
SECTION("src: is a netzone and gw_src: nullptr")