mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix(mavlink): remove all stale mavlink_tests references
The mavlink_tests module was deleted in 1009268d311 but several references were left behind, breaking builds on all targets. Removed: - CMakeLists.txt: add_subdirectory(mavlink_tests) - mavlink_ftp.cpp: #include of deleted mavlink_ftp_test.h - mavlink_ftp.h: MavlinkFtpTest forward decl and friend class - posix-configs/SITL/init/test/test_mavlink: dead init script - sitl_tests.cmake: sitl-mavlink CTest target - install-voxl.sh: px4-mavlink_tests symlink Ref: https://github.com/PX4/PX4-Autopilot/issues/26738 Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
parent
b8610ca6f4
commit
73884312da
@ -65,7 +65,6 @@ adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-logger"
|
|||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-manual_control"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-manual_control"
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mavlink"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mavlink"
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mavlink_bridge"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mavlink_bridge"
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mavlink_tests"
|
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mb12xx"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mb12xx"
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mc_att_control"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mc_att_control"
|
||||||
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mc_pos_control"
|
adb shell "cd /usr/bin; /bin/ln -f -s px4 px4-mc_pos_control"
|
||||||
|
|||||||
@ -72,20 +72,6 @@ endforeach()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Mavlink test requires mavlink running
|
|
||||||
add_test(NAME sitl-mavlink
|
|
||||||
COMMAND $<TARGET_FILE:px4>
|
|
||||||
-s ${PX4_SOURCE_DIR}/posix-configs/SITL/init/test/test_mavlink
|
|
||||||
-t ${PX4_SOURCE_DIR}/test_data
|
|
||||||
${PX4_SOURCE_DIR}/ROMFS/px4fmu_test
|
|
||||||
WORKING_DIRECTORY ${SITL_WORKING_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
set_tests_properties(sitl-mavlink PROPERTIES FAIL_REGULAR_EXPRESSION "FAIL")
|
|
||||||
set_tests_properties(sitl-mavlink PROPERTIES PASS_REGULAR_EXPRESSION "ALL TESTS PASSED")
|
|
||||||
sanitizer_fail_test_on_error(sitl-mavlink)
|
|
||||||
|
|
||||||
|
|
||||||
# IMU filtering
|
# IMU filtering
|
||||||
add_test(NAME sitl-imu_filtering
|
add_test(NAME sitl-imu_filtering
|
||||||
COMMAND $<TARGET_FILE:px4>
|
COMMAND $<TARGET_FILE:px4>
|
||||||
|
|||||||
@ -1,23 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# PX4 commands need the 'px4-' prefix in bash.
|
|
||||||
# (px4-alias.sh is expected to be in the PATH)
|
|
||||||
. px4-alias.sh
|
|
||||||
|
|
||||||
param load
|
|
||||||
param set CBRK_SUPPLY_CHK 894281
|
|
||||||
|
|
||||||
dataman start
|
|
||||||
|
|
||||||
battery_simulator start
|
|
||||||
simulator_mavlink start
|
|
||||||
tone_alarm start
|
|
||||||
pwm_out_sim start
|
|
||||||
|
|
||||||
ver all
|
|
||||||
|
|
||||||
mavlink start -x -u 14556 -r 2000000
|
|
||||||
mavlink boot_complete
|
|
||||||
|
|
||||||
mavlink_tests
|
|
||||||
|
|
||||||
shutdown
|
|
||||||
@ -145,10 +145,6 @@ px4_add_module(
|
|||||||
UNITY_BUILD
|
UNITY_BUILD
|
||||||
)
|
)
|
||||||
|
|
||||||
if(PX4_TESTING)
|
|
||||||
add_subdirectory(mavlink_tests)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
px4_add_unit_gtest(SRC MavlinkStatustextHandlerTest.cpp
|
px4_add_unit_gtest(SRC MavlinkStatustextHandlerTest.cpp
|
||||||
INCLUDES
|
INCLUDES
|
||||||
${MAVLINK_LIBRARY_DIR}
|
${MAVLINK_LIBRARY_DIR}
|
||||||
|
|||||||
@ -43,8 +43,6 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "mavlink_ftp.h"
|
#include "mavlink_ftp.h"
|
||||||
#include "mavlink_tests/mavlink_ftp_test.h"
|
|
||||||
|
|
||||||
#include "mavlink_main.h"
|
#include "mavlink_main.h"
|
||||||
|
|
||||||
using namespace time_literals;
|
using namespace time_literals;
|
||||||
|
|||||||
@ -45,7 +45,6 @@
|
|||||||
|
|
||||||
#include "mavlink_bridge_header.h"
|
#include "mavlink_bridge_header.h"
|
||||||
|
|
||||||
class MavlinkFtpTest;
|
|
||||||
class Mavlink;
|
class Mavlink;
|
||||||
|
|
||||||
/// MAVLink remote file server. Support FTP like commands using MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL message.
|
/// MAVLink remote file server. Support FTP like commands using MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL message.
|
||||||
@ -199,8 +198,5 @@ private:
|
|||||||
uint8_t _last_reply[MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL_LEN - MAVLINK_MSG_FILE_TRANSFER_PROTOCOL_FIELD_PAYLOAD_LEN
|
uint8_t _last_reply[MAVLINK_MSG_ID_FILE_TRANSFER_PROTOCOL_LEN - MAVLINK_MSG_FILE_TRANSFER_PROTOCOL_FIELD_PAYLOAD_LEN
|
||||||
+ sizeof(PayloadHeader) + sizeof(uint32_t)];
|
+ sizeof(PayloadHeader) + sizeof(uint32_t)];
|
||||||
|
|
||||||
// Mavlink test needs to be able to call send
|
|
||||||
friend class MavlinkFtpTest;
|
|
||||||
|
|
||||||
int _our_errno {0};
|
int _our_errno {0};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user