~niemeyer/storm/postgres-local-paths

105.1.1 by James Henstridge
Add a makefile with the standard targets Launchpad expects for testing
1
PYTHON = python$(PYTHON_VERSION)
2
PYTHON_VERSION = 2.4
3
TESTDB = storm_test
4
5
all:
6
	@:
7
8
check:
9
	@echo "* Creating $(TESTDB)"
106 by Gustavo Niemeyer
Integrating Makefile from James [a=jamesh] [trivial].
10
	@if psql -l | grep -q " $(TESTDB) "; then \
105.1.1 by James Henstridge
Add a makefile with the standard targets Launchpad expects for testing
11
	    dropdb $(TESTDB) >/dev/null; \
12
	fi
13
	createdb $(TESTDB)
14
	STORM_POSTGRES_URI=postgres:$(TESTDB) $(PYTHON) test --verbose
15
16
.PHONY: all check