tests/check-gendoc
changeset 28809 7a1ad08b9ff5
parent 27733 3d1baa702d1a
child 41005 69c99898a48f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/check-gendoc	Wed Jan 06 20:45:50 2016 +0000
@@ -0,0 +1,11 @@
+#!/bin/sh
+HGENCODING=UTF-8
+export HGENCODING
+
+echo ".. -*- coding: utf-8 -*-" > gendoc.txt
+echo "" >> gendoc.txt
+LANGUAGE=$1 python "$TESTDIR/../doc/gendoc.py" >> gendoc.txt 2> /dev/null || exit
+
+echo "checking for parse errors"
+python "$TESTDIR/../doc/docchecker" gendoc.txt
+python "$TESTDIR/../doc/runrst" html gendoc.txt /dev/null