Open traversaro opened 1 month ago
I give a quick shot to fix this, but using the engine name in engine
/unregisterEngine
does not work, and I could not find any way to quickly associate the ogre2
string to the corresponding registered engine index.
Environment
Description
The UNIT_RenderingIface_TEST_ogre2_gl3plus fails if gz-rendering is compiled with ogre(1) support but no X server is available, as it actually tries to load ogre(1) plugin in https://github.com/gazebosim/gz-rendering/blob/a9af9847376267ed31592892121b03841a27a492/test/common_test/RenderingIface_TEST.cc#L126-L133 as it select the engine with index 0, that is ogre1.
Expected behavior:
I would expect that even if no X server is available (and so ogre plugin can't work),
DISPLAY= ctest -VV -E "_ogre_"
would be able to run.Actual behavior:
With
DISPLAY= ctest -VV -E "_ogre_"
all tests pass fine, except forUNIT_RenderingIface_TEST_ogre2_gl3plus
.Steps to reproduce
You can see that
UNIT_RenderingIface_TEST_ogre2_gl3plus
fails if there is no X server by running it by settingDISPLAY
to an empty variableOutput