2011-11-25 18:57:46 -04:00
|
|
|
#!/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
|
|
|
|
|
2012-02-19 01:58:25 -04:00
|
|
|
echo "Testing ArduPlane build"
|
2011-11-25 18:57:46 -04:00
|
|
|
pushd ArduPlane
|
2012-06-04 06:30:33 -03:00
|
|
|
for b in all apm2 apm2beta hil hilsensors mavlink10 mavlink09 sitl sitl-mavlink10 sitl-mavlink09 sitl-mount; do
|
2011-11-25 18:57:46 -04:00
|
|
|
pwd
|
|
|
|
make clean
|
|
|
|
make $b
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2012-02-19 01:58:25 -04:00
|
|
|
echo "Testing ArduCopter build"
|
2011-11-25 18:57:46 -04:00
|
|
|
pushd ArduCopter
|
2012-02-19 01:34:37 -04:00
|
|
|
for b in all apm2 apm2beta hil sitl heli; do
|
2011-11-25 18:57:46 -04:00
|
|
|
pwd
|
|
|
|
make clean
|
|
|
|
make $b
|
|
|
|
done
|
|
|
|
popd
|
2012-02-19 01:58:25 -04:00
|
|
|
|
2012-06-10 06:35:56 -03:00
|
|
|
echo "Testing APMRover build"
|
|
|
|
pushd APMrover2
|
|
|
|
for b in all; do
|
|
|
|
pwd
|
|
|
|
make clean
|
|
|
|
make $b
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2012-02-19 01:58:25 -04:00
|
|
|
echo "Testing build of examples"
|
|
|
|
|
|
|
|
examples="Tools/VARTest Tools/CPUInfo"
|
|
|
|
for d in $examples; do
|
|
|
|
pushd $d
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
2012-02-19 18:16:57 -04:00
|
|
|
|
|
|
|
exit 0
|