Mailing List Archive

svn commit: r1901349 - in /spamassassin/trunk/t: dnsbl.t hashbl.t rule_multiple.t uribl.t
Author: hege
Date: Sat May 28 11:43:13 2022
New Revision: 1901349

URL: http://svn.apache.org/viewvc?rev=1901349&view=rev
Log:
Make some tests run with and without extra rules to catch bugs

Modified:
spamassassin/trunk/t/dnsbl.t
spamassassin/trunk/t/hashbl.t
spamassassin/trunk/t/rule_multiple.t
spamassassin/trunk/t/uribl.t

Modified: spamassassin/trunk/t/dnsbl.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/dnsbl.t?rev=1901349&r1=1901348&r2=1901349&view=diff
==============================================================================
--- spamassassin/trunk/t/dnsbl.t (original)
+++ spamassassin/trunk/t/dnsbl.t Sat May 28 11:43:13 2022
@@ -153,6 +153,7 @@ priority DNSBL_TEST_RELAY 2000
");

for (1 .. $iterations) {
+ clear_localrules() if $_ == 3; # do some tests without any other rules to check meta bugs
# rules-all debug needed for unrun check
sarun ("-t -D rules-all < data/spam/dnsbl.eml 2>&1", \&patterns_run_cb);
ok_all_patterns();

Modified: spamassassin/trunk/t/hashbl.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/hashbl.t?rev=1901349&r1=1901348&r2=1901349&view=diff
==============================================================================
--- spamassassin/trunk/t/hashbl.t (original)
+++ spamassassin/trunk/t/hashbl.t Sat May 28 11:43:13 2022
@@ -124,6 +124,7 @@ tstlocalrules(q{
});

for (1 .. $iterations) {
+ clear_localrules() if $_ == 3; # do some tests without any other rules to check meta bugs
ok sarun ("-t -D async,dns,HashBL < data/spam/hashbl 2>&1", \&patterns_run_cb);
ok(check_queries());
ok_all_patterns();

Modified: spamassassin/trunk/t/rule_multiple.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/rule_multiple.t?rev=1901349&r1=1901348&r2=1901349&view=diff
==============================================================================
--- spamassassin/trunk/t/rule_multiple.t (original)
+++ spamassassin/trunk/t/rule_multiple.t Sat May 28 11:43:13 2022
@@ -2,7 +2,7 @@

use lib '.'; use lib 't';
use SATest; sa_t_init("rule_multiple");
-use Test::More tests => 21;
+use Test::More tests => 42;

# ---------------------------------------------------------------------------

@@ -117,3 +117,8 @@ tstlocalrules ('
sarun ("-L -t < data/spam/002 2>&1", \&patterns_run_cb);
ok_all_patterns();

+# do some tests without any other rules to check meta bugs
+clear_localrules();
+sarun ("-L -t < data/spam/002 2>&1", \&patterns_run_cb);
+ok_all_patterns();
+

Modified: spamassassin/trunk/t/uribl.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/uribl.t?rev=1901349&r1=1901348&r2=1901349&view=diff
==============================================================================
--- spamassassin/trunk/t/uribl.t (original)
+++ spamassassin/trunk/t/uribl.t Sat May 28 11:43:13 2022
@@ -72,6 +72,7 @@ tstlocalrules(q{
});

for (1 .. $iterations) {
+ clear_localrules() if $_ == 3; # do some tests without any other rules to check meta bugs
ok sarun ("-t < data/spam/dnsbl.eml", \&patterns_run_cb);
ok_all_patterns();
}