~ubuntu-branches/ubuntu/precise/spamassassin/precise-updates

« back to all changes in this revision

Viewing changes to t/sa_awl.t

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2010-01-26 22:53:12 UTC
  • mfrom: (1.1.13 upstream) (5.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100126225312-wkftb10idc1kz2aq
Tags: 3.3.0-1
* New upstream version.
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use lib '.'; use lib 't';
 
4
use SATest; sa_t_init("sa_awl");
 
5
use Test; BEGIN { plan tests => 1 };
 
6
 
 
7
# ---------------------------------------------------------------------------
 
8
 
 
9
%patterns = (
 
10
  q{ X-Spam-Status: Yes}, 'isspam',
 
11
);
 
12
 
 
13
tstprefs ("
 
14
        $default_cf_lines
 
15
        auto_whitelist_path ./log/awltest
 
16
        auto_whitelist_file_mode 0755
 
17
");
 
18
 
 
19
sarun("--add-addr-to-whitelist whitelist_test\@whitelist.spamassassin.taint.org",
 
20
      \&patterns_run_cb);
 
21
 
 
22
system("pwd");
 
23
system("../sa-awl --clean --min 9999 ./log/awltest");
 
24
 
 
25
sarun ("-L -t < data/spam/004", \&patterns_run_cb);
 
26
ok_all_patterns();
 
27