File: fuzzcomparerender

package info (click to toggle)
graphite2 1.3.14-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,588 kB
  • sloc: cpp: 14,738; cs: 1,998; python: 1,737; ansic: 1,673; perl: 184; xml: 123; sh: 104; makefile: 62
file content (28 lines) | stat: -rwxr-xr-x 579 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

TESTSDIR=$(dirname $0)
FONT=$1
TEXT=$2
shift 2
RTL=$1
if [ "z$RTL" = "z-r" ] ; then
    shift ;
else
    RTL= ;
fi
NLIM=$1
if [ "z$NLIM" = "z--nolimit" ] ; then
    shift ;
    NLIM="" ;
else
    NLIM="-t 10 --memory=200";
fi
${TESTSDIR}/fuzztest \
    -l fuzzfont-${FONT##**/}-${TEXT##**/}.log \
    -f ${TESTSDIR}/fonts/${FONT}.ttf \
    ${NLIM} -s 60 \
    --include=required,graphite \
    --exclude=fontdir,opentype,volt,advtypo,post,glyf \
    "$@" -- comparerenderer/comparerenderer \
        -q -s 12 -n ${RTL} \
        -f {} -t ${TESTSDIR}/texts/${TEXT}.txt