~canonical-launchpad-branches/launchpad-buildd/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 2009 Canonical Ltd.  This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).

all: deb

src: clean
	dpkg-buildpackage -rfakeroot -uc -us -S

deb: clean
	dpkg-buildpackage -rfakeroot -uc -us

clean:
	fakeroot debian/rules clean

realclean:
	rm -f ../launchpad-buildd*tar.gz
	rm -f ../launchpad-buildd*dsc
	rm -f ../launchpad-buildd*deb
	rm -f ../launchpad-buildd*changes

.PHONY: all clean deb

PYTHON=python
# NB: for this to pass, you must have txfixtures on your pythonpath already.
# txfixtures is not packaged so this is not enforced as a build time
# dependency.  In practice you probably just want to run this with
# PYTHON=bin/py from a Launchpad checkout.
check:
	PYTHONPATH=$(PWD):$(PYTHONPATH) $(PYTHON) -m testtools.run -v \
		   lpbuildd.pottery.tests.test_generate_translation_templates \
		   lpbuildd.pottery.tests.test_intltool \
		   lpbuildd.tests.test_binarypackage \
		   lpbuildd.tests.test_buildd_slave \
		   lpbuildd.tests.test_buildrecipe \
		   lpbuildd.tests.test_check_implicit_pointer_functions \
		   lpbuildd.tests.test_debian \
		   lpbuildd.tests.test_harness \
		   lpbuildd.tests.test_livefs \
		   lpbuildd.tests.test_snap \
		   lpbuildd.tests.test_sourcepackagerecipe \
		   lpbuildd.tests.test_translationtemplatesbuildmanager