psycopg2/Makefile
James Henstridge fc2b684843 * runtests.py: add a harness to run all the psycopg tests against
the version built by distutils.
2008-02-27 02:29:55 +00:00

16 lines
291 B
Makefile

PYTHON = python$(PYTHON_VERSION)
#PYTHON_VERSION = 2.4
TESTDB = psycopg2_test
all:
@:
check:
@echo "* Creating $(TESTDB)"
@if psql -l | grep -q " $(TESTDB) "; then \
dropdb $(TESTDB) >/dev/null; \
fi
createdb $(TESTDB)
PSYCOPG2_TESTDB=$(TESTDB) $(PYTHON) runtests.py --verbose