diff options
Diffstat (limited to 'support/chklref/test/Makefile')
-rw-r--r-- | support/chklref/test/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/support/chklref/test/Makefile b/support/chklref/test/Makefile new file mode 100644 index 0000000000..8050ea9098 --- /dev/null +++ b/support/chklref/test/Makefile @@ -0,0 +1,22 @@ +TESTFILES=test2 chklreftest tof + +all: test clean + +test: + for f in ${TESTFILES}; \ + do \ + chklref -q "$$f.tex" | tee "${TMPDIR}/$$f.txt"; \ + if test -f "$$f-solution.txt"; then\ + if diff -q "$$f-solution.txt" "${TMPDIR}/$$f.txt"; then\ + echo "-- Check $$f.tex OK";\ + else\ + echo "-- Check $$f.tex FAIL";\ + fi;\ + fi;\ + done + +clean: + @echo "Cleaning all..." + @\rm -f *.aux *.toc *.out *~ *.blg *.log *.dvi *.tex.chk + +distclean: clean |