glib/tests/run-markup-tests.sh

19 lines
363 B
Bash
Raw Normal View History

#! /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."