[cvs] bogofilter/src/tests/bogofilter t.parsing,1.4,1.5
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2003-05-31 12:33:54
|
Update of /cvsroot/bogofilter/bogofilter/src/tests/bogofilter In directory sc8-pr-cvs1:/tmp/cvs-serv1664 Modified Files: t.parsing Log Message: Combine outputs into single file to avoid problems with OSX's case insensitve UFS. Index: t.parsing =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/tests/bogofilter/t.parsing,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- t.parsing 19 May 2003 22:05:24 -0000 1.4 +++ t.parsing 31 May 2003 12:29:34 -0000 1.5 @@ -29,29 +29,28 @@ SYSTEST="${srcdir}" MSG="${SYSTEST}/inputs/msg.parsing.txt" -flaglist="IHT iHT IhT IHt Iht iHt ihT iht" +flaglist="IHT-0 iHT-1 IhT-2 IHt-3 Iht-4 iHt-5 ihT-6 iht-7" for flags in $flaglist ; do - ( echo "****** " $flags " ******" ; \ - $BOGOLEXER -C -D -P$flags -p -x l -v < $MSG ) > ${TMPDIR}/parsing-$flags.out + opts=`echo $flags | tr -d "01234567-"` + ( echo "****** " $opts " ******" ; \ + $BOGOLEXER -C -D -P$opts -p -x l -v < $MSG ) | tee -a ${TMPDIR}/parsing.out > ${TMPDIR}/tmp if [ $verbose -ne 0 ]; then - sort -u < ${TMPDIR}/parsing-$flags.out > ${TMPDIR}/parsing-$flags.sor + sort -u < ${TMPDIR}/tmp >> ${TMPDIR}/parsing.sor fi done -for flags in $flaglist ; do - if [ $verbose -ne 0 ]; then - printf "%s %d %d\n" $flags `cat ${TMPDIR}/parsing-$flags.out | wc -l` `cat ${TMPDIR}/parsing-$flags.sor | wc -l` - fi -done +if [ $verbose -ne 0 ]; then + wc -l ${TMPDIR}/parsing.out + wc -l ${TMPDIR}/parsing.sor +fi -for OUT in ${srcdir}/outputs/parsing-???.out ; do - if [ $verbose -eq 0 ]; then - cmp $OUT ${TMPDIR}/`basename $OUT` - else - diff $DIFF_BRIEF $OUT ${TMPDIR}/`basename $OUT` - fi -done +OUT="${srcdir}/outputs/parsing.out" +if [ $verbose -eq 0 ]; then + cmp $OUT ${TMPDIR}/`basename $OUT` +else + diff $DIFF_BRIEF $OUT ${TMPDIR}/`basename $OUT` +fi map_rc() { |