ardupilot/libraries/AP_HAL_AVR/build_all.sh

23 lines
442 B
Bash
Raw Normal View History

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
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
for b in $TESTS; do
echo "TESTING $b"
2012-10-26 20:13:17 -03:00
pushd $b
make clean
make
popd
done
echo "All tests built OK"
2012-10-26 20:13:17 -03:00
exit 0