tests/test-gendoc
author Dirkjan Ochtman <dirkjan@ochtman.nl>
Tue, 15 Sep 2009 18:26:05 +0200
changeset 9453 de414835d140
parent 9446 57d682d7d2da
child 9485 7d6ac5d7917c
permissions -rwxr-xr-x
merge with mpm (temporarily undo qprev/qnext/qtop removal)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9446
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     1
#!/bin/sh
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     2
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     3
"$TESTDIR/hghave" rst2html || exit 80
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     4
RST2HTML=$(which rst2html 2> /dev/null || which rst2html.py)
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     5
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     6
echo "checking for syntax errors in gendoc.py"
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     7
python $TESTDIR/../doc/gendoc.py > gendoc.txt || exit
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     8
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
     9
# We run rst2html over the file without adding "--halt warning" to
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
    10
# make it report all errors instead of stopping on the first one.
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
    11
echo "checking for parse errors with rst2html"
57d682d7d2da test-gendoc: test documentation generation
Martin Geisler <mg@lazybytes.net>
parents:
diff changeset
    12
$RST2HTML gendoc.txt /dev/null