mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
0b6e1350e1
* 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.
20 lines
380 B
Bash
Executable File
20 lines
380 B
Bash
Executable File
#! /bin/sh
|
|
|
|
fail ()
|
|
{
|
|
echo "Test failed: $*"
|
|
exit 1
|
|
}
|
|
|
|
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 $srcdir/markups/valid-*.gmarkup; do
|
|
echo "Parsing $I, should succeed"
|
|
./markup-test $I > /dev/null || fail "failed on $I"
|
|
done
|
|
|
|
echo "All tests passed."
|