mapnik/run_tests

27 lines
653 B
Text
Raw Normal View History

2015-04-27 00:45:12 +02:00
#!/bin/bash
failures=0
source ./localize.sh
# mapnik-settings.env is an optional file to store
# environment variables that should be used before
# running tests like PROJ_LIB, GDAL_DATA, and ICU_DATA
# These do not normally need to be set except when
# building against binary versions of dependencies like
# done via bootstrap.sh
if [[ -f mapnik-settings.env ]]; then
source mapnik-settings.env
fi
2015-04-27 00:45:12 +02:00
./test/unit/run
failures=$((failures+$?))
if [ -n "$(find test/standalone/ -maxdepth 1 -name '*-bin' -print -quit)" ]; then
for FILE in test/standalone/*-bin; do
${FILE};
failures=$((failures+$?))
done
fi
exit $failures