#! /bin/sh -vx # Copyright 2017-2018 Karl Berry # Copyright 2015 Peter Breitenlohner # You may freely use, modify and/or distribute this file. LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE echo && echo "*** msxlint --help" ./msxlint --help || exit 1 echo && echo "*** msxlint --version" ./msxlint --version || exit 1 : ${testsrc:=$srcdir/tests} echo && echo "*** msxlint -d tests/badtest" ./msxlint -d $testsrc/badtest && exit 1 echo && echo "*** msxlint tests/linttest >linttest.out1" ./msxlint $testsrc/linttest | sed '/^This/,/^Processing/d' >linttest.out1 || exit 1 echo && echo "*** diff tests/linttest.out linttest.out1" diff $testsrc/linttest.out linttest.out1 || exit 1 echo && echo "*** cat tests/linttest.tex | msxlint >linttest.out2" cat $testsrc/linttest.tex | ./msxlint | sed '/^This/,/^Processing/d' >linttest.out2 || exit 1 echo && echo "*** diff tests/linttest.out linttest.out2" diff $testsrc/linttest.out linttest.out2 || exit 1