Mailing List Archive

svn commit: r179516 - /spamassassin/trunk/t/bayessql.t
Author: parker
Date: Wed Jun 1 22:37:01 2005
New Revision: 179516

URL: http://svn.apache.org/viewcvs?rev=179516&view=rev
Log:
Complete plugin relative path fixups in tests and port the score checking code from the other bayes tests

Modified:
spamassassin/trunk/t/bayessql.t

Modified: spamassassin/trunk/t/bayessql.t
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/bayessql.t?rev=179516&r1=179515&r2=179516&view=diff
==============================================================================
--- spamassassin/trunk/t/bayessql.t (original)
+++ spamassassin/trunk/t/bayessql.t Wed Jun 1 22:37:01 2005
@@ -87,7 +87,7 @@
tstlocalrules ("
$dbconfig
bayes_sql_override_username iwillfail
-loadplugin validuserplugin data/validuserplugin.pm
+loadplugin validuserplugin ../../data/validuserplugin.pm
bayes_sql_username_authorized 1
");

@@ -311,7 +311,8 @@
# Pretty much we can't count on the data returned with such little training
# so just make sure that the score wasn't equal to .5 which is the default
# return value.
-ok($score != .5);
+print "\treturned score: $score\n";
+ok($score =~ /\d/ && $score <= 1.0 && $score != .5);

open(MAIL,"< ../sample-spam.txt");

@@ -339,7 +340,8 @@
# Pretty much we can't count on the data returned with such little training
# so just make sure that the score wasn't equal to .5 which is the default
# return value.
-ok($score != .5);
+print "\treturned score: $score\n";
+ok($score =~ /\d/ && $score <= 1.0 && $score != .5);
}

# This bit breaks abstraction a bit, the userid is an implementation detail,