Peter Barker
1347083548
Tools: autotest: add tests for Rover gripper support
6 years ago
Peter Barker
6f1f98dc3c
Tools: autotest: add assumption run_tests is only called once - remove hasInit
6 years ago
Pierre Kancir
8a7555bf56
Tools: autotest: fix up the arming tests
...
Tools: unify arm function failure message
Tools: get autodisarm time from parameter for autodisarm test
Tools: disable autodisarm for arm/disarm tests.
Tools: fix interlock channel for heli
Tools: simplify arming_test sub exclusion
Tools: fix empty string in progress
Tools: add back arming test to plane
Tools: allow single test run on Sub
Tools: remove old comments on autotest common
Tools: add vehicle type getter function
Tools: make get_rudder_channel abstract method
Tools: common make get_disarm_delay abstract method
Tools: make set_autodisarm_delay abstract method
Tools: rename set_throttle_zero to zero_throttle and use it
Tools: common.py remove unnecessary exception
Tools: subclass vehicle type
6 years ago
Peter Barker
584013de58
Tools: autotest: correct debug for precision
6 years ago
Peter Barker
657e1bee5a
Tools: autotest: use absolute path for rover avoidance fence
...
This stops us making the assumption MAVProxy's cwd is the ArduPilot git
root
6 years ago
Peter Barker
fa37ad344b
Tools: autotest: refactor setting of rc defaults
6 years ago
Peter Barker
2834fd8017
Tools: autotest: add test for channel override cancel
6 years ago
Peter Barker
7aa1d51585
Tools: autotest: move balancebot to new tests structure
6 years ago
cclauss
89be497897
Tools: Undefined name: 'AutoTestTimeoutException'
...
[flake8](http://flake8.pycqa.org ) testing of https://github.com/ArduPilot/ardupilot on Python 3.7.1
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./Tools/autotest/apmrover2.py:688:27: F821 undefined name 'AutoTestTimeoutException'
raise AutoTestTimeoutException("Did not reach speed")
^
./Tools/autotest/apmrover2.py:717:27: F821 undefined name 'AutoTestTimeoutException'
raise AutoTestTimeoutException("Did not stop")
^
2 F821 undefined name 'AutoTestTimeoutException'
2
```
6 years ago
Peter Barker
28b0267b6c
Tools: autotest: add timeout on Rover test_rc_overrides
6 years ago
Peter Barker
686bfc367e
Tools: autotest: tee MAVProxy output to per-test file
6 years ago
Peter Barker
9eae7857dd
Tools: autotest: make Rover use new tests framework
6 years ago
Peter Barker
10c27e07d4
Tools: autotest: make aux switch test more reliable
6 years ago
Peter Barker
31d6daa1ae
Tools: auotest: add test to ensure components are accepted if SYSID_ENFORCE
6 years ago
Peter Barker
da1f04e78c
Tools: autotest: add a test for SYSID_ENFORCE
6 years ago
Peter Barker
e6c30f6405
Tools: autotest: use change_mode in apmrover2 for changing modes
6 years ago
Peter Barker
a320a54f66
Tools: autotest: new wait_heartbeat raises exception if none received
6 years ago
Peter Barker
984ce514a7
Tools: autotest: make Rover tests stand-alone
6 years ago
Peter Barker
0d34052cef
Tools: autotest: move code up
6 years ago
Peter Barker
aff81d6f76
Tools: autotest: add test for SET_MESSAGE_INTERVAL
6 years ago
Peter Barker
88a003edd9
Tools: autotest: flake8 compliance
6 years ago
Peter Barker
f84370bb04
Tools: autotest: consolidate mission-loading functions
...
Also add sanity checks for mission loading
Tools: autotest: add missing import for arduplane.py
6 years ago
Andrew Tridgell
6b5088207b
autotest: upload failed CI logs to autotest server
6 years ago
Peter Barker
f290a72d9c
Tools: autotest: add test for camera trigger distance
6 years ago
Peter Barker
bb5aa4d195
Tools: add test for proximity avoidance switch
6 years ago
Peter Barker
a66cc52573
Tools: autotest: provide description of exceptions in constructors
6 years ago
Pierre Kancir
55f4be0515
Tools: make do_set_mode function more generic
6 years ago
Peter Barker
af510801f1
Tools: autotest: use RC_CHANNELS rather than RC_CHANNELS_RAW
7 years ago
Peter Barker
6e44ea13d4
Tools: autotest: do not arm vehicle before flaps test
7 years ago
Pierre Kancir
d8c53bbd9c
Tools: remove dependency on mavproxy for cmd_long based functions
7 years ago
Peter Barker
5d317a8ef7
Tools: autotest: clear Rover waypoints before toggling them in
7 years ago
Peter Barker
197edca772
Tools: expand test to cover use of disable-gcs-rc-overrides switch
7 years ago
Peter Barker
5c7e21d38f
Tools: autotest: add test for clearing waypoints
7 years ago
Pierre Kancir
f6cc934678
Tools: pep8 corrections + correct variable shadowing
7 years ago
Pierre Kancir
cc8aca1619
Tools: various fixes for Copter tests
...
Tools: correct altitude check
Tools: correct tests syntax
Tools: add autotest syntax check on common
Tools: search for syntax mistake on autotest lambda
Tools: put copter in hover trottle to prevent crash
Tools: reboot after baterry failsafe test
Tools: copter takeoff wait_ready_to_arm before arming
Tools: arm copter after land on RTL
Tools: reset copter battery voltage after battery failsafe
7 years ago
Peter Barker
2a174a5dac
Tools: add test for Sprayer-on-Rover
7 years ago
Peter Barker
0f7c837d2d
Tools: autotest: increase timeout for RTL test
...
BalanceBot is slow!
7 years ago
Peter Barker
4c89fa4b75
Tools: autotest: add tests for changing modes via MAVProxy mode command
7 years ago
Pierre Kancir
2f9f793ccf
Tools: add arm and disarm tests
7 years ago
Peter Barker
af37e10126
Tools: autotest: factor out starting of our our mavlink connection
7 years ago
Peter Barker
dab93750a0
Tools: add test for rc overrides
7 years ago
Pierre Kancir
a930822d9d
Tools: unify exception on os.link
7 years ago
Andrew Tridgell
6090820bdc
autotest: disable the Drive Brake test in rover
...
this test fails far too often
7 years ago
Peter Barker
b8030816b8
Tools: autotest: add tests for mode changes for Copter and Rover
7 years ago
Michael du Breuil
90216f7cb6
Tools: Slow rover test down for CI, remove unneeded variable
7 years ago
Peter Barker
6dd8dbeb40
Tools: autotest: add ability to add breakpoints in autotest
7 years ago
Peter Barker
975b8c2e5f
Tools: autotest: use reboot to apply parameter changes; avoid sim restart
...
Previously we stopped the simulation to ensure parameter changes are
applied to the simulated vehicle. We can now reboot the simulated
autopilot, so these patches make use of those changes.
One big advantage is that the --gdb option is in play for the applying
of the parameters to the vehicle.
7 years ago
Peter Barker
513865ae4d
Tools: autotest: flake8 compliance
7 years ago
Karthik Desai
40cd0cd17f
Tools: autotest: Use the generic run_test.
...
If any of the tests throws an exception, it will be caught by the generic test function
that collects all errors and displays them before passing the result to the vehicle testcode.
Hence the name of the test and the exception that got raised get printed in a single
location. This nicely reduces code duplication.
7 years ago
Peter Barker
802e4c6315
Tools: autotest: add tests for relays
7 years ago