| 1 |
#!/bin/sh |
| 2 |
# SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later |
| 3 |
# Copyright 2012, SIL International, All rights reserved. |
| 4 |
|
| 5 |
TESTSDIR=$(dirname $0) |
| 6 |
FONT=$1 |
| 7 |
TEXT=$2 |
| 8 |
shift 2 |
| 9 |
RTL=$1 |
| 10 |
if [ "z$RTL" = "z-r" ] ; then |
| 11 |
shift ; |
| 12 |
else |
| 13 |
RTL= ; |
| 14 |
fi |
| 15 |
NLIM=$1 |
| 16 |
if [ "z$NLIM" = "z--nolimit" ] ; then |
| 17 |
shift ; |
| 18 |
NLIM="" ; |
| 19 |
else |
| 20 |
NLIM="-t 10 --memory=200"; |
| 21 |
fi |
| 22 |
${TESTSDIR}/fuzztest \ |
| 23 |
-l fuzzfont-${FONT##**/}-${TEXT##**/}.log \ |
| 24 |
-f ${TESTSDIR}/fonts/${FONT}.ttf \ |
| 25 |
${NLIM} -s 60 \ |
| 26 |
--include=required,graphite \ |
| 27 |
--exclude=fontdir,opentype,volt,advtypo,post,glyf \ |
| 28 |
"$@" -- comparerenderer/comparerenderer \ |
| 29 |
-q -s 12 -n ${RTL} \ |
| 30 |
-f {} -t ${TESTSDIR}/texts/${TEXT}.txt |