~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-updates

« back to all changes in this revision

Viewing changes to t/whitelist_addrs.t

  • Committer: Package Import Robot
  • Author(s): Noah Meyerhans
  • Date: 2014-02-14 22:45:15 UTC
  • mfrom: (0.8.1) (0.6.2) (5.1.22 sid)
  • Revision ID: package-import@ubuntu.com-20140214224515-z1es2twos8xh7n2y
Tags: 3.4.0-1
* New upstream version! (Closes: 738963, 738872, 738867)
* Scrub the environment when switching to the debian-spamd user in
  postinst and cron.daily. (Closes: 738951)
* Enhancements to postinst to better manage ownership of
  /var/lib/spamassassin, via Iain Lane <iain.lane@canonical.com>
  (Closes: 738974)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
use SATest; sa_t_init("whitelist_addrs");
5
5
use IO::File;
6
6
 
 
7
use constant HAS_MODULES => eval {
 
8
  require DB_File;
 
9
};
 
10
 
7
11
use constant TEST_ENABLED => conf_bool('run_long_tests');
8
12
 
 
13
use constant DO_RUN => TEST_ENABLED && HAS_MODULES;
 
14
 
9
15
use Test;
10
16
BEGIN { 
11
17
  if (-e 't/test_dir') {
16
22
    unshift(@INC, '../blib/lib');
17
23
  }
18
24
 
19
 
  plan tests => (TEST_ENABLED ? 35 : 0);
 
25
  plan tests => (DO_RUN ? 35 : 0);
20
26
 };
21
27
 
22
 
exit unless TEST_ENABLED;
 
28
exit unless DO_RUN;
23
29
 
24
30
# ---------------------------------------------------------------------------
25
31