summaryrefslogtreecommitdiff
path: root/lib/testtools/Makefile
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-31 04:19:36 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 04:19:36 +0200
commit6897be747594e385ee032ac1409289ce2d208548 (patch)
treef07c00e18c920b949988a8a2b6058146aad21378 /lib/testtools/Makefile
parent5f3fcf7a7773737fd87c8ff5530fae2286e88927 (diff)
downloadsamba-6897be747594e385ee032ac1409289ce2d208548.tar.gz
samba-6897be747594e385ee032ac1409289ce2d208548.tar.bz2
samba-6897be747594e385ee032ac1409289ce2d208548.zip
testtools: Fix included testtools, for systems that don't have it.
Diffstat (limited to 'lib/testtools/Makefile')
-rw-r--r--lib/testtools/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/testtools/Makefile b/lib/testtools/Makefile
new file mode 100644
index 0000000000..5e232e3394
--- /dev/null
+++ b/lib/testtools/Makefile
@@ -0,0 +1,28 @@
+# See README for copyright and licensing details.
+
+PYTHON=python
+SOURCES=$(shell find testtools -name "*.py")
+
+check:
+ PYTHONPATH=$(PWD) $(PYTHON) -m testtools.run testtools.tests.test_suite
+
+TAGS: ${SOURCES}
+ ctags -e -R testtools/
+
+tags: ${SOURCES}
+ ctags -R testtools/
+
+clean:
+ rm -f TAGS tags
+ find testtools -name "*.pyc" -exec rm '{}' \;
+
+release:
+ ./setup.py sdist upload --sign
+
+apidocs:
+ pydoctor --make-html --add-package testtools \
+ --docformat=restructuredtext --project-name=testtools \
+ --project-url=https://launchpad.net/testtools
+
+
+.PHONY: check clean release apidocs