From 7410e40bd93beb4ab1a577d084112413431cede2 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Fri, 4 Aug 2006 16:13:00 +0000 Subject: 2006-08-04 Keith Packard (keithp@keithp.com) reviewed by: plam Make cache directories configurable. Simplify and correct some code which deals with per-directory caches. --- test/fonts.conf.in | 1 + test/run-test.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/fonts.conf.in b/test/fonts.conf.in index 492e36fa..5ad85c9e 100644 --- a/test/fonts.conf.in +++ b/test/fonts.conf.in @@ -1,4 +1,5 @@ @FONTDIR@ @CACHEFILE@ +@CACHEDIR@ diff --git a/test/run-test.sh b/test/run-test.sh index 428503b3..8b817c08 100644 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -3,6 +3,7 @@ TESTDIR=${srcdir-`pwd`} FONTDIR=`pwd`/fonts CACHEFILE=`pwd`/fonts.cache +CACHEDIR=`pwd`/cache.dir ECHO=true @@ -39,7 +40,8 @@ dotest () { } sed "s!@FONTDIR@!$FONTDIR! -s!@CACHEFILE@!$CACHEFILE!" < $TESTDIR/fonts.conf.in > fonts.conf +s!@CACHEFILE@!$CACHEFILE! +s!@CACHEDIR@!$CACHEDIR!" < $TESTDIR/fonts.conf.in > fonts.conf FONTCONFIG_FILE=`pwd`/fonts.conf export FONTCONFIG_FILE @@ -89,4 +91,4 @@ mkdir $FONTDIR/a cp $FONT2 $FONTDIR/a check -rm -rf $FONTDIR $CACHEFILE $FONTCONFIG_FILE out +rm -rf $FONTDIR $CACHEFILE $CACHEDIR $FONTCONFIG_FILE out -- cgit v1.2.3