]>
git.wh0rd.org - fontconfig.git/blob - test/run-test.sh
3 CACHEFILE
=`pwd`/fonts.cache
7 FCLIST
=..
/fc-list
/fc-list
8 FCCACHE
=..
/fc-cache
/fc-cache
11 $FCLIST - family pixelsize |
sort > out
13 $FCLIST - family pixelsize |
sort >> out
15 $FCLIST - family pixelsize |
sort >> out
16 if cmp out out.expected
> /dev
/null
; then : ; else
17 echo "*** Test failed: $TEST"
18 echo "*** output is in 'out', expected output in 'out.expected'"
31 test x
$VERBOSE = x ||
echo Running
: $TEST
34 sed "s!@FONTDIR@!$FONTDIR!
35 s!@CACHEFILE@!$CACHEFILE!" < fonts.conf.
in > fonts.conf
37 FONTCONFIG_FILE
=`pwd`/fonts.conf
38 export FONTCONFIG_FILE
42 cp 4x6.pcf
8x16.pcf
$FONTDIR
45 dotest
"With a subdir"
47 cp 4x6.pcf
8x16.pcf
$FONTDIR
51 dotest
"Subdir with a cache file"
54 cp 4x6.pcf
8x16.pcf
$FONTDIR/a
58 dotest
"Complicated directory structure"
65 cp 8x16.pcf
$FONTDIR/b
/a
68 dotest
"Subdir with an out-of-date cache file"
73 cp 4x6.pcf
8x16.pcf
$FONTDIR/a
76 dotest
"Dir with an out-of-date cache file"
82 cp 8x16.pcf
$FONTDIR/a
85 rm -rf $FONTDIR $CACHEFILE $FONTCONFIG_FILE out