summaryrefslogtreecommitdiff
path: root/Build/source/texk/musixtnt/musixtnt-src/msxlint.test
blob: 9cd33d22c8f69a194d816125a8ad31c737554807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/sh -vx
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>
# Copyright 2015 Peter Breitenlohner <tex-live@tug.org>
# 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