diff --git a/.ci/Jenkinsfile-hardware_linux b/.ci/Jenkinsfile-hardware_linux index 5f4b72d892..d884183aa3 100644 --- a/.ci/Jenkinsfile-hardware_linux +++ b/.ci/Jenkinsfile-hardware_linux @@ -15,8 +15,14 @@ pipeline { sh 'git fetch --tags' sh 'CCACHE_BASEDIR=${WORKSPACE} make emlid_navio2_native' sh 'ccache -s' + // sanity check sh 'cd build/emlid_navio2_native/ && ./bin/px4 -s ../../posix-configs/rpi/px4_test.config' } + post { + always { + sh 'make distclean' + } + } options { timeout(time: 30, unit: 'MINUTES') } diff --git a/.ci/Jenkinsfile-hardware_snapdragon b/.ci/Jenkinsfile-hardware_snapdragon index 39d2b0998d..70568c7f57 100644 --- a/.ci/Jenkinsfile-hardware_snapdragon +++ b/.ci/Jenkinsfile-hardware_snapdragon @@ -13,12 +13,19 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make eagle_default' + sh 'CCACHE_BASEDIR=${WORKSPACE} make eagle_default' sh 'ccache -s' // sanity check sh 'adb devices' sh 'make eagle_default sanity' } + post { + always { + sh 'cat boards/atlflight/eagle/scripts/px4.log' + sh 'cat boards/atlflight/eagle/scripts/minidm.log' + sh 'make distclean' + } + } options { timeout(time: 30, unit: 'MINUTES') } diff --git a/boards/atlflight/eagle/CMakeLists.txt b/boards/atlflight/eagle/CMakeLists.txt index 79a0d0e2da..eaa46f8baf 100644 --- a/boards/atlflight/eagle/CMakeLists.txt +++ b/boards/atlflight/eagle/CMakeLists.txt @@ -64,8 +64,6 @@ else() add_custom_target(sanity COMMAND ./px4_snapflight_sanitytest.sh -i -t - COMMAND cat px4.log - COMMAND cat minidm.log DEPENDS px4 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts COMMENT "uploading px4" diff --git a/posix-configs/rpi/px4_test.config b/posix-configs/rpi/px4_test.config index 9d39452c0f..60b3408508 100644 --- a/posix-configs/rpi/px4_test.config +++ b/posix-configs/rpi/px4_test.config @@ -49,13 +49,33 @@ mavlink boot_complete sleep 5 +ver all +sleep 1 commander check +sleep 1 +dataman status +sleep 1 ekf2 status +sleep 1 +logger status +sleep 1 mavlink status +sleep 1 mavlink status streams +sleep 1 +param show +sleep 1 +param status +sleep 1 +pwm info +sleep 1 sensors status +sleep 1 perf +sleep 1 perf latency +sleep 1 uorb top -1 +sleep 1 shutdown