You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by si...@apache.org on 2007/07/04 21:57:44 UTC

svn commit: r553316 - /spamassassin/branches/3.2/t/spamc_H.t

Author: sidney
Date: Wed Jul  4 12:57:43 2007
New Revision: 553316

URL: http://svn.apache.org/viewvc?view=rev&rev=553316
Log:
bug5462: add file that I forgot to svn add before checkin of rev 553314

Added:
    spamassassin/branches/3.2/t/spamc_H.t

Added: spamassassin/branches/3.2/t/spamc_H.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.2/t/spamc_H.t?view=auto&rev=553316
==============================================================================
--- spamassassin/branches/3.2/t/spamc_H.t (added)
+++ spamassassin/branches/3.2/t/spamc_H.t Wed Jul  4 12:57:43 2007
@@ -0,0 +1,30 @@
+#!/usr/bin/perl
+
+use lib '.'; use lib 't';
+use SATest; sa_t_init("spamc_H");
+
+# only run for localhost!
+our $DO_RUN = conf_bool('run_net_tests')
+                    && !$SKIP_SPAMD_TESTS
+                    && ($spamdhost eq '127.0.0.1');
+
+use Test; plan tests => ($DO_RUN ? 5 : 0);
+
+exit unless $DO_RUN;
+
+# ---------------------------------------------------------------------------
+
+%patterns = (
+
+q{ X-Spam-Flag: YES}, 'flag',
+q{ TEST_ENDSNUMS}, 'endsinnums',
+
+);
+
+ok(start_spamd("-L"));
+
+$spamdhost = 'multihomed.dnsbltest.spamassassin.org';
+ok(spamcrun("--connect-retries=100 -H < data/spam/001",
+            \&patterns_run_cb));
+ok_all_patterns();
+ok(stop_spamd());