diff options
Diffstat (limited to '')
-rw-r--r-- | debian/tests/control | 25 | ||||
-rwxr-xr-x | debian/tests/python3-sphinx | 10 | ||||
-rw-r--r-- | debian/tests/sphinx-doc | 20 |
3 files changed, 55 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..9216e3b --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,25 @@ +Tests: python3-sphinx +Depends: dvipng, + fonts-freefont-otf, + graphviz, + imagemagick-6.q16, + librsvg2-bin, + python3-all, + 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: gir1.2-webkit-6.0, python3-gi, sphinx-doc, xauth, xvfb +Restrictions: allow-stderr, isolation-machine 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..e017fd9 --- /dev/null +++ b/debian/tests/sphinx-doc @@ -0,0 +1,20 @@ +#!/bin/sh +set -e -u + +export GTK_A11Y=none + +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 |