~ubuntu-branches/ubuntu/quantal/dovecot/quantal

« back to all changes in this revision

Viewing changes to sieve/tests/execute/actions.svtest

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short, Scott Kitterman
  • Date: 2010-06-22 10:33:51 UTC
  • mfrom: (1.13.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100622103351-ifbmnklp8kxrhb30
Tags: 1:1.2.12-0ubuntu1
* New upstream release:
  - deliver: Don't crash when a message with Auto-submitted: header gets
   rejected.
  - lib-storage: Fixed header searches to work correctly when there are
    multiple headers with same name.
  - dict client: Disconnect from dict server after 1 second of idling.
  - dict: If process crashed, it wasn't automatically restarted
  - dict file: If dict file's group permissions equal world permissions,
    don't try to change its gid.
  - maildir: Fixed a memory leak when copying with hardlinks.
  - maildir: Expunging last messages may have assert-crashed if their
    filenames had just changed.
 * Update sieve patch to 0.1.17
 * debian/dovecot-common.postinst: Add warning about expired certificate.
   (Debian Bug: #576455)
 * Silence lintian warnings.

 [Scott Kitterman]
 * Rename dovecot-postfix to mail-stack-delivery per server-maverick-mail-
   integration spec.
   - Update debian/rules
   - Convert existing package to a dummy package and add new binary in debian/control
   - Update maintainer scripts.
   - Move previously installed backups and config files to new package name
     space in preinst
   - Add new debian/mail-stack-delivery.prerm to handle downgrades
   - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
require "comparator-i;ascii-numeric";
4
4
 
5
5
test_set "message" text:
6
 
To: nico@vestingbar.nl
7
 
From: stephan@rename-it.nl
 
6
To: nico@frop.example.org
 
7
From: stephan@example.org
8
8
Subject: Test
9
9
 
10
10
Test.
25
25
 
26
26
        if not test_result :count "eq" :comparator "i;ascii-numeric" "3" {
27
27
                test_fail "wrong number of actions in result";
28
 
        }
 
28
        } 
29
29
 
30
30
        if not test_result :index 1 "store" {
31
31
                test_fail "first action is not 'store'";
32
 
        }
 
32
        } 
33
33
 
34
34
        if not test_result :index 2 "store" {
35
35
                test_fail "second action is not 'store'";
36
 
        }
 
36
        } 
37
37
 
38
38
        if not test_result :index 3 "keep" {
39
39
                test_fail "third action is not 'keep'";
40
 
        }
 
40
        } 
41
41
 
42
42
        if not test_result_execute {
43
43
                test_fail "result execute failed";
55
55
 
56
56
        if not test_result :count "eq" :comparator "i;ascii-numeric" "4" {
57
57
                test_fail "wrong number of actions in result";
58
 
        }
 
58
        } 
59
59
 
60
60
        if not test_result :index 1 "redirect" {
61
61
                test_fail "first action is not 'redirect'";
62
 
        }
 
62
        } 
63
63
 
64
64
        if not test_result :index 2 "keep" {
65
65
                test_fail "second action is not 'keep'";
66
 
        }
 
66
        } 
67
67
 
68
68
        if not test_result :index 3 "redirect" {
69
69
                test_fail "third action is not 'redirect'";
70
 
        }
 
70
        } 
71
71
 
72
72
        if not test_result :index 4 "redirect" {
73
73
                test_fail "fourth action is not 'redirect'";
74
 
        }
 
74
        } 
75
75
 
76
76
        if not test_result_execute {
77
77
                test_fail "result execute failed";