Skip to content

Commit

Permalink
Disable ogre tests on windows (#303)
Browse files Browse the repository at this point in the history
Ogre tests are not working on windows as discussed in #284.

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Dec 19, 2022
1 parent ae723cd commit 98c5eef
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/image.pb.h>
Expand Down Expand Up @@ -68,6 +69,14 @@ class CameraSensorTest: public testing::Test,
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
gz::common::Console::SetVerbosity(4);
}

Expand Down
13 changes: 13 additions & 0 deletions test/integration/depth_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/camera_info.pb.h>
Expand Down Expand Up @@ -139,6 +140,18 @@ void OnPointCloud(const gz::msgs::PointCloudPacked &_msg)
class DepthCameraSensorTest: public testing::Test,
public testing::WithParamInterface<const char *>
{
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
}
// Create a Camera sensor from a SDF and gets a image message
public: void ImagesWithBuiltinSDF(const std::string &_renderEngine);
};
Expand Down
9 changes: 9 additions & 0 deletions test/integration/distortion_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/image.pb.h>
Expand Down Expand Up @@ -46,6 +47,14 @@ class DistortionCameraSensorTest: public testing::Test,
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
gz::common::Console::SetVerbosity(4);
}

Expand Down
14 changes: 14 additions & 0 deletions test/integration/gpu_lidar_sensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/laserscan.pb.h>
Expand Down Expand Up @@ -139,6 +140,19 @@ void pointCb(const gz::msgs::PointCloudPacked &_msg)
class GpuLidarSensorTest: public testing::Test,
public testing::WithParamInterface<const char *>
{
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
}

// Test and verify gpu rays properties setters and getters
public: void CreateGpuLidar(const std::string &_renderEngine);

Expand Down
14 changes: 14 additions & 0 deletions test/integration/rgbd_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/camera_info.pb.h>
Expand Down Expand Up @@ -158,6 +159,19 @@ void OnPointCloud(const msgs::PointCloudPacked &_msg)
class RgbdCameraSensorTest: public testing::Test,
public testing::WithParamInterface<const char *>
{
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
}

// Create a Camera sensor from a SDF and gets a image message
public: void ImagesWithBuiltinSDF(const std::string &_renderEngine);
};
Expand Down
14 changes: 14 additions & 0 deletions test/integration/thermal_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/camera_info.pb.h>
Expand Down Expand Up @@ -89,6 +90,19 @@ void OnImage8Bit(const gz::msgs::Image &_msg)
class ThermalCameraSensorTest: public testing::Test,
public testing::WithParamInterface<const char *>
{
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
}

// Create a Camera sensor from a SDF and gets a image message
public: void ImagesWithBuiltinSDF(const std::string &_renderEngine);

Expand Down
9 changes: 9 additions & 0 deletions test/integration/triggered_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/boolean.pb.h>
Expand Down Expand Up @@ -49,6 +50,14 @@ class TriggeredCameraTest: public testing::Test,
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
gz::common::Console::SetVerbosity(4);
}

Expand Down
9 changes: 9 additions & 0 deletions test/integration/wide_angle_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*
*/

#include <cstring>
#include <gtest/gtest.h>

#include <gz/msgs/image.pb.h>
Expand Down Expand Up @@ -75,6 +76,14 @@ class WideAngleCameraSensorTest: public testing::Test,
// Documentation inherited
protected: void SetUp() override
{
// Disable Ogre tests on windows. See
// https://github.com/gazebosim/gz-sensors/issues/284
#ifdef _WIN32
if (strcmp(GetParam(), "ogre") == 0)
{
GTEST_SKIP() << "Ogre tests disabled on windows. See #284.";
}
#endif
gz::common::Console::SetVerbosity(4);
}

Expand Down

0 comments on commit 98c5eef

Please sign in to comment.