[tests] Allow commenting out tests to be skipped

This commit is contained in:
Behdad Esfahbod 2016-02-24 15:50:33 +09:00
parent 7cfd6cc486
commit 56a84e8dd1
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ IFS=:
for f in "$@"; do
$reference || echo "Running tests in $f"
while read fontfile options unicodes glyphs_expected; do
if echo "$fontfile" | grep -q '^#'; then
$reference || echo "Skipping $fontfile:$unicodes"
continue
fi
$reference || echo "Testing $fontfile:$unicodes"
glyphs=`$srcdir/hb-unicode-encode "$unicodes" | $hb_shape $options "$srcdir/$fontfile"`
if test $? != 0; then