| 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 Telemann* |
| 7 |
|
| 8 |
if test -r "$srcdir/tests/Telemann.xml"; then |
| 9 |
: # standalone xml2pmx |
| 10 |
elif test -r "$srcdir/xml2pmx-src/tests/Telemann.xml"; then |
| 11 |
srcdir=$srcdir/xml2pmx-src # in TL |
| 12 |
else |
| 13 |
echo "$0: cannot find tests/Telemann.xml" >&2 |
| 14 |
exit 1 |
| 15 |
fi |
| 16 |
|
| 17 |
cp "$srcdir/tests/Telemann.xml" . || exit 1 |
| 18 |
|
| 19 |
./xml2pmx Telemann.xml Telemann.pmx \ |
| 20 |
&& diff Telemann.pmx "$srcdir/tests/Telemann.pmx" \ |
| 21 |
|| exit 1 |
| 22 |
exit 0 |