]>
git.wh0rd.org - fontconfig.git/blob - test/run-test.sh
8b817c084a39dc21785d7bf01250c35bdeb326a0
2 TESTDIR
=${srcdir-`pwd`}
5 CACHEFILE
=`pwd`/fonts.cache
6 CACHEDIR
=`pwd`/cache.dir
10 FCLIST
=..
/fc-list
/fc-list
11 FCCACHE
=..
/fc-cache
/fc-cache
13 FONT1
=$TESTDIR/4x6.pcf
14 FONT2
=$TESTDIR/8x16.pcf
17 $FCLIST - family pixelsize |
sort > out
19 $FCLIST - family pixelsize |
sort >> out
21 $FCLIST - family pixelsize |
sort >> out
22 tr -d '\015' <out
>out.tmp
; mv out.tmp out
23 if cmp out
$TESTDIR/out.expected
> /dev
/null
; then : ; else
24 echo "*** Test failed: $TEST"
25 echo "*** output is in 'out', expected output in 'out.expected'"
39 test x
$VERBOSE = x ||
echo Running
: $TEST
42 sed "s!@FONTDIR@!$FONTDIR!
43 s!@CACHEFILE@!$CACHEFILE!
44 s!@CACHEDIR@!$CACHEDIR!" < $TESTDIR/fonts.conf.
in > fonts.conf
46 FONTCONFIG_FILE
=`pwd`/fonts.conf
47 export FONTCONFIG_FILE
51 cp $FONT1 $FONT2 $FONTDIR
54 dotest
"With a subdir"
56 cp $FONT1 $FONT2 $FONTDIR
60 dotest
"Subdir with a cache file"
63 cp $FONT1 $FONT2 $FONTDIR/a
67 dotest
"Complicated directory structure"
74 cp $FONT2 $FONTDIR/b
/a
77 dotest
"Subdir with an out-of-date cache file"
82 cp $FONT1 $FONT2 $FONTDIR/a
85 dotest
"Dir with an out-of-date cache file"
94 rm -rf $FONTDIR $CACHEFILE $CACHEDIR $FONTCONFIG_FILE out