test script looping through test files
parent
122c759f57
commit
9ea0677d16
|
@ -68,7 +68,11 @@ check_imagemagick
|
||||||
|
|
||||||
mkdir -p .testing
|
mkdir -p .testing
|
||||||
|
|
||||||
# TODO: for-loop
|
for TEST in $1*.tex; do
|
||||||
pdflatex -output-directory=.testing -interaction=batchmode -halt-on-error *.tex 2>&1 > /dev/null
|
echo "Testing: ${TEST%.*}"
|
||||||
compare -metric DSSIM -colorspace RGB .testing/*.pdf *_expected.pdf .testing/*_diff.png
|
pdflatex -output-directory=.testing -interaction=batchmode -halt-on-error $TEST 2>&1 > /dev/null
|
||||||
|
compare -metric DSSIM -colorspace RGB .testing/${TEST%.*}.pdf ${TEST%.*}_expected.pdf .testing/${TEST%.*}_diff.png
|
||||||
|
echo "% difference"
|
||||||
|
done
|
||||||
|
|
||||||
|
log_n "tests passed!"
|
||||||
|
|
Loading…
Reference in New Issue