mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
make vcdevtest a generic cdev test
This commit is contained in:
committed by
David Sidrane
parent
3e0a3559a9
commit
c3448c19c4
@@ -100,24 +100,24 @@ set_tests_properties(shutdown PROPERTIES PASS_REGULAR_EXPRESSION "Shutting down"
|
||||
sanitizer_fail_test_on_error(shutdown)
|
||||
|
||||
# Dynamic module loading test
|
||||
add_test(NAME dyn
|
||||
COMMAND ${PX4_SOURCE_DIR}/Tools/sitl_run.sh
|
||||
$<TARGET_FILE:px4>
|
||||
none
|
||||
none
|
||||
test_dyn_hello
|
||||
${PX4_SOURCE_DIR}
|
||||
${PX4_BINARY_DIR}
|
||||
$<TARGET_FILE:platforms__posix__tests__dyn_hello>
|
||||
WORKING_DIRECTORY ${SITL_WORKING_DIR})
|
||||
set_tests_properties(dyn PROPERTIES PASS_REGULAR_EXPRESSION "1: PASSED")
|
||||
sanitizer_fail_test_on_error(dyn)
|
||||
#add_test(NAME dyn
|
||||
# COMMAND ${PX4_SOURCE_DIR}/Tools/sitl_run.sh
|
||||
# $<TARGET_FILE:px4>
|
||||
# none
|
||||
# none
|
||||
# test_dyn_hello
|
||||
# ${PX4_SOURCE_DIR}
|
||||
# ${PX4_BINARY_DIR}
|
||||
# $<TARGET_FILE:platforms__posix__tests__dyn_hello>
|
||||
# WORKING_DIRECTORY ${SITL_WORKING_DIR})
|
||||
#set_tests_properties(dyn PROPERTIES PASS_REGULAR_EXPRESSION "1: PASSED")
|
||||
#sanitizer_fail_test_on_error(dyn)
|
||||
|
||||
# run arbitrary commands
|
||||
set(test_cmds
|
||||
hello
|
||||
hrt_test
|
||||
vcdev_test
|
||||
cdev_test
|
||||
wqueue_test
|
||||
)
|
||||
|
||||
@@ -141,7 +141,7 @@ endforeach()
|
||||
|
||||
add_custom_target(test_results
|
||||
COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -T Test
|
||||
DEPENDS px4 platforms__posix__tests__dyn_hello
|
||||
DEPENDS px4 #platforms__posix__tests__dyn_hello
|
||||
USES_TERMINAL
|
||||
COMMENT "Running tests in sitl"
|
||||
WORKING_DIRECTORY ${PX4_BINARY_DIR})
|
||||
|
||||
Reference in New Issue
Block a user