tests/test-gendoc
author Steve Losh <steve@stevelosh.com>
Thu, 17 Sep 2009 22:30:45 -0400
changeset 9460 552c5a5a3502
parent 9446 57d682d7d2da
child 9485 7d6ac5d7917c
permissions -rwxr-xr-x
contrib/bash_completion: add tab completion for some bookmark commands
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