Rearrange into other veriables, and include run-markup-tests.sh.

* tests/Makefile.am (TESTS): Rearrange into other veriables, and
include run-markup-tests.sh.
(TESTS_ENVIRONMENT): New.  Pass $srcdir to tests.
(noinst_PROGRAMS): Rename to ...
(check_PROGRAMS): ... this.  'automake' ensures that these are
built before running the tests.
* tests/run-markup-tests.sh: Support $srcdir != $builddir.
This commit is contained in:
Raja R Harinath
2000-12-08 21:04:52 +00:00
parent dd087e5aaa
commit 0b6e1350e1
10 changed files with 96 additions and 9 deletions

View File

@@ -6,14 +6,14 @@ fail ()
exit 1
}
for I in markups/fail-*.gmarkup; do
for I in $srcdir/markups/fail-*.gmarkup; do
echo "Parsing $I, should fail"
./markup-test $I > /dev/null && fail "failed to generate error on $I"
done
for I in markups/valid-*.gmarkup; do
for I in $srcdir/markups/valid-*.gmarkup; do
echo "Parsing $I, should succeed"
./markup-test $I > /dev/null || fail "failed on $I"
done
echo "All tests passed."
echo "All tests passed."