summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-06-05 08:58:43 +0000
committergeorg.brandl <devnull@localhost>2008-06-05 08:58:43 +0000
commit2ee86c0101c9c6a9e708fdcf344b21120a6d5db7 (patch)
tree817e7524f4f9c5b9caa7c4ce80af63d097cfdefa /tests/run.py
parent36235e91bccff3ccf0b800a63634167332fd86bc (diff)
downloadsphinx-2ee86c0101c9c6a9e708fdcf344b21120a6d5db7.tar.gz
Add a test suite skeleton, a first test for sphinx.config, and fix a bug in config.
Diffstat (limited to 'tests/run.py')
-rwxr-xr-xtests/run.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py
new file mode 100755
index 00000000..f67a3432
--- /dev/null
+++ b/tests/run.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""
+ Sphinx unit test driver
+ ~~~~~~~~~~~~~~~~~~~~~~~
+
+ This script runs the Sphinx unit test suite.
+
+ :copyright: 2008 by Georg Brandl.
+ :license: BSD.
+"""
+
+import sys
+from os import path
+
+# always test the sphinx package from this directory
+sys.path.insert(0, path.join(path.dirname(__file__), path.pardir))
+
+try:
+ import nose
+except ImportError:
+ print "The nose package is needed to run the Sphinx test suite."
+ sys.exit(1)
+
+print "Running Sphinx test suite..."
+nose.main()