add a test-local target to run tests without having to install - closes #1397
This commit is contained in:
parent
15b9fc3eef
commit
c39c839452
1 changed files with 15 additions and 0 deletions
15
Makefile
15
Makefile
|
@ -1,3 +1,10 @@
|
||||||
|
UNAME := $(shell uname)
|
||||||
|
LINK_FIX=LD_LIBRARY_PATH
|
||||||
|
ifeq ($(UNAME), Darwin)
|
||||||
|
LINK_FIX=DYLD_LIBRARY_PATH
|
||||||
|
else
|
||||||
|
endif
|
||||||
|
|
||||||
all: mapnik
|
all: mapnik
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
@ -31,6 +38,14 @@ test:
|
||||||
@echo "*** Running python tests..."
|
@echo "*** Running python tests..."
|
||||||
@python tests/run_tests.py -q
|
@python tests/run_tests.py -q
|
||||||
|
|
||||||
|
test-local:
|
||||||
|
@echo "*** boostrapping local test environment..."
|
||||||
|
export ${LINK_FIX}=`pwd`/src:${${LINK_FIX}} && \
|
||||||
|
export PYTHONPATH=`pwd`/bindings/python/:${PYTHONPATH} && \
|
||||||
|
export MAPNIK_FONT_DIRECTORY=`pwd`/fonts/dejavu-fonts-ttf-2.33/ttf/ && \
|
||||||
|
export MAPNIK_INPUT_PLUGINS_DIRECTORY=`pwd`/plugins/input/ && \
|
||||||
|
make test
|
||||||
|
|
||||||
demo:
|
demo:
|
||||||
@echo "*** Running rundemo.cpp…"
|
@echo "*** Running rundemo.cpp…"
|
||||||
cd demo/c++; ./rundemo `mapnik-config --prefix`/lib/mapnik
|
cd demo/c++; ./rundemo `mapnik-config --prefix`/lib/mapnik
|
||||||
|
|
Loading…
Add table
Reference in a new issue