~ubuntu-branches/ubuntu/natty/spamassassin/natty

« back to all changes in this revision

Viewing changes to t/dkim2.t

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2010-03-21 23:20:31 UTC
  • mfrom: (0.4.1) (1.4.1) (29.2.1 maverick)
  • Revision ID: package-import@ubuntu.com-20100321232031-ryqjxh9cx27epnka
Tags: 3.3.1-1
* New upstream version.
* Update several patches now that bugfixes have been incorporated
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
use vars qw(%patterns %anti_patterns);
12
12
 
13
 
use constant num_tests => 123;
 
13
use constant num_tests => 199;
14
14
 
15
15
use constant TEST_ENABLED => conf_bool('run_net_tests');
16
16
use constant HAS_MODULES => eval {
98
98
  score DKIM_ADSP_CUSTOM_LOW  0.1
99
99
  score DKIM_ADSP_CUSTOM_MED  0.1
100
100
  score DKIM_ADSP_CUSTOM_HIGH 0.1
 
101
  header DKIM_ADSP_SEL_TEST   eval:check_dkim_adsp('*', .spamassassin.org)
 
102
  score  DKIM_ADSP_SEL_TEST   0.1
101
103
  score RAZOR2_CHECK 0
102
104
  score RAZOR2_CF_RANGE_51_100 0
103
105
  score RAZOR2_CF_RANGE_E4_51_100 0
137
139
  push(@test_filenames, "$dirname/$fn");
138
140
}
139
141
closedir(DIR) or die "Error closing directory $dirname: $!";
140
 
@patt_antipatt_list = ( 'DKIM_SIGNED DKIM_VALID DKIM_VALID_AU /' );
 
142
@patt_antipatt_list = (
 
143
  'DKIM_SIGNED DKIM_VALID DKIM_VALID_AU / DKIM_ADSP_NXDOMAIN DKIM_ADSP_DISCARD DKIM_ADSP_ALL DKIM_ADSP_SEL_TEST'
 
144
);
141
145
test_samples(\@test_filenames, \@patt_antipatt_list);
142
146
 
143
147
# this mail sample is special, doesn't have any signature