summaryrefslogtreecommitdiff
path: root/test/run-test.sh
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2006-08-04 16:13:00 +0000
committerPatrick Lam <plam@MIT.EDU>2006-08-04 16:13:00 +0000
commit7410e40bd93beb4ab1a577d084112413431cede2 (patch)
tree036eeeccf20ddd740b3c3a18e169951f5f45abdf /test/run-test.sh
parent62a4a8459adaf26833e1dad0ee96ea5a4b8c3d54 (diff)
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.
Diffstat (limited to 'test/run-test.sh')
-rw-r--r--test/run-test.sh6
1 files changed, 4 insertions, 2 deletions
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