tests.texlive.context: check that the PDF has been created

This commit is contained in:
Vincenzo Mantova 2024-03-27 21:15:05 +00:00
parent 7ab4733846
commit 87216540ef

View file

@ -81,6 +81,14 @@ rec {
name = "texlive-test-context";
format = "context";
texLive = texliveConTeXt;
# check that the PDF has been created: we have hit cases of context
# failing with exit status 0 due to a misconfigured texlive
postTest = ''
if [[ ! -f "$name".pdf ]] ; then
echo "ConTeXt test failed: file '$name.pdf' not found"
exit 1
fi
'';
text = ''
\starttext
\startsection[title={ConTeXt test document}]