add a test-local target to run tests without having to install - closes #1397

This commit is contained in:
Dane Springmeyer 2012-11-26 17:48:02 -08:00
parent 15b9fc3eef
commit c39c839452

View file

@ -1,3 +1,10 @@
UNAME := $(shell uname)
LINK_FIX=LD_LIBRARY_PATH
ifeq ($(UNAME), Darwin)
LINK_FIX=DYLD_LIBRARY_PATH
else
endif
all: mapnik
install:
@ -31,6 +38,14 @@ test:
@echo "*** Running python tests..."
@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:
@echo "*** Running rundemo.cpp…"
cd demo/c++; ./rundemo `mapnik-config --prefix`/lib/mapnik