diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index ca893c2c4d..d525b21e64 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -6290,6 +6290,13 @@ class AutoTestPlane(vehicle_test_suite.TestSuite): def tests(self): '''return list of all tests''' + ret = [] + ret.extend(self.tests1a()) + ret.extend(self.tests1b()) + return ret + + def tests1a(self): + ret = [] ret = super(AutoTestPlane, self).tests() ret.extend([ self.AuxModeSwitch, @@ -6347,6 +6354,11 @@ class AutoTestPlane(vehicle_test_suite.TestSuite): self.Soaring, self.Terrain, self.TerrainMission, + ]) + return ret + + def tests1b(self): + return [ self.TerrainLoiter, self.VectorNavEAHRS, self.MicroStrainEAHRS5, @@ -6424,8 +6436,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite): self.MAV_CMD_EXTERNAL_WIND_ESTIMATE, self.GliderPullup, self.BadRollChannelDefined, - ]) - return ret + ] def disabled_tests(self): return { @@ -6434,3 +6445,13 @@ class AutoTestPlane(vehicle_test_suite.TestSuite): "ClimbThrottleSaturation": "requires https://github.com/ArduPilot/ardupilot/pull/27106 to pass", "SetHomeAltChange": "https://github.com/ArduPilot/ardupilot/issues/5672", } + + +class AutoTestPlaneTests1a(AutoTestPlane): + def tests(self): + return self.tests1a() + + +class AutoTestPlaneTests1b(AutoTestPlane): + def tests(self): + return self.tests1b() diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 74f08297f1..296c930d4f 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -278,6 +278,9 @@ __bin_names = { "CopterTests2b": "arducopter", "Plane": "arduplane", + "PlaneTests1a": "arduplane", + "PlaneTests1b": "arduplane", + "Rover": "ardurover", "Tracker": "antennatracker", "Helicopter": "arducopter-heli", @@ -352,6 +355,8 @@ tester_class_map = { "test.CopterTests2a": arducopter.AutoTestCopterTests2a, # 8m23s "test.CopterTests2b": arducopter.AutoTestCopterTests2b, # 8m18s "test.Plane": arduplane.AutoTestPlane, + "test.PlaneTests1a": arduplane.AutoTestPlaneTests1a, + "test.PlaneTests1b": arduplane.AutoTestPlaneTests1b, "test.QuadPlane": quadplane.AutoTestQuadPlane, "test.Rover": rover.AutoTestRover, "test.BalanceBot": balancebot.AutoTestBalanceBot, @@ -1112,6 +1117,9 @@ if __name__ == "__main__": 'test.CopterTests2a', 'test.CopterTests2b', + 'test.PlaneTests1a', + 'test.PlaneTests1b', + 'clang-scan-build', ] diff --git a/Tools/scripts/build_ci.sh b/Tools/scripts/build_ci.sh index cd20a58a53..4d018d415a 100755 --- a/Tools/scripts/build_ci.sh +++ b/Tools/scripts/build_ci.sh @@ -135,8 +135,12 @@ for t in $CI_BUILD_TARGET; do run_autotest "Copter" "build.SITLPeriphUniversal" "test.CAN" continue fi - if [ "$t" == "sitltest-plane" ]; then - run_autotest "Plane" "build.Plane" "test.Plane" + if [ "$t" == "sitltest-plane-tests1a" ]; then + run_autotest "Plane" "build.Plane" "test.PlaneTests1a" + continue + fi + if [ "$t" == "sitltest-plane-tests1b" ]; then + run_autotest "Plane" "build.Plane" "test.PlaneTests1b" continue fi if [ "$t" == "sitltest-quadplane" ]; then