summaryrefslogtreecommitdiffstats
path: root/debian/tests/sphinx-doc
blob: e86b74df42ad6608f0d36aadebee7f290a2b0125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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