mirror of https://github.com/ArduPilot/ardupilot
Tools: run examples with SITL
This commit is contained in:
parent
09500df4a8
commit
03910b8df4
|
@ -51,7 +51,7 @@ def run_example(filepath, valgrind=False, gdb=False):
|
||||||
|
|
||||||
|
|
||||||
def run_examples(debug=False, valgrind=False, gdb=False):
|
def run_examples(debug=False, valgrind=False, gdb=False):
|
||||||
dirpath = util.reltopdir(os.path.join('build', 'linux', 'examples'))
|
dirpath = util.reltopdir(os.path.join('build', 'sitl', 'examples'))
|
||||||
|
|
||||||
print("Running Hello")
|
print("Running Hello")
|
||||||
# explicitly run helloworld and check for output
|
# explicitly run helloworld and check for output
|
||||||
|
|
|
@ -176,7 +176,7 @@ for t in $CI_BUILD_TARGET; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$t" == "examples" ]; then
|
if [ "$t" == "examples" ]; then
|
||||||
./waf configure --board=linux --debug
|
./waf configure --board=sitl --debug
|
||||||
./waf examples
|
./waf examples
|
||||||
run_autotest "Examples" "--no-clean" "run.examples"
|
run_autotest "Examples" "--no-clean" "run.examples"
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue