spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: r549800 - /spamassassin/trunk/t/spamc_x_e.t
Date Fri, 22 Jun 2007 12:39:42 GMT
Author: jm
Date: Fri Jun 22 05:39:41 2007
New Revision: 549800

URL: http://svn.apache.org/viewvc?view=rev&rev=549800
Log:
add test case for bug 5478

Added:
    spamassassin/trunk/t/spamc_x_e.t   (with props)

Added: spamassassin/trunk/t/spamc_x_e.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/spamc_x_e.t?view=auto&rev=549800
==============================================================================
--- spamassassin/trunk/t/spamc_x_e.t (added)
+++ spamassassin/trunk/t/spamc_x_e.t Fri Jun 22 05:39:41 2007
@@ -0,0 +1,30 @@
+#!/usr/bin/perl
+
+use lib '.'; use lib 't';
+use SATest; sa_t_init("spamc_x_e");
+
+# only run for localhost!
+our $DO_RUN = conf_bool('run_net_tests')
+                    && !$SKIP_SPAMD_TESTS;
+
+use Test; plan tests => ($DO_RUN ? 19 : 0);
+
+exit unless $DO_RUN;
+
+# ---------------------------------------------------------------------------
+# test case for bug 5478: spamc -x -e
+
+%patterns = ( 'Fine' => 'Fine' );
+
+ok start_spamd("-L");
+ok spamcrun("-x -e /bin/echo Fine < data/nice/001", \&patterns_run_cb);
+ok ok_all_patterns();
+stop_spamd();
+
+%patterns = ( );
+%anti_patterns = ( 'Fine' => 'Fine' );
+$spamdhost = '0.0.0.1'; # cause "connection failed" errors
+
+ok !spamcrun("-x -e /bin/echo Fine < data/nice/001", \&patterns_run_cb);
+ok ok_all_patterns();
+

Propchange: spamassassin/trunk/t/spamc_x_e.t
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message