Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/ign-gazebo6' into camera_clip_ex…
Browse files Browse the repository at this point in the history
…ample_params
  • Loading branch information
scpeters committed Nov 5, 2021
2 parents fb7bbd5 + 3f5706e commit 7c56305
Show file tree
Hide file tree
Showing 11 changed files with 907 additions and 335 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ else()
set (EXTRA_TEST_LIB_DEPS)
endif()

include(test/find_dri.cmake)
FindDRI()

#============================================================================
# Search for project-specific dependencies
#============================================================================
Expand Down
19 changes: 18 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ set (gtest_sources
EventManager_TEST.cc
Link_TEST.cc
Model_TEST.cc
ModelCommandAPI_TEST.cc
SdfEntityCreator_TEST.cc
SdfGenerator_TEST.cc
ServerConfig_TEST.cc
Expand All @@ -95,6 +94,24 @@ set (gtest_sources
network/NetworkManager_TEST.cc
)

# Tests that require a valid display
set(tests_needing_display
ModelCommandAPI_TEST.cc
)

# Add systems that need a valid display here.
# \todo(anyone) Find a way to run these tests with a virtual display such Xvfb
# or Xdummy instead of skipping them
if(VALID_DISPLAY AND VALID_DRI_DISPLAY)
list(APPEND gtest_sources ${tests_needing_display})
else()
message(STATUS
"Skipping these UNIT tests because a valid display was not found:")
foreach(test ${tests_needing_display})
message(STATUS " ${test}")
endforeach(test)
endif()

if (MSVC)
# Warning #4251 is the "dll-interface" warning that tells you when types used
# by a class are not being exported. These generated source files have private
Expand Down
Loading

0 comments on commit 7c56305

Please sign in to comment.