Debian Codegraph @

utils/m-tx/mtx-src/mtx.test

raw
1 #! /bin/sh -vx
2
3 # Copyright 2021 Bob Tennent <[email protected]>
4 # You may freely use, modify and/or distribute this file.
5
6 rm -f mozart*
7 if test -r "$srcdir/tests/mozart.mtx"; then
8 : # standalone mtx
9 elif test -r "$srcdir/mtx-src/tests/mozart.mtx"; then
10 srcdir=$srcdir/mtx-src # in TL
11 else
12 echo "$0: cannot find tests/mozart.mtx" >&2
13 exit 1
14 fi
15
16
17 cp "$srcdir/tests/mozart.mtx" . || exit 1
18
19 set -x
20
21 ./prepmx mozart \
22 && diff mozart.pmx $srcdir/tests/mozart.pmx \
23 || exit 1
24
25 exit 0