~launchpad-pqm/launchpad/devel

1746 by Canonical.com Patch Queue Manager
[r=jamesh] Simple database restoration script and sampledata fixes
1
PYTHON_VERSION=2.4
2
PYTHON=python${PYTHON_VERSION}
2731 by Canonical.com Patch Queue Manager
Disable autodetection of sourcecode/projects-to-test due to Makefilefiles not working in all cases.
3
# Not all packages have a working Makefile. Work around this by hardcoding the ones we test.
4
# If we fix them all to have EITHER a good makefile (build and check targets work), or no makefile
5
# we can reenable auto detection.
6
test_dirs:=buildbot  cscvs  gnarly  pybaz  pygettextpo  pyme  pytz  sqlobject  zope
7
# test_dirs:=$(shell find . -maxdepth 1 -mindepth 1 -name ".arch-ids" -prune -o -type d -print | grep -v pyarch)
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
8
9
all:
10
11
check: build
63.1.90 by Robert Collins
add pybaz link, and reenable test suites for buildbot/cscvs etc
12
	@ for subdir in ${test_dirs}; do \
1746 by Canonical.com Patch Queue Manager
[r=jamesh] Simple database restoration script and sampledata fixes
13
		$(MAKE) -C $$subdir check \
14
		PYTHON=${PYTHON} PYTHON_VERSION=${PYTHON_VERSION} || exit $$?;\
63.1.90 by Robert Collins
add pybaz link, and reenable test suites for buildbot/cscvs etc
15
	done
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
16
17
build:
18
	@ for subdir in ${test_dirs}; do\
19
		if [ -e $$subdir/Makefile ]; then\
1746 by Canonical.com Patch Queue Manager
[r=jamesh] Simple database restoration script and sampledata fixes
20
			$(MAKE) -C $$subdir \
21
			PYTHON=${PYTHON} PYTHON_VERSION=${PYTHON_VERSION} \
22
			       || exit $$?;\
1102 by Canonical.com Patch Queue Manager
Lucille had some XXXs which should have been NOTEs
23
		fi\
24
	done
25
26
.PHONY: check all build
27
28