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 2022/04/18 16:33:28 UTC

svn commit: r1899994 - in /spamassassin/branches/trunk-welcomelist: MANIFEST t/sa_awl_welcome_block.t

Author: hege
Date: Mon Apr 18 16:33:27 2022
New Revision: 1899994

URL: http://svn.apache.org/viewvc?rev=1899994&view=rev
Log:
Improve tests

Added:
    spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t   (with props)
Modified:
    spamassassin/branches/trunk-welcomelist/MANIFEST

Modified: spamassassin/branches/trunk-welcomelist/MANIFEST
URL: http://svn.apache.org/viewvc/spamassassin/branches/trunk-welcomelist/MANIFEST?rev=1899994&r1=1899993&r2=1899994&view=diff
==============================================================================
--- spamassassin/branches/trunk-welcomelist/MANIFEST (original)
+++ spamassassin/branches/trunk-welcomelist/MANIFEST Mon Apr 18 16:33:27 2022
@@ -571,6 +571,7 @@ t/rule_multiple.t
 t/rule_names.t
 t/rule_types.t
 t/sa_awl.t
+t/sa_awl_welcome_block.t
 t/sa_check_spamd.t
 t/sa_compile.t
 t/sha1.t

Added: spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t?rev=1899994&view=auto
==============================================================================
--- spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t (added)
+++ spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t Mon Apr 18 16:33:27 2022
@@ -0,0 +1,27 @@
+#!/usr/bin/perl -T
+
+use lib '.'; use lib 't';
+use SATest; sa_t_init("sa_awl");
+
+use Test::More tests => 1;
+
+# ---------------------------------------------------------------------------
+
+%patterns = (
+  q{ X-Spam-Status: Yes}, 'isspam',
+);
+
+tstprefs ("
+  auto_welcomelist_path ./$userstate/awltest
+  auto_welcomelist_file_mode 0755
+");
+
+sarun("--add-addr-to-welcomelist whitelist_test\@whitelist.spamassassin.taint.org",
+      \&patterns_run_cb);
+
+untaint_system("pwd");
+saawlrun("--clean --min 9999 ./$userstate/awltest");
+
+sarun ("-L -t < data/spam/004", \&patterns_run_cb);
+ok_all_patterns();
+

Propchange: spamassassin/branches/trunk-welcomelist/t/sa_awl_welcome_block.t
------------------------------------------------------------------------------
    svn:executable = *