Line 0
Link Here
|
|
|
1 |
--- ./src/tests/t.maint 16 Sep 2005 20:57:29 -0000 1.32 |
2 |
+++ ./src/tests/t.maint 13 Nov 2005 16:45:48 -0000 1.33 |
3 |
@@ -36,10 +36,10 @@ |
4 |
echo initial: `$BOGOUTIL -d $WORDLIST | wc -l` > $OUT |
5 |
|
6 |
for cnt in 0 1 2 3 ; do |
7 |
- $BOGOUTIL -c $cnt -m $WORDLIST |
8 |
- echo "count $cnt ->" `$BOGOUTIL -d $WORDLIST | wc -l` >> $OUT |
9 |
+ $BOGOUTIL -C -c $cnt -m $WORDLIST |
10 |
+ echo "count $cnt ->" `$BOGOUTIL -C -d $WORDLIST | wc -l` >> $OUT |
11 |
if [ $verbose -ne 0 ]; then |
12 |
- $BOGOUTIL -d $WORDLIST > $OUT.$cnt |
13 |
+ $BOGOUTIL -C -d $WORDLIST > $OUT.$cnt |
14 |
fi |
15 |
done |
16 |
|
17 |
--- ./src/tests/t.regtest 16 Mar 2005 12:18:22 -0000 1.9 |
18 |
+++ ./src/tests/t.regtest 13 Nov 2005 16:45:48 -0000 1.10 |
19 |
@@ -30,10 +30,10 @@ |
20 |
fi |
21 |
|
22 |
if [ -f $BOGOFILTER_DIR/goodlist.${DB_EXT} ] ; then |
23 |
- g=`$BOGOUTIL -d $BOGOFILTER_DIR/goodlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/good.$T.out | wc -l` |
24 |
- s=`$BOGOUTIL -d $BOGOFILTER_DIR/spamlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/spam.$T.out | wc -l` |
25 |
+ g=`$BOGOUTIL -C -d $BOGOFILTER_DIR/goodlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/good.$T.out | wc -l` |
26 |
+ s=`$BOGOUTIL -C -d $BOGOFILTER_DIR/spamlist.${DB_EXT} | grep -v " 0 " | tee $TMPDIR/spam.$T.out | wc -l` |
27 |
else |
28 |
- $BOGOUTIL -d $BOGOFILTER_DIR/wordlist.${DB_EXT} > $TMPDIR/word.$T.out |
29 |
+ $BOGOUTIL -C -d $BOGOFILTER_DIR/wordlist.${DB_EXT} > $TMPDIR/word.$T.out |
30 |
g=`grep -v " 0$" < $TMPDIR/word.$T.out | tee $TMPDIR/good.$T.out | wc -l` |
31 |
s=`grep -v " 0 " < $TMPDIR/word.$T.out | tee $TMPDIR/spam.$T.out | wc -l` |
32 |
fi |
33 |
--- ./src/tests/t.systest 16 Mar 2005 12:18:22 -0000 1.14 |
34 |
+++ ./src/tests/t.systest 13 Nov 2005 16:45:48 -0000 1.15 |
35 |
@@ -57,7 +57,7 @@ |
36 |
$BOGOFILTER $OPTS -n < ${SYSTEST}/inputs/good.mbx |
37 |
for f in $BOGOFILTER_DIR/*.${DB_EXT} ; do |
38 |
n=`basename $f .${DB_EXT}` |
39 |
- $BOGOUTIL -d $BOGOFILTER_DIR/$n.${DB_EXT} > $BOGOFILTER_DIR/$n.txt |
40 |
+ $BOGOUTIL -C -d $BOGOFILTER_DIR/$n.${DB_EXT} > $BOGOFILTER_DIR/$n.txt |
41 |
done |
42 |
if [ $verbose -ne 0 ]; then |
43 |
ls -l $BOGOFILTER_DIR/*list.txt |
44 |
--- ./src/tests/t.MH 16 Mar 2005 12:18:22 -0000 1.12 |
45 |
+++ ./src/tests/t.MH 13 Nov 2005 16:45:48 -0000 1.13 |
46 |
@@ -24,7 +24,7 @@ |
47 |
$BOGOFILTER -C -D -s $v -B $TMPDIR/spam |
48 |
wordlist=".MSG_COUNT Lotus Magazine Min Service connection more most set that unsubscribe" |
49 |
|
50 |
-$BOGOUTIL -w $WORDLIST $wordlist >$OUT || rm -f $OUT |
51 |
+$BOGOUTIL -C -w $WORDLIST $wordlist >$OUT || rm -f $OUT |
52 |
|
53 |
if [ $verbose -eq 0 ]; then |
54 |
cmp $CORRECT $OUT |
55 |
--- ./src/tests/t.bulkmode 29 Jun 2005 03:11:25 -0000 1.18 |
56 |
+++ ./src/tests/t.bulkmode 13 Nov 2005 16:45:48 -0000 1.19 |
57 |
@@ -27,9 +27,11 @@ |
58 |
} |
59 |
|
60 |
if [ -d $BOGOFILTER_DIR ] ; then rm -f $BOGOFILTER_DIR/* ; else : ; fi |
61 |
+ |
62 |
mkdir -p $BOGOFILTER_DIR |
63 |
$BOGOFILTER -C -s < ${SYSTEST}/inputs/spam.mbx |
64 |
$BOGOFILTER -C -n < ${SYSTEST}/inputs/good.mbx |
65 |
+ |
66 |
#for f in $BOGOFILTER_DIR/*.${DB_EXT} ; do |
67 |
# o=`echo $f | sed s@.${DB_EXT}@.txt@` |
68 |
# $BOGOUTIL -d $f > $o |