| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: devnag.test 45809 2017-11-15 00:36:56Z karl $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2013 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
failed= |
| 8 |
|
| 9 |
rm -f captions.dn examples.dn *.tex |
| 10 |
cp $srcdir/tests/captions.dn . |
| 11 |
cp $srcdir/tests/examples.dn . |
| 12 |
|
| 13 |
./devnag captions \ |
| 14 |
&& diff $srcdir/tests/captions.tex captions.tex \ |
| 15 |
&& echo "captions.tex tests OK" \ |
| 16 |
|| failed="$failed captions.tex" |
| 17 |
|
| 18 |
./devnag examples.dn \ |
| 19 |
&& diff $srcdir/tests/examples.tex examples.tex \ |
| 20 |
&& echo "examples.tex tests OK" \ |
| 21 |
|| failed="$failed examples.tex" |
| 22 |
|
| 23 |
./devnag $srcdir/tests/misspaal misspaal.tex \ |
| 24 |
&& diff $srcdir/tests/misspaal.tex misspaal.tex \ |
| 25 |
&& echo "misspaal.tex tests OK" \ |
| 26 |
|| failed="$failed misspaal.tex" |
| 27 |
|
| 28 |
./devnag $srcdir/tests/vedasample.dn vedasample.tex \ |
| 29 |
&& diff $srcdir/tests/vedasample.tex vedasample.tex \ |
| 30 |
&& echo "vedasample.tex tests OK" \ |
| 31 |
|| failed="$failed vedasample.tex" |
| 32 |
|
| 33 |
test -z "$failed" && exit 0 |
| 34 |
echo "failed tests:$failed" |
| 35 |
exit 1 |
| 36 |
|