2 TESTDIR=${srcdir-`pwd`}
5 CACHEDIR=`pwd`/cache.dir
9 FCLIST=../fc-list/fc-list
10 FCCACHE=../fc-cache/fc-cache
12 FONT1=$TESTDIR/4x6.pcf
13 FONT2=$TESTDIR/8x16.pcf
16 $FCLIST - family pixelsize | sort > out
18 $FCLIST - family pixelsize | sort >> out
20 $FCLIST - family pixelsize | sort >> out
21 tr -d '\015' <out >out.tmp; mv out.tmp out
22 if cmp out $TESTDIR/out.expected > /dev/null ; then : ; else
23 echo "*** Test failed: $TEST"
24 echo "*** output is in 'out', expected output in 'out.expected'"
38 test x$VERBOSE = x || echo Running: $TEST
41 sed "s!@FONTDIR@!$FONTDIR!
42 s!@CACHEDIR@!$CACHEDIR!" < $TESTDIR/fonts.conf.in > fonts.conf
44 FONTCONFIG_FILE=`pwd`/fonts.conf
45 export FONTCONFIG_FILE
49 cp $FONT1 $FONT2 $FONTDIR
52 dotest "With a subdir"
54 cp $FONT1 $FONT2 $FONTDIR
58 dotest "Subdir with a cache file"
61 cp $FONT1 $FONT2 $FONTDIR/a
65 dotest "Complicated directory structure"
72 cp $FONT2 $FONTDIR/b/a
75 dotest "Subdir with an out-of-date cache file"
80 cp $FONT1 $FONT2 $FONTDIR/a
83 dotest "Dir with an out-of-date cache file"
92 rm -rf $FONTDIR $CACHEFILE $CACHEDIR $FONTCONFIG_FILE out