-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add isolated version of ament_add_gmock Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Prevent add_ros_isolated_*_tests from interfering with domain_coordinator self-test Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Move isolated test functions to ament_cmake_ros Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Move ament_cmake_ros_isolated_gmock into ament_cmake_ros too Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Remove files that got left behind when isolated_gmock moved to ament_cmake_ros Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Fix lint errors Signed-off-by: Pete Baughman <pete.baughman@apex.ai> * Fix python flake8 Signed-off-by: Pete Baughman <pete.baughman@apex.ai>
- Loading branch information
Showing
15 changed files
with
71 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2019 Apex.AI, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# | ||
# Add a gmock test that runs with ROS_DOMAIN_ID isolation. | ||
# If no ROS_DOMAIN_ID is set, automatically select one not in use by another | ||
# isolated test before running the target test. | ||
# This will prevent tests running in parallel from interfering with | ||
# one-another. | ||
# | ||
# This behavior can be disabled for debugging in two ways: | ||
# 1) Creating an environment variable called DISABLE_ROS_ISOLATION | ||
# 2) Setting a ROS_DOMAIN_ID environment variable. | ||
# This will cause the tests to use that ROS_DOMAIN_ID. | ||
# | ||
# Parameters are the same as ament_add_gmock | ||
|
||
function(ament_add_ros_isolated_gmock target) | ||
|
||
set(RUNNER "RUNNER" "${ament_cmake_ros_DIR}/run_test_isolated.py") | ||
|
||
ament_add_gmock( | ||
"${target}" | ||
RUNNER "${RUNNER}" | ||
${ARGN} | ||
) | ||
|
||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
ament_cmake_ros_isolated_gtest/ament_cmake_ros_isolated_gtest-extras.cmake
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
ament_cmake_ros_isolated_pytest/ament_cmake_ros_isolated_pytest-extras.cmake
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters