Return-Path: Delivered-To: apmail-spamassassin-commits-archive@www.apache.org Received: (qmail 5825 invoked from network); 22 Jun 2007 12:40:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 12:40:03 -0000 Received: (qmail 394 invoked by uid 500); 22 Jun 2007 12:40:06 -0000 Delivered-To: apmail-spamassassin-commits-archive@spamassassin.apache.org Received: (qmail 321 invoked by uid 500); 22 Jun 2007 12:40:06 -0000 Mailing-List: contact commits-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "SpamAssassin Dev" List-Id: Delivered-To: mailing list commits@spamassassin.apache.org Received: (qmail 310 invoked by uid 99); 22 Jun 2007 12:40:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 05:40:06 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jun 2007 05:40:02 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 55D621A981A; Fri, 22 Jun 2007 05:39:42 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r549800 - /spamassassin/trunk/t/spamc_x_e.t Date: Fri, 22 Jun 2007 12:39:42 -0000 To: commits@spamassassin.apache.org From: jm@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070622123942.55D621A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 = *