Skip to content

Commit

Permalink
Merge pull request #120 from jnbrunet/fix_ci
Browse files Browse the repository at this point in the history
Fix issues with Linux CI on SOFA master
  • Loading branch information
jnbrunet authored Mar 26, 2022
2 parents c871fe0 + 78d3a72 commit 36756f7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
modules: 'qtcharts qtwebengine'
aqtversion: '==2.0.5'
# setup-python: true
setup-python: false


# SOFA
Expand Down
8 changes: 8 additions & 0 deletions unittest/SofaCaribou/Mass/test_cariboumass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ TEST(CaribouMass, LinearTetrahedron) {
createObject(root, "RequiredPlugin", {{"pluginName", "SofaComponentAll"}});
#endif

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");

createObject(root, "RegularGridTopology", {{"name", "grid"}, {"min", "-7.5 -7.5 0"}, {"max", "7.5 7.5 80"}, {"n", "3 3 9"}});

auto mo = dynamic_cast<sofa::component::container::MechanicalObject<sofa::defaulttype::Vec3Types> *>(
Expand Down Expand Up @@ -171,6 +175,10 @@ TEST(CaribouMass, LinearHexahedron) {
createObject(root, "RequiredPlugin", {{"pluginName", "SofaComponentAll"}});
#endif

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");

createObject(root, "RegularGridTopology", {{"name", "grid"}, {"min", "-7.5 -7.5 0"}, {"max", "7.5 7.5 80"}, {"n", "3 3 9"}});

auto mo = dynamic_cast<sofa::component::container::MechanicalObject<sofa::defaulttype::Vec3Types> *>(
Expand Down
5 changes: 5 additions & 0 deletions unittest/SofaCaribou/ODE/test_backward_euler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ TEST(BackwardEulerODESolver, Beam) {
#if (defined(SOFA_VERSION) && SOFA_VERSION > 201299)
createObject(root, "RequiredPlugin", {{"pluginName", "SofaTopologyMapping"}});
#endif

// Some component to avoid warnings
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");

createObject(root, "RegularGridTopology", {{"name", "grid"}, {"min", "-7.5 -7.5 0"}, {"max", "7.5 7.5 80"}, {"n", "3 3 9"}});

auto meca = createChild(root, "meca");
Expand Down
6 changes: 6 additions & 0 deletions unittest/SofaCaribou/ODE/test_static.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ TEST(StaticODESolver, InitSofaSolver) {

setSimulation(new sofa::simulation::graph::DAGSimulation());
auto root = getSimulation()->createNewNode("root");
#if (defined(SOFA_VERSION) && SOFA_VERSION >= 201200)
createObject(root, "RequiredPlugin", {{"pluginName", "SofaBaseLinearSolver"}});
#endif
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");
createObject(root, "StaticODESolver", {{"printLog", "true"}});
Expand All @@ -64,6 +67,9 @@ TEST(StaticODESolver, InitCaribouSolver) {

setSimulation(new sofa::simulation::graph::DAGSimulation());
auto root = getSimulation()->createNewNode("root");
#if (defined(SOFA_VERSION) && SOFA_VERSION >= 201200)
createObject(root, "RequiredPlugin", {{"pluginName", "SofaBaseLinearSolver"}});
#endif
createObject(root, "DefaultAnimationLoop");
createObject(root, "DefaultVisualManagerLoop");
createObject(root, "StaticODESolver", {{"printLog", "true"}});
Expand Down

0 comments on commit 36756f7

Please sign in to comment.