add back run_tests script
This commit is contained in:
parent
bf92a90648
commit
cfeac9ab2f
3 changed files with 20 additions and 5 deletions
|
@ -3,7 +3,7 @@ language: cpp
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 2
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.4"
|
postgresql: "9.4"
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -59,10 +59,7 @@ uninstall:
|
||||||
@$(PYTHON) scons/scons.py -j$(JOBS) --config=cache --implicit-cache --max-drift=1 uninstall
|
@$(PYTHON) scons/scons.py -j$(JOBS) --config=cache --implicit-cache --max-drift=1 uninstall
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@source localize.sh && source mapnik-settings.env && ./test/unit/run && \
|
./run_tests
|
||||||
for FILE in test/standalone/*-bin; do \
|
|
||||||
$${FILE}; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
|
|
||||||
|
|
18
run_tests
Executable file
18
run_tests
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
failures=0
|
||||||
|
|
||||||
|
source ./localize.sh
|
||||||
|
source mapnik-settings.env
|
||||||
|
|
||||||
|
./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
|
Loading…
Reference in a new issue