[cvs] bogofilter/tests/bogoutil run.sh,1.7,1.7.8.1
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2003-01-15 03:27:47
|
Update of /cvsroot/bogofilter/bogofilter/tests/bogoutil In directory sc8-pr-cvs1:/tmp/cvs-serv27060/bogoutil Modified Files: Tag: bf-092-database-1 run.sh Log Message: Feature: If $BF_TESTDIR is defined, use that as the parent to create temporary directories for our tests. Useful with ramdisks, try mount -t tmpfs -o size=32m null /mnt on Linux or mount_mfs -s65536 -onosuid,nodev /dev/da0s1b /mnt on FreeBSD. (Either will allocate a RAM disk that loses its contents on unmount on /mnt that has a capacity of 32 MBytes). BF_TESTDIR defaults to ".". Index: run.sh =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/tests/bogoutil/run.sh,v retrieving revision 1.7 retrieving revision 1.7.8.1 diff -u -d -r1.7 -r1.7.8.1 --- run.sh 15 Dec 2002 17:09:17 -0000 1.7 +++ run.sh 15 Jan 2003 03:27:44 -0000 1.7.8.1 @@ -12,7 +12,7 @@ yday="-y 0" while : ; do - tdir=./checks.$$.`date +"%Y%m%dT%H%M%S"` + tdir=${BF_TESTDIR=.}/checks.$$.`date +"%Y%m%dT%H%M%S"` mkdir $tdir && break sleep 1 done |