Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Unit test that have segfaults on Mac (rendering3) #1023

Merged
merged 6 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ArrowVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class ArrowVisualTest : public testing::Test,
/////////////////////////////////////////////////
void ArrowVisualTest::ArrowVisual(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif

RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
4 changes: 4 additions & 0 deletions src/AxisVisual_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ class AxisVisualTest : public testing::Test,
/////////////////////////////////////////////////
void AxisVisualTest::AxisVisual(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
16 changes: 16 additions & 0 deletions src/Camera_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class CameraTest : public testing::Test,
/////////////////////////////////////////////////
void CameraTest::ViewProjectionMatrix(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down Expand Up @@ -110,6 +114,10 @@ void CameraTest::ViewProjectionMatrix(const std::string &_renderEngine)
/////////////////////////////////////////////////
void CameraTest::RenderTexture(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down Expand Up @@ -155,6 +163,10 @@ void CameraTest::RenderTexture(const std::string &_renderEngine)
/////////////////////////////////////////////////
void CameraTest::TrackFollow(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down Expand Up @@ -227,6 +239,10 @@ void CameraTest::TrackFollow(const std::string &_renderEngine)
/////////////////////////////////////////////////
void CameraTest::AddRemoveRenderPass(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down
4 changes: 4 additions & 0 deletions src/Grid_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class GridTest : public testing::Test,
/////////////////////////////////////////////////
void GridTest::Grid(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
if (_renderEngine != "ogre" && _renderEngine != "ogre2")
{
igndbg << "Grid not supported yet in rendering engine: "
Expand Down
4 changes: 4 additions & 0 deletions src/Light_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ class LightTest : public testing::Test,
/////////////////////////////////////////////////
void LightTest::Light(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down
4 changes: 4 additions & 0 deletions src/Marker_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class MarkerTest : public testing::Test,
/////////////////////////////////////////////////
void MarkerTest::Marker(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
if (_renderEngine == "optix")
{
igndbg << "Marker not supported yet in rendering engine: "
Expand Down
8 changes: 8 additions & 0 deletions src/Material_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class MaterialTest : public testing::Test,
/////////////////////////////////////////////////
void MaterialTest::MaterialProperties(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -259,6 +263,10 @@ void MaterialTest::MaterialProperties(const std::string &_renderEngine)
/////////////////////////////////////////////////
void MaterialTest::Copy(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
8 changes: 8 additions & 0 deletions src/Mesh_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class MeshTest : public testing::Test,
/////////////////////////////////////////////////
void MeshTest::MeshSubMesh(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -112,6 +116,10 @@ void MeshTest::MeshSubMesh(const std::string &_renderEngine)
/////////////////////////////////////////////////
void MeshTest::MeshSkeleton(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
4 changes: 4 additions & 0 deletions src/MoveToHelper_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ void MoveToHelperTest::checkIsCompleted(double timeout)

void MoveToHelperTest::MoveTo(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down
4 changes: 4 additions & 0 deletions src/Node_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class NodeTest : public testing::Test,
/////////////////////////////////////////////////
void NodeTest::Pose(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
12 changes: 12 additions & 0 deletions src/OrbitViewController_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class OrbitViewControllerTest : public testing::Test,
/////////////////////////////////////////////////
void OrbitViewControllerTest::OrbitViewControl(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -91,6 +95,10 @@ void OrbitViewControllerTest::OrbitViewControl(const std::string &_renderEngine)
void OrbitViewControllerTest::OrbitViewControlCameraConstructor(
const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -127,6 +135,10 @@ void OrbitViewControllerTest::OrbitViewControlCameraConstructor(
/////////////////////////////////////////////////
void OrbitViewControllerTest::Control(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
4 changes: 4 additions & 0 deletions src/RayQuery_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class RayQueryTest : public testing::Test,
/////////////////////////////////////////////////
void RayQueryTest::RayQuery(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
if (_renderEngine == "optix")
{
igndbg << "RayQuery not supported yet in rendering engine: "
Expand Down
4 changes: 4 additions & 0 deletions src/RenderTarget_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class RenderTargetTest : public testing::Test,
/////////////////////////////////////////////////
void RenderTargetTest::RenderTexture(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down
4 changes: 4 additions & 0 deletions src/RenderingIface_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ unsigned int defaultEnginesForTest()
/////////////////////////////////////////////////
TEST(RenderingIfaceTest, GetEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
common::Console::SetVerbosity(4);

unsigned int count = defaultEnginesForTest();
Expand Down
24 changes: 24 additions & 0 deletions src/Scene_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class SceneTest : public testing::Test,
/////////////////////////////////////////////////
void SceneTest::Scene(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down Expand Up @@ -120,6 +124,10 @@ void SceneTest::Scene(const std::string &_renderEngine)
/////////////////////////////////////////////////
void SceneTest::Nodes(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
auto engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -204,6 +212,10 @@ void SceneTest::Nodes(const std::string &_renderEngine)
/////////////////////////////////////////////////
void SceneTest::RemoveNodes(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
auto engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -306,6 +318,10 @@ void SceneTest::RemoveNodes(const std::string &_renderEngine)
/////////////////////////////////////////////////
void SceneTest::DestroyNodes(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
auto engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -529,6 +545,10 @@ void SceneTest::DestroyNodes(const std::string &_renderEngine)
/////////////////////////////////////////////////
void SceneTest::NodeCycle(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
auto engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -595,6 +615,10 @@ void SceneTest::NodeCycle(const std::string &_renderEngine)
/////////////////////////////////////////////////
void SceneTest::Materials(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
auto engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
4 changes: 4 additions & 0 deletions src/ThermalCamera_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class ThermalCameraTest : public testing::Test,
/////////////////////////////////////////////////
void ThermalCameraTest::ThermalCamera(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
// create and populate scene
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
Expand Down
16 changes: 16 additions & 0 deletions src/TransformController_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class TransformControllerTest : public testing::Test,
/////////////////////////////////////////////////
void TransformControllerTest::TransformControl(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -136,6 +140,10 @@ void TransformControllerTest::TransformControl(const std::string &_renderEngine)
/////////////////////////////////////////////////
void TransformControllerTest::WorldSpace(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -199,6 +207,10 @@ void TransformControllerTest::WorldSpace(const std::string &_renderEngine)
/////////////////////////////////////////////////
void TransformControllerTest::LocalSpace(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down Expand Up @@ -313,6 +325,10 @@ void TransformControllerTest::LocalSpace(const std::string &_renderEngine)
/////////////////////////////////////////////////
void TransformControllerTest::Control2d(const std::string &_renderEngine)
{
#ifdef __APPLE__
std::cerr << "Skipping test for apple, see issue #847." << std::endl;
return;
#endif
RenderEngine *engine = rendering::engine(_renderEngine);
if (!engine)
{
Expand Down
Loading
Loading