summaryrefslogtreecommitdiff
path: root/tests/root
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-09-13 09:45:59 +0000
committergeorg.brandl <devnull@localhost>2008-09-13 09:45:59 +0000
commitaba05cd9175def8b13b85262b0a70fe545b849f2 (patch)
tree9bd78d12dd1b69636d94316792697867dfd9a986 /tests/root
parent46fb6e148235735b0af07cbb8d101e39120fef42 (diff)
downloadsphinx-aba05cd9175def8b13b85262b0a70fe545b849f2.tar.gz
Add test for coverage builder and fix an AttributeError in it.
Diffstat (limited to 'tests/root')
-rw-r--r--tests/root/conf.py5
-rw-r--r--tests/root/special/api.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/root/conf.py b/tests/root/conf.py
index 5fbbe49b..f8142205 100644
--- a/tests/root/conf.py
+++ b/tests/root/conf.py
@@ -23,7 +23,7 @@ sys.path.append(os.path.abspath('.'))
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['ext', 'sphinx.ext.autodoc', 'sphinx.ext.jsmath']
+extensions = ['ext', 'sphinx.ext.autodoc', 'sphinx.ext.jsmath', 'sphinx.ext.coverage']
jsmath_path = 'dummy.js'
# Add any paths that contain templates here, relative to this directory.
@@ -172,6 +172,9 @@ latex_documents = [
value_from_conf_py = 84
+coverage_c_path = ['special/*.h']
+coverage_c_regexes = {'cfunction': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
+
def setup(app):
app.add_config_value('value_from_conf_py', 42, False)
diff --git a/tests/root/special/api.h b/tests/root/special/api.h
new file mode 100644
index 00000000..7c137e03
--- /dev/null
+++ b/tests/root/special/api.h
@@ -0,0 +1 @@
+PyAPI_FUNC(PyObject *) Py_SphinxTest();