view tests/check-gendoc @ 44615:78a8f65eacc8

run-tests: add --chg-debug flag to show chg debug output This has helped me a lot in debugging chg failures in tests.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 25 Mar 2020 13:20:08 +0530
parents 69c99898a48f
children
line wrap: on
line source

#!/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