mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 01:03:59 -04:00
scripts: added build_example.sh script
used to test the build of all our example code
This commit is contained in:
parent
901a5326a4
commit
e29eb42bcf
26
Tools/scripts/build_examples.sh
Executable file
26
Tools/scripts/build_examples.sh
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# useful script to test the build of all example code
|
||||||
|
# This helps when doing large merges
|
||||||
|
# Andrew Tridgell, November 2012
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
export PATH=/usr/lib/ccache:$PATH
|
||||||
|
|
||||||
|
TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}')
|
||||||
|
|
||||||
|
for b in $TESTS; do
|
||||||
|
echo "TESTING $b"
|
||||||
|
pushd $b
|
||||||
|
if [ -r nobuild.txt ]; then
|
||||||
|
echo "Skipping build of $b"
|
||||||
|
else
|
||||||
|
make clean
|
||||||
|
make
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "All examples built OK"
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user