summaryrefslogtreecommitdiffstats
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/control11
-rw-r--r--debian/tests/unittests14
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..eb520e3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,11 @@
+Tests: unittests
+Depends: python3-all,
+ python3-bs4,
+ python3-markdown-it,
+ python3-mdit-py-plugins,
+ python3-pytest,
+ python3-pytest-cov,
+ python3-pytest-regressions,
+ python3-sphinx,
+ python3-typing-extensions,
+ @,
diff --git a/debian/tests/unittests b/debian/tests/unittests
new file mode 100644
index 0000000..a1b2b42
--- /dev/null
+++ b/debian/tests/unittests
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -efu
+
+pys="$(py3versions -s 2> /dev/null)"
+
+
+cp -a tests "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP"
+
+
+for py in $pys; do
+ echo "=== $py ==="
+ $py -m pytest -k 'not test_extended_syntaxes and not test_html_to_nodes and not test_html_ast and not test_html_round_trip and not test_basic and not test_syntax_elements and not test_docutils_roles and not test_docutils_directives and not test_syntax_extensions and not test_syntax_elements and not test_tables and not test_directive_options and not test_sphinx_directives and not test_sphinx_roles and not test_dollarmath and not test_amsmath and not test_containers and not test_evalrst_elements and not test_definition_lists and not test_render and not test_errors and not test_cmdline' --ignore=tests/test_renderers/test_fixtures_sphinx.py --ignore=tests/test_renderers/test_myst_refs.py --ignore=tests/test_sphinx/test_sphinx_builds.py 2>&1
+done