This commit is contained in:
trung09122002
2026-09-19 18:35:09 +07:00
parent 3896886349
commit 62b611a3eb
9 changed files with 238 additions and 30 deletions

View File

@@ -162,12 +162,23 @@ if(VSLAM_BUILD_APP)
PASS_REGULAR_EXPRESSION "phai chon mot nguon"
ENVIRONMENT "${VSLAM_NODE_TEST_ENV}")
# `--live` phai noi RO la chua chay duoc, khong duoc im lang chay thu gi do.
add_test(NAME node_live_bao_chua_co_driver
COMMAND vslam_node --live --config ${CMAKE_SOURCE_DIR}/configuration_files)
set_tests_properties(node_live_bao_chua_co_driver PROPERTIES
PASS_REGULAR_EXPRESSION "driver LakiBeam"
ENVIRONMENT "${VSLAM_NODE_TEST_ENV}")
# `--live` phai noi RO vi sao khong chay duoc, khong duoc im lang chay thu
# gi do.
#
# ⚠️ CHI dang ky khi build KHONG co CANopen. Voi -DVSLAM_WITH_CANOPEN=ON va
# phan cung that cam vao, `--live` se KHOI DONG THAT va chay mai -- test se
# TREO chu khong fail. Mot test treo trong CI te hon mot test thieu.
#
# Cai duoc kiem o day la: mot build thieu CANopen phai TU CHOI --live va noi
# ro thieu gi. Duong `--live` chay duoc thi phai kiem tren phan cung that,
# khong kiem bang ctest duoc.
if(NOT VSLAM_WITH_CANOPEN)
add_test(NAME node_live_tu_choi_khi_thieu_canopen
COMMAND vslam_node --live --config ${CMAKE_SOURCE_DIR}/configuration_files)
set_tests_properties(node_live_tu_choi_khi_thieu_canopen PROPERTIES
PASS_REGULAR_EXPRESSION "VSLAM_WITH_CANOPEN"
ENVIRONMENT "${VSLAM_NODE_TEST_ENV}")
endif()
endif()
# ---------------------------------------------------------------------------