[test] Run shaping tests with both ot and ft funcs
This commit is contained in:
parent
70137e2b4b
commit
f1245013bf
|
@ -27,18 +27,29 @@ for f in "$@"; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
$reference || echo "hb-shape $fontfile $options --unicodes $unicodes"
|
$reference || echo "hb-shape $fontfile $options --unicodes $unicodes"
|
||||||
glyphs=`$hb_shape "$srcdir/$fontfile" $options --unicodes "$unicodes"`
|
glyphs1=`$hb_shape --font-funcs=ft "$srcdir/$fontfile" $options --unicodes "$unicodes"`
|
||||||
if test $? != 0; then
|
if test $? != 0; then
|
||||||
echo "hb-shape failed." >&2
|
echo "hb-shape --font-funcs=ft failed." >&2
|
||||||
fails=$((fails+1))
|
fails=$((fails+1))
|
||||||
#continue
|
#continue
|
||||||
fi
|
fi
|
||||||
|
glyphs2=`$hb_shape --font-funcs=ot "$srcdir/$fontfile" $options --unicodes "$unicodes"`
|
||||||
|
if test $? != 0; then
|
||||||
|
echo "hb-shape --font-funcs=ot failed." >&2
|
||||||
|
fails=$((fails+1))
|
||||||
|
#continue
|
||||||
|
fi
|
||||||
|
if ! test "x$glyphs1" = "x$glyphs2"; then
|
||||||
|
echo "FT funcs: $glyphs1" >&2
|
||||||
|
echo "OT funcs: $glyphs2" >&2
|
||||||
|
fails=$((fails+1))
|
||||||
|
fi
|
||||||
if $reference; then
|
if $reference; then
|
||||||
echo "$fontfile:$options:$unicodes:$glyphs"
|
echo "$fontfile:$options:$unicodes:$glyphs1"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if ! test "x$glyphs" = "x$glyphs_expected"; then
|
if ! test "x$glyphs1" = "x$glyphs_expected"; then
|
||||||
echo "Actual: $glyphs" >&2
|
echo "Actual: $glyphs1" >&2
|
||||||
echo "Expected: $glyphs_expected" >&2
|
echo "Expected: $glyphs_expected" >&2
|
||||||
fails=$((fails+1))
|
fails=$((fails+1))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue