ardupilot/Tools/scripts/build_all.sh
Andrew Tridgell 54d5819f4c test: it is no longer possible to build with MAVLink 0.9
the Camera and Mount code make it impossible because of the incredibly
silly arduino cpp handling.
2012-06-15 16:27:11 +10:00

47 lines
753 B
Bash
Executable File

#!/bin/bash
# useful script to test all the different build types that we support.
# This helps when doing large merges
# Andrew Tridgell, November 2011
set -e
set -x
echo "Testing ArduPlane build"
pushd ArduPlane
for b in all apm2 apm2beta hil hilsensors mavlink10 sitl sitl-mavlink10 sitl-mount; do
pwd
make clean
make $b
done
popd
echo "Testing ArduCopter build"
pushd ArduCopter
for b in all apm2 apm2beta hil sitl heli; do
pwd
make clean
make $b
done
popd
echo "Testing APMRover build"
pushd APMrover2
for b in all; do
pwd
make clean
make $b
done
popd
echo "Testing build of examples"
examples="Tools/VARTest Tools/CPUInfo"
for d in $examples; do
pushd $d
make clean
make
popd
done
exit 0