You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
553 B
33 lines
553 B
#!/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 |
|
|
|
targets="clean apm1 clean apm2" |
|
|
|
[ $# -gt 0 ] && { |
|
targets="$*" |
|
} |
|
|
|
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 |
|
for t in $targets; do |
|
make -j4 $t |
|
done |
|
fi |
|
popd |
|
done |
|
|
|
echo "All examples built OK" |
|
exit 0
|
|
|