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 ogre tests on windows #303

Merged
merged 1 commit into from
Dec 19, 2022
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
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