Skip to content

Commit

Permalink
Enable test only on Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Mar 30, 2022
1 parent c17a158 commit 59a8870
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/integration/ModelPhotoShootTest.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*
*/

#ifndef IGNITION_GAZEBO_TEST_INTEGRATION_MODELPHOTOSHOOTTEST_HH_
#define IGNITION_GAZEBO_TEST_INTEGRATION_MODELPHOTOSHOOTTEST_HH_

#include <gtest/gtest.h>

#include <stdio.h>
Expand Down Expand Up @@ -296,3 +299,5 @@ class ModelPhotoShootTest : public InternalFixture<::testing::Test>
private: std::map<std::string, double> jointPositions;
private: std::shared_ptr<ignition::gazebo::Model> model;
};

#endif
5 changes: 4 additions & 1 deletion test/integration/model_photo_shoot_default_joints.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

#include "ModelPhotoShootTest.hh"

#include <ignition/utils/ExtraTestMacros.hh>

// Test the Model Photo Shoot plugin on the example world.
TEST_F(ModelPhotoShootTest, ModelPhotoShootDefaultJoints)
TEST_F(ModelPhotoShootTest,
IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ModelPhotoShootDefaultJoints))
{
this->ModelPhotoShootTestCmd(
"examples/worlds/model_photo_shoot.sdf");
Expand Down
5 changes: 4 additions & 1 deletion test/integration/model_photo_shoot_random_joints.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

#include "ModelPhotoShootTest.hh"

#include <ignition/utils/ExtraTestMacros.hh>

// Test the Model Photo Shoot plugin on the example world.
TEST_F(ModelPhotoShootTest, ModelPhotoShootRandomJoints)
TEST_F(ModelPhotoShootTest,
IGN_UTILS_TEST_ENABLED_ONLY_ON_LINUX(ModelPhotoShootRandomJoints))
{
this->ModelPhotoShootTestCmd(
"test/worlds/model_photo_shoot_random_joints.sdf");
Expand Down

0 comments on commit 59a8870

Please sign in to comment.