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
|
|
|
|
|
2013-09-03 23:03:54 -03:00
|
|
|
. config.mk
|
|
|
|
|
2011-11-25 18:57:46 -04:00
|
|
|
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
|
2015-03-13 08:54:55 -03:00
|
|
|
for b in all apm2 sitl linux; do
|
2011-11-25 18:57:46 -04:00
|
|
|
pwd
|
|
|
|
make clean
|
2013-01-06 20:11:10 -04:00
|
|
|
make $b -j4
|
2011-11-25 18:57:46 -04:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2012-02-19 01:58:25 -04:00
|
|
|
echo "Testing ArduCopter build"
|
2011-11-25 18:57:46 -04:00
|
|
|
pushd ArduCopter
|
2015-03-14 01:04:22 -03:00
|
|
|
for b in sitl linux; do
|
2011-11-25 18:57:46 -04:00
|
|
|
pwd
|
|
|
|
make clean
|
2013-01-06 20:11:10 -04:00
|
|
|
make $b -j4
|
2011-11-25 18:57:46 -04:00
|
|
|
done
|
|
|
|
popd
|
2012-02-19 01:58:25 -04:00
|
|
|
|
2012-06-10 06:35:56 -03:00
|
|
|
echo "Testing APMRover build"
|
|
|
|
pushd APMrover2
|
2015-03-13 08:54:55 -03:00
|
|
|
for b in all apm2 sitl linux; do
|
2012-06-10 06:35:56 -03:00
|
|
|
pwd
|
|
|
|
make clean
|
2013-01-06 20:11:10 -04:00
|
|
|
make $b -j4
|
2012-06-10 06:35:56 -03:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2014-08-14 00:07:47 -03:00
|
|
|
echo "Testing AntennaTracker build"
|
|
|
|
pushd AntennaTracker
|
|
|
|
for b in apm2 sitl; do
|
|
|
|
pwd
|
|
|
|
make clean
|
|
|
|
make $b -j4
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2012-02-19 01:58:25 -04:00
|
|
|
echo "Testing build of examples"
|
|
|
|
|
2014-08-14 00:07:47 -03:00
|
|
|
examples="Tools/VARTest Tools/CPUInfo"
|
2012-02-19 01:58:25 -04:00
|
|
|
for d in $examples; do
|
|
|
|
pushd $d
|
|
|
|
make clean
|
2014-02-18 04:16:47 -04:00
|
|
|
make apm2 -j4
|
|
|
|
make clean
|
|
|
|
make sitl -j4
|
2012-02-19 01:58:25 -04:00
|
|
|
popd
|
|
|
|
done
|
2012-02-19 18:16:57 -04:00
|
|
|
|
2013-09-23 04:08:13 -03:00
|
|
|
test -d ../libmaple && {
|
|
|
|
echo "Testing flymaple build"
|
2015-03-14 06:00:04 -03:00
|
|
|
for d in ArduPlane APMrover2; do
|
2013-09-23 04:08:13 -03:00
|
|
|
pushd $d
|
|
|
|
make clean
|
2013-09-30 23:10:38 -03:00
|
|
|
make flymaple -j4
|
2013-09-23 04:08:13 -03:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2014-03-19 07:04:16 -03:00
|
|
|
pushd Tools/Replay
|
|
|
|
make clean
|
|
|
|
make linux -j4
|
|
|
|
popd
|
|
|
|
|
2013-02-11 17:35:39 -04:00
|
|
|
test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && {
|
|
|
|
./Tools/scripts/build_all_px4.sh
|
|
|
|
}
|
|
|
|
|
2014-04-08 08:27:53 -03:00
|
|
|
test -n "$VRBRAIN_ROOT" && test -d "$VRBRAIN_ROOT" && {
|
|
|
|
./Tools/scripts/build_all_vrbrain.sh
|
|
|
|
}
|
|
|
|
|
2012-02-19 18:16:57 -04:00
|
|
|
exit 0
|