tests/check-gendoc
author Maciej Fijalkowski <fijall@gmail.com>
Wed, 13 Jul 2016 09:36:24 +0200
changeset 29539 666832b9e154
parent 28809 7a1ad08b9ff5
child 41015 69c99898a48f
permissions -rwxr-xr-x
bdiff: use ssize_t in favor of Py_ssize_t in cpython-unaware locations This function and struct will be exposed via cffi, so we need to remove the cpython API dependency they currently have.

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