[cvs] bogofilter/tests Makefile.am,NONE,1.1 t.frame,NONE,1.1 t.lock1,NONE,1.1 t.score1,NONE,1.1 t.sc
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <m-...@us...> - 2002-10-11 15:32:54
|
Update of /cvsroot/bogofilter/bogofilter/tests In directory usw-pr-cvs1:/tmp/cvs-serv32755/tests Added Files: Makefile.am t.frame t.lock1 t.score1 t.score2 t.skel Log Message: Move tests to tests/ directory, adjusting paths in t.{lock1,score?} --- NEW FILE: Makefile.am --- # $Id: Makefile.am,v 1.1 2002/10/11 15:32:50 m-a Exp $ TESTSCRIPTS=t.score1 t.score2 t.lock1 t.skel TESTS=$(TESTSCRIPTS) XFAIL_TESTS=t.skel EXTRA_DIST=$(TESTSCRIPTS) t.frame --- NEW FILE: t.frame --- # testing framework for /bin/sh set -e TMPDIR=`mktemp -d ./checks.$$.XXXXXX` trap "rm -r ${TMPDIR}" 0 --- NEW FILE: t.lock1 --- #! /bin/sh . ${srcdir}/t.frame # this test checks that bogofilter -u works ../bogofilter -u -p -e -d $TMPDIR </dev/null >/dev/null --- NEW FILE: t.score1 --- #! /bin/sh . ${srcdir}/t.frame # make sure that an uninitialized data base will not lead to bogus # spam qualifications echo | ../bogofilter -p -e >/dev/null --- NEW FILE: t.score2 --- #! /bin/sh . ${srcdir}/t.frame # make sure that an uninitialized data base will not lead to bogus # spam qualifications # ensure that "nonspam" exits with code 1 ( set +e echo | ../bogofilter -p >/dev/null if [ $? -eq 1 ] ; then exit 0 ; else exit 1 ; fi ) --- NEW FILE: t.skel --- #! /bin/sh . ${srcdir}/t.frame # test description here # # test below # remember to use ${srcdir} false |