~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-proposed

« back to all changes in this revision

Viewing changes to t/root_spamd_u.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:
10
10
use constant IS_ROOT => eval { ($> == 0); };
11
11
use constant RUN_TESTS => (TEST_ENABLED && IS_ROOT);
12
12
 
13
 
BEGIN { plan tests => (RUN_TESTS ? 14 : 0) };
 
13
BEGIN { plan tests => (RUN_TESTS ? 11 : 0) };
14
14
exit unless RUN_TESTS;
15
15
 
16
16
# ---------------------------------------------------------------------------
33
33
 
34
34
ok(start_spamd("-L -u nobody"));
35
35
 
 
36
$SIG{ALRM} = sub { die "timed out"; };
 
37
alarm 10;
36
38
ok(spamcrun("< data/spam/001", \&patterns_run_cb));
37
 
ok_all_patterns();
38
 
 
39
 
%patterns = (
40
 
q{ X-Spam-Status: Yes, score=}, 'status',
41
 
q{ X-Spam-Flag: YES}, 'flag',
42
 
             );
43
 
 
44
 
 
45
 
ok (spamcrun("< data/spam/018", \&patterns_run_cb));
 
39
alarm 0;
46
40
ok_all_patterns();
47
41
 
48
42
ok(stop_spamd());