Skip to content

Commit

Permalink
Update test configuration to use ogre2 (#83)
Browse files Browse the repository at this point in the history
* use ogre2 test

Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jun 29, 2020
1 parent 5ca5ea0 commit f54768c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## Ignition Rendering


### Ignition Rendering 3.X.X

1. Update test configuration to use ogre2
* [Pull request 83](https://github.com/ignitionrobotics/ign-rendering/pull/83)

1. Ogre2 GPU Ray: Cleanup all resources on destruction
* [BitBucket pull request 258](https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-rendering/pull-requests/258)

Expand Down
1 change: 1 addition & 0 deletions ogre2/src/Ogre2DepthCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ void Ogre2DepthCamera::CreateDepthTexture()
// {
// material DepthCamera // Use copy instead of original
// input 0 depthTexture
// input 1 colorTexture
// quad_normals camera_far_corners_view_space
// }
// }
Expand Down
6 changes: 5 additions & 1 deletion test/integration/depth_camera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void DepthCameraTest::DepthCameraBoxes(

// Verify Depth
{
// box not detected so all should return max val
// all points should have the same depth value
EXPECT_FLOAT_EQ(expectedRange, scan[mid]);
EXPECT_FLOAT_EQ(expectedRange, scan[left]);
EXPECT_FLOAT_EQ(expectedRange, scan[right]);
Expand Down Expand Up @@ -434,7 +434,11 @@ void DepthCameraTest::DepthCameraBoxes(
ignition::rendering::unloadEngine(engine->Name());
}

#ifdef __APPLE__
TEST_P(DepthCameraTest, DISABLED_DepthCameraBoxes)
#else
TEST_P(DepthCameraTest, DepthCameraBoxes)
#endif
{
DepthCameraBoxes(GetParam());
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define RENDER_ENGINE_VALUES ::testing::ValuesIn(\
ignition::rendering::TestValues())

static const std::vector<const char *> kRenderEngineTestValues{"ogre", "optix"};
static const std::vector<const char *> kRenderEngineTestValues{"ogre2", "optix"};

#include <vector>
#include <ignition/common/Util.hh>
Expand Down

0 comments on commit f54768c

Please sign in to comment.