You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2018/10/01 12:26:55 UTC

svn commit: r1842485 - /spamassassin/trunk/t/local_tests_only.t

Author: hege
Date: Mon Oct  1 12:26:55 2018
New Revision: 1842485

URL: http://svn.apache.org/viewvc?rev=1842485&view=rev
Log:
Add t/local_tests_only.t

Added:
    spamassassin/trunk/t/local_tests_only.t

Added: spamassassin/trunk/t/local_tests_only.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/local_tests_only.t?rev=1842485&view=auto
==============================================================================
--- spamassassin/trunk/t/local_tests_only.t (added)
+++ spamassassin/trunk/t/local_tests_only.t Mon Oct  1 12:26:55 2018
@@ -0,0 +1,25 @@
+#!/usr/bin/perl
+
+use lib '.'; use lib 't';
+use SATest; sa_t_init("local_tests_only");
+
+use Test::More;
+plan tests => 1;
+
+# ---------------------------------------------------------------------------
+
+# Make sure no plugin is sending DNS with -L
+
+%anti_patterns = (
+ 'dns: bgsend' => 'dns',
+);
+
+tstprefs("
+  header DNSBL_TEST_TOP eval:check_rbl('test', 'dnsbltest.spamassassin.org.')
+  tflags DNSBL_TEST_TOP net
+");
+
+# we need -D output for patterns
+sarun ("-D -L -t < data/spam/dnsbl.eml 2>&1", \&patterns_run_cb);
+ok_all_patterns();
+