diff options
author | Youngbok Shin <youngb.shin@samsung.com> | 2018-04-03 14:01:34 +0900 |
---|---|---|
committer | Youngbok Shin <youngb.shin@samsung.com> | 2018-04-03 14:01:34 +0900 |
commit | 1c272a48507bb3c7905aa30d8bf0d092b474f781 (patch) | |
tree | ba3189af507d7357414e13ec3c4351cafdd2aea4 /test/shaping/run-tests.sh | |
parent | e3a9d0d2fe726180a0456893d22d4aaa3ddb8931 (diff) | |
download | harfbuzz-1c272a48507bb3c7905aa30d8bf0d092b474f781.tar.gz harfbuzz-1c272a48507bb3c7905aa30d8bf0d092b474f781.tar.bz2 harfbuzz-1c272a48507bb3c7905aa30d8bf0d092b474f781.zip |
Imported Upstream version 1.7.6upstream/1.7.6
Diffstat (limited to 'test/shaping/run-tests.sh')
-rwxr-xr-x | test/shaping/run-tests.sh | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/shaping/run-tests.sh b/test/shaping/run-tests.sh deleted file mode 100755 index 021c6f8..0000000 --- a/test/shaping/run-tests.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh - -test "x$srcdir" = x && srcdir=. -test "x$builddir" = x && builddir=. -test "x$top_builddir" = x && top_builddir=../.. - -hb_shape=$top_builddir/util/hb-shape$EXEEXT - -fails=0 - -reference=false -if test "x$1" = x--reference; then - reference=true - shift -fi - -if test $# = 0; then - set /dev/stdin -fi - -for f in "$@"; do - $reference || echo "Running tests in $f" - while IFS=: 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 - echo "hb-shape failed." >&2 - fails=$((fails+1)) - continue - fi - if $reference; then - echo "$fontfile:$options:$unicodes:$glyphs" - continue - fi - if ! test "x$glyphs" = "x$glyphs_expected"; then - echo "Actual: $glyphs" >&2 - echo "Expected: $glyphs_expected" >&2 - fails=$((fails+1)) - fi - done < "$f" -done - -if test $fails != 0; then - $reference || echo "$fails tests failed." - exit 1 -else - $reference || echo "All tests passed." -fi |