2012-10-26 20:13:17 -03: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-10-26 20:52:53 -03:00
|
|
|
export PATH=/usr/lib/ccache:$PATH
|
|
|
|
|
2012-10-27 02:43:48 -03:00
|
|
|
TESTS=$(find libraries -name '*.pde' | xargs grep -l include..AP_HAL.h | grep -v PX4 | xargs -i dirname '{}')
|
2012-10-26 20:52:53 -03:00
|
|
|
|
2012-10-26 21:48:52 -03:00
|
|
|
for b in $TESTS; do
|
|
|
|
echo "TESTING $b"
|
2012-10-26 20:13:17 -03:00
|
|
|
pushd $b
|
|
|
|
make clean
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
2012-10-26 21:48:52 -03:00
|
|
|
echo "All tests built OK"
|
2012-10-26 20:13:17 -03:00
|
|
|
exit 0
|