summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control27
-rwxr-xr-xdebian/tests/python3-sphinx10
-rw-r--r--debian/tests/sphinx-doc18
3 files changed, 55 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..3e6c688
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,27 @@
+Tests: python3-sphinx
+Depends: dvipng,
+ fonts-freefont-otf,
+ graphviz,
+ imagemagick-6.q16,
+ librsvg2-bin,
+ python3-all,
+ python3-filelock,
+ python3-html5lib,
+ python3-pytest,
+ python3-setuptools,
+ python3-sphinx,
+ python3-sphinxcontrib.websupport,
+ python3-sqlalchemy (>= 0.9),
+ python3-whoosh,
+ python3-xapian,
+ tex-gyre,
+ texinfo,
+ texlive-fonts-recommended,
+ texlive-latex-extra,
+ texlive-luatex,
+ texlive-xetex
+
+Tests: sphinx-doc
+Depends: python3-pyqt6.qtwebengine, sphinx-doc, xauth, xvfb
+Restrictions: allow-stderr
+Architecture: amd64 i386
diff --git a/debian/tests/python3-sphinx b/debian/tests/python3-sphinx
new file mode 100755
index 0000000..581df90
--- /dev/null
+++ b/debian/tests/python3-sphinx
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e -u
+cp -r tests "$AUTOPKGTEST_TMP/"
+cd "$AUTOPKGTEST_TMP"
+py3versions -s \
+| tr ' ' '\n' \
+| xargs -I {} env PYTHONWARNINGS=d PYTHONHASHSEED=random {} \
+ -m pytest -vv 2>&1
+
+# vim:ts=4 sw=4 et
diff --git a/debian/tests/sphinx-doc b/debian/tests/sphinx-doc
new file mode 100644
index 0000000..e86b74d
--- /dev/null
+++ b/debian/tests/sphinx-doc
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -e -u
+
+cp -r debian/jstest "$AUTOPKGTEST_TMP/"
+cd "$AUTOPKGTEST_TMP"
+for format in rst html
+do
+ [ "$(readlink -f /usr/share/doc/python3-sphinx/$format)" = "$(readlink -f /usr/share/doc/sphinx-doc/$format)" ]
+done
+run_js_tests='jstest/run-tests /usr/share/doc/sphinx-doc/html/'
+if [ -n "${DISPLAY:-}" ]
+then
+ $run_js_tests
+else
+ xvfb-run -a $run_js_tests
+fi
+
+# vim:ts=4 sw=4 et