You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
928 B
52 lines
928 B
#!/bin/bash |
|
# useful script to test all the different build types that we support. |
|
# This helps when doing large merges |
|
# Andrew Tridgell, November 2011 |
|
|
|
. config.mk |
|
|
|
set -e |
|
set -x |
|
|
|
echo "Testing ArduPlane build" |
|
pushd ArduPlane |
|
for b in all apm2 apm2beta apm1-hil apm1-hilsensors apm2-hil apm2-hilsensors sitl sitl-mount sitl-newcontrollers; do |
|
pwd |
|
make clean |
|
make $b -j4 |
|
done |
|
popd |
|
|
|
echo "Testing ArduCopter build" |
|
pushd ArduCopter |
|
for b in all apm2 apm1-hil apm2-hil sitl heli dmp; do |
|
pwd |
|
make clean |
|
make $b -j4 |
|
done |
|
popd |
|
|
|
echo "Testing APMRover build" |
|
pushd APMrover2 |
|
for b in all apm2 sitl apm2-hil; do |
|
pwd |
|
make clean |
|
make $b -j4 |
|
done |
|
popd |
|
|
|
echo "Testing build of examples" |
|
|
|
examples="Tools/VARTest Tools/CPUInfo" |
|
for d in $examples; do |
|
pushd $d |
|
make clean |
|
make -j4 |
|
popd |
|
done |
|
|
|
test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && { |
|
./Tools/scripts/build_all_px4.sh |
|
} |
|
|
|
exit 0
|
|
|