mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
19 lines
363 B
Bash
19 lines
363 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
fail ()
|
||
|
{
|
||
|
echo "Test failed: $*"
|
||
|
exit 1
|
||
|
}
|
||
|
|
||
|
for I in 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
|
||
|
echo "Parsing $I, should succeed"
|
||
|
./markup-test $I > /dev/null || fail "failed on $I"
|
||
|
done
|
||
|
|
||
|
echo "All tests passed."
|