reduced resolution for pdftoppm conversion and fixed array handling for POSIX shell
parent
c44553d7ad
commit
9f72df2b64
8
build.sh
8
build.sh
|
@ -128,8 +128,8 @@ sedi () {
|
|||
check_path() {
|
||||
# test for project specific files
|
||||
STATUS=0
|
||||
FILES=(doc/tikz-trackschematic-documentation.sty src/tikz-trackschematic.sty test/turnout.tex)
|
||||
for FILE in ${FILES[@]}; do
|
||||
set -- doc/tikz-trackschematic-documentation.sty src/tikz-trackschematic.sty test/turnout.tex
|
||||
for FILE in "$@"; do
|
||||
if [ ! -e $FILE ]; then
|
||||
STATUS=1
|
||||
fi
|
||||
|
@ -641,8 +641,8 @@ run_test_cases() {
|
|||
# use 'pdftoppm' convert the pdf to png
|
||||
# then use 'compare' for comparison without converting
|
||||
# -> this is slower!
|
||||
pdftoppm -png -rx 600 -ry 600 .tex/${NAME}.pdf .tex/${NAME}
|
||||
pdftoppm -png -rx 600 -ry 600 ${NAME}_expected.pdf .tex/${NAME}_expected
|
||||
pdftoppm -png -rx 144 -ry 144 .tex/${NAME}.pdf .tex/${NAME}
|
||||
pdftoppm -png -rx 144 -ry 144 ${NAME}_expected.pdf .tex/${NAME}_expected
|
||||
compare -metric RMSE -colorspace RGB .tex/${NAME}-1.png .tex/${NAME}_expected-1.png NULL: >> /dev/null 2>&1 || EXIT_CODE=1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue