You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2010/03/03 16:50:12 UTC

svn commit: r918530 - in /spamassassin/trunk/t: uribl_domains_only.t uribl_ips_only.t

Author: jm
Date: Wed Mar  3 15:50:12 2010
New Revision: 918530

URL: http://svn.apache.org/viewvc?rev=918530&view=rev
Log:
expand the ips_only/domains_only test suite a little

Modified:
    spamassassin/trunk/t/uribl_domains_only.t
    spamassassin/trunk/t/uribl_ips_only.t

Modified: spamassassin/trunk/t/uribl_domains_only.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/uribl_domains_only.t?rev=918530&r1=918529&r2=918530&view=diff
==============================================================================
--- spamassassin/trunk/t/uribl_domains_only.t (original)
+++ spamassassin/trunk/t/uribl_domains_only.t Wed Mar  3 15:50:12 2010
@@ -9,16 +9,14 @@
 use Test;
 
 BEGIN {
-  plan tests => (DO_RUN ? 2 : 0),
+  plan tests => (DO_RUN ? 4 : 0),
 };
 
 exit unless (DO_RUN);
 
 # ---------------------------------------------------------------------------
 
-%anti_patterns = (
- q{ X_URIBL_DOMSONLY } => 'A',
-);
+%anti_patterns = ( q{ X_URIBL_DOMSONLY } => 'A' );
 
 tstlocalrules(q{
 
@@ -36,3 +34,10 @@
 ok sarun ("-t < data/spam/dnsbl_domsonly.eml 2>&1", \&patterns_run_cb);
 ok_all_patterns();
 
+%patterns = ( q{ X_URIBL_DOMSONLY } => 'A' );
+%anti_patterns = ();
+
+clear_pattern_counters();
+ok sarun ("-t < data/spam/dnsbl_ipsonly.eml 2>&1", \&patterns_run_cb);
+ok_all_patterns();
+

Modified: spamassassin/trunk/t/uribl_ips_only.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/uribl_ips_only.t?rev=918530&r1=918529&r2=918530&view=diff
==============================================================================
--- spamassassin/trunk/t/uribl_ips_only.t (original)
+++ spamassassin/trunk/t/uribl_ips_only.t Wed Mar  3 15:50:12 2010
@@ -9,7 +9,7 @@
 use Test;
 
 BEGIN {
-  plan tests => (DO_RUN ? 2 : 0),
+  plan tests => (DO_RUN ? 4 : 0),
 };
 
 exit unless (DO_RUN);
@@ -36,3 +36,10 @@
 ok sarun ("-t < data/spam/dnsbl_ipsonly.eml 2>&1", \&patterns_run_cb);
 ok_all_patterns();
 
+%patterns = ( q{ X_URIBL_IPSONLY } => 'A' );
+%anti_patterns = ();
+
+clear_pattern_counters();
+ok sarun ("-t < data/spam/dnsbl_domsonly.eml 2>&1", \&patterns_run_cb);
+ok_all_patterns();
+