Don't fail tests when gropdf isn't installed

This commit is contained in:
Přemysl Eric Janouch 2023-06-28 23:27:30 +02:00
parent 69b939c707
commit 3781aa8e85
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ inkscape --pipe --export-filename=tmp/cairo.pdf --export-pdf-version=1.4 \
<svg xmlns="http://www.w3.org/2000/svg"><text x="5" y="10">Hello</text></svg> <svg xmlns="http://www.w3.org/2000/svg"><text x="5" y="10">Hello</text></svg>
EOF EOF
date | tee tmp/lowriter.txt | groff -T pdf > tmp/groff.pdf || : date > tmp/lowriter.txt
if command -v gropdf >/dev/null
then groff -T pdf < tmp/lowriter.txt > tmp/groff.pdf
fi
lowriter --convert-to pdf tmp/lowriter.txt --outdir tmp >/dev/null || : lowriter --convert-to pdf tmp/lowriter.txt --outdir tmp >/dev/null || :
convert rose: tmp/imagemagick.pdf || : convert rose: tmp/imagemagick.pdf || :