|
|
|
@ -80,12 +80,26 @@ pipeline {
@@ -80,12 +80,26 @@ pipeline {
|
|
|
|
|
mission: "VTOL_mission_1", |
|
|
|
|
vehicle: "tailsitter" |
|
|
|
|
], |
|
|
|
|
// [ |
|
|
|
|
// name: "VTOL_tiltrotor", |
|
|
|
|
// test: "mavros_posix_test_mission.test", |
|
|
|
|
// mission: "VTOL_mission_1", |
|
|
|
|
// vehicle: "tiltrotor" |
|
|
|
|
// ], |
|
|
|
|
[ |
|
|
|
|
name: "VTOL_tiltrotor", |
|
|
|
|
test: "mavros_posix_test_mission.test", |
|
|
|
|
mission: "VTOL_mission_1", |
|
|
|
|
vehicle: "tiltrotor" |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
name: "MC_avoidance", |
|
|
|
|
test: "mavros_posix_test_avoidance.test", |
|
|
|
|
mission: "avoidance", |
|
|
|
|
vehicle: "iris_obs_avoid", |
|
|
|
|
run_script: "rostest_avoidance_run.sh" |
|
|
|
|
], |
|
|
|
|
[ |
|
|
|
|
name: "MC_safe_landing", |
|
|
|
|
test: "mavros_posix_test_safe_landing.test", |
|
|
|
|
mission: "MC_safe_landing", |
|
|
|
|
vehicle: "iris_obs_avoid", |
|
|
|
|
run_script: "rostest_avoidance_run.sh" |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
@ -119,6 +133,7 @@ def createTestNode(Map test_def) {
@@ -119,6 +133,7 @@ def createTestNode(Map test_def) {
|
|
|
|
|
cleanWs() |
|
|
|
|
docker.image("px4io/px4-dev-ros-kinetic:2019-10-04").inside('-e HOME=${WORKSPACE}') { |
|
|
|
|
stage(test_def.name) { |
|
|
|
|
def run_script = test_def.get('run_script', 'rostest_px4_run.sh') |
|
|
|
|
def test_ok = true |
|
|
|
|
sh('export') |
|
|
|
|
|
|
|
|
@ -127,7 +142,7 @@ def createTestNode(Map test_def) {
@@ -127,7 +142,7 @@ def createTestNode(Map test_def) {
|
|
|
|
|
|
|
|
|
|
// run test |
|
|
|
|
try { |
|
|
|
|
sh('px4-px4_sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) |
|
|
|
|
sh('px4-px4_sitl_default*/px4/test/' + run_script + ' ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) |
|
|
|
|
|
|
|
|
|
} catch (exc) { |
|
|
|
|
// save all test artifacts for debugging |
|
|
|
|