-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
143 additions
and
532 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
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 |
---|---|---|
@@ -1,127 +1,3 @@ | ||
find_package(rostest REQUIRED) | ||
|
||
# takeoff test | ||
|
||
add_rostest_gtest(MrsUavManagers_UavManagerTakeoffTest | ||
uav_manager/takeoff/uav_manager_takeoff.test | ||
uav_manager/takeoff/takeoff_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_UavManagerTakeoffTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_UavManagerTakeoffTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# landing test | ||
|
||
add_rostest_gtest(MrsUavManagers_UavManagerLandingTest | ||
uav_manager/landing/uav_manager_landing.test | ||
uav_manager/landing/landing_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_UavManagerLandingTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_UavManagerLandingTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# goto service test | ||
|
||
add_rostest_gtest(MrsUavManagers_ControlManagerGotoServiceTest | ||
control_manager/goto_service/control_manager_goto_service.test | ||
control_manager/goto_service/goto_service_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_ControlManagerGotoServiceTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_ControlManagerGotoServiceTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# eland innovation test | ||
|
||
add_rostest_gtest(MrsUavManagers_ControlManagerElandInnovationTest | ||
control_manager/eland_innovation/control_manager_eland_innovation.test | ||
control_manager/eland_innovation/eland_innovation_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_ControlManagerElandInnovationTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_ControlManagerElandInnovationTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# eland controlerror test | ||
|
||
add_rostest_gtest(MrsUavManagers_ControlManagerElandControlErrorTest | ||
control_manager/eland_control_error/control_manager_eland_control_error.test | ||
control_manager/eland_control_error/eland_control_error_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_ControlManagerElandControlErrorTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_ControlManagerElandControlErrorTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# failsafe controlerror test | ||
|
||
add_rostest_gtest(MrsUavManagers_ControlManagerFailsafeControlErrorTest | ||
control_manager/failsafe_control_error/control_manager_failsafe_control_error.test | ||
control_manager/failsafe_control_error/failsafe_control_error_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_ControlManagerFailsafeControlErrorTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_ControlManagerFailsafeControlErrorTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
# eland service test | ||
|
||
add_rostest_gtest(MrsUavManagers_ControlManagerElandServiceTest | ||
control_manager/eland_service/control_manager_eland_service.test | ||
control_manager/eland_service/eland_service_test.cpp | ||
) | ||
|
||
target_link_libraries( | ||
MrsUavManagers_ControlManagerElandServiceTest | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies( | ||
MrsUavManagers_ControlManagerElandServiceTest | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
add_subdirectory(control_manager) |
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 @@ | ||
add_subdirectory(goto_service) |
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,21 @@ | ||
get_filename_component(TEST_NAME "${CMAKE_CURRENT_SOURCE_DIR}" NAME) | ||
|
||
catkin_add_executable_with_gtest(test_${TEST_NAME} | ||
test.cpp | ||
) | ||
|
||
target_link_libraries(test_${TEST_NAME} | ||
${catkin_LIBRARIES} | ||
) | ||
|
||
add_dependencies(test_${TEST_NAME} | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
add_rostest(${TEST_NAME}.test | ||
ARGS | ||
test_path:=${CMAKE_CURRENT_SOURCE_DIR} | ||
package_name:=${PROJECT_NAME} | ||
test_name:=${TEST_NAME} | ||
) |
7 changes: 0 additions & 7 deletions
7
test/control_manager/goto_service/control_manager_goto_service.test
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<launch> | ||
|
||
<arg name="UAV_NAME" default="uav1" /> | ||
<arg name="UAV_TYPE" default="x500" /> | ||
|
||
<!-- these will be filled in from the CMakeLists --> | ||
<arg name="test_path" default="" /> | ||
<arg name="test_name" default="" /> | ||
<arg name="package_name" default="" /> | ||
|
||
<include file="$(find mrs_uav_testing)/launch/mrs_simulator.launch"> | ||
<arg name="UAV_NAME" default="$(arg UAV_NAME)" /> | ||
</include> | ||
|
||
<include file="$(find mrs_multirotor_simulator)/launch/hw_api.launch"> | ||
<arg name="UAV_NAME" default="$(arg UAV_NAME)" /> | ||
</include> | ||
|
||
<include file="$(find mrs_uav_testing)/launch/mrs_uav_system.launch"> | ||
<arg name="automatic_start" default="false" /> | ||
<arg name="platform_config" default="$(find mrs_multirotor_simulator)/config/mrs_uav_system/$(arg UAV_TYPE).yaml" /> | ||
<arg name="UAV_NAME" default="$(arg UAV_NAME)" /> | ||
</include> | ||
|
||
<test pkg="$(arg package_name)" type="test_$(arg test_name)" test-name="$(arg test_name)" time-limit="60.0"> | ||
<param name="test_name" value="$(arg test_name)" /> | ||
<param name="uav_name" value="$(arg UAV_NAME)" /> | ||
</test> | ||
|
||
</launch> |
Oops, something went wrong.