6415.6.20
by Leonard Richardson
Added wadllib test. |
1 |
PYTHON_VERSION=2.4 |
2 |
PYTHON=python${PYTHON_VERSION} |
|
3 |
# Not all packages have a working Makefile. Work around this by hardcoding
|
|
4 |
# the ones we test. If we fix them all to have EITHER a good makefile
|
|
5 |
# (build and check targets work), or no makefile we can reenable auto
|
|
6 |
# detection.
|
|
8677.1.1
by Stuart Bishop
Revert r8677 (Attempt to move storm from buildout to sourcecode) |
7 |
build_dirs:=bzr cscvs dulwich lazr-js lsprof pygettextpo pygpgme storm twisted zope |
6415.6.20
by Leonard Richardson
Added wadllib test. |
8 |
test_dirs:=bzr cscvs pygettextpo storm twisted zope |
9 |
||
10 |
STORM_TESTDB = storm_test |
|
11 |
||
12 |
TEST_ENV_VARS = \ |
|
13 |
PYTHON=$(PYTHON) \ |
|
14 |
PYTHON_VERSION=$(PYTHON_VERSION) \ |
|
15 |
STORM_POSTGRES_URI=postgres:$(STORM_TESTDB) \ |
|
16 |
STORM_POSTGRES_HOST_URI=postgres://localhost/$(STORM_TESTDB) \ |
|
17 |
STORM_MYSQL_URI= \ |
|
18 |
STORM_MYSQL_HOST_URI= |
|
19 |
||
20 |
all: |
|
21 |
||
22 |
check: build storm_testdb |
|
23 |
@ for subdir in ${test_dirs}; do \ |
|
24 |
$(MAKE) -C $$subdir check $(TEST_ENV_VARS) || exit $$?;\ |
|
25 |
done
|
|
26 |
||
27 |
build: |
|
28 |
@ for subdir in ${build_dirs}; do\ |
|
29 |
if [ -e $$subdir/Makefile ]; then\
|
|
30 |
$(MAKE) -C $$subdir $(TEST_ENV_VARS) || exit $$?;\
|
|
31 |
fi;\
|
|
32 |
done
|
|
33 |
||
34 |
# Storm's test suite expects the test database to exist before the
|
|
35 |
# test suite is run.
|
|
36 |
storm_testdb: |
|
37 |
@echo "* Creating $(STORM_TESTDB)" |
|
38 |
@if psql -l | grep -q " $(STORM_TESTDB) "; then \ |
|
39 |
dropdb $(STORM_TESTDB) >/dev/null; \ |
|
40 |
fi
|
|
41 |
createdb $(STORM_TESTDB) |
|
42 |
||
8002.1.4
by Francis J. Lacoste
Add check_sourcecode_merge target to run tests when merging onto sourcecode. |
43 |
.PHONY: check all build storm_testdb |