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

« back to all changes in this revision

Viewing changes to sieve/tests/compile/errors.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:
5
5
 
6
6
/*
7
7
 * Errors triggered in the compiled scripts are pretty reduntant over the
8
 
 * tested commands, but we want to be thorough.
 
8
 * tested commands, but we want to be thorough. 
9
9
 */
10
10
 
11
11
/*
49
49
                test_fail "wrong number of errors reported";
50
50
        }
51
51
 
52
 
        if not test_error :index 1 :matches
 
52
        if not test_error :index 1 :matches 
53
53
                "unknown * ':all' for * header test *" {
54
54
                test_fail "error 1 is invalid";
55
55
        }
56
56
 
57
 
        if not test_error :index 2 :matches
 
57
        if not test_error :index 2 :matches 
58
58
                "*header test * string list * 1 (header names), but * number *" {
59
59
                test_fail "error 2 is invalid";
60
60
        }
64
64
                test_fail "error 3 is invalid";
65
65
        }
66
66
 
67
 
        if not test_error :index 4 :matches
 
67
        if not test_error :index 4 :matches 
68
68
                "* unexpected tagged argument ':tag' while *" {
69
69
                test_fail "error 4 is invalid";
70
70
        }
71
71
 
72
 
        if not test_error :index 5 :matches
 
72
        if not test_error :index 5 :matches 
73
73
                "* header test requires 2 *, but 1 *" {
74
74
                test_fail "error 5 is invalid";
75
75
        }
76
76
 
77
 
        if not test_error :index 6 :matches
 
77
        if not test_error :index 6 :matches 
78
78
                "* header test requires 2 *, but 0 *" {
79
79
                test_fail "error 6 is invalid";
80
80
        }
81
81
 
82
 
        if not test_error :index 7 :matches
 
82
        if not test_error :index 7 :matches 
83
83
                "*header test accepts no sub-tests* specified*" {
84
84
                test_fail "error 7 is invalid";
85
85
        }
86
86
 
87
 
        if not test_error :index 8 :matches
 
87
        if not test_error :index 8 :matches 
88
88
                "* use test 'header' * command*" {
89
89
                test_fail "error 8 is invalid";
90
90
        }
91
91
 
92
 
        if not test_error :index 9 :matches
 
92
        if not test_error :index 9 :matches 
93
93
                "* use test 'header' * command*" {
94
94
                test_fail "error 9 is invalid";
95
95
        }
97
97
        if test_error :index 4 :contains "radish" {
98
98
                test_fail "error test matched nonsense";
99
99
        }
100
 
}
 
100
}       
101
101
 
102
102
/*
103
103
 * Address test
111
111
 
112
112
        if not test_error :count "eq" :comparator "i;ascii-numeric" "9" {
113
113
                test_fail "wrong number of errors reported";
114
 
        }
 
114
        }       
115
115
 
116
116
        if not test_error :index 1 :matches
117
117
                "*unknown * ':nonsense' * address test*" {
169
169
 
170
170
        if not test_error :count "eq" :comparator "i;ascii-numeric" "12" {
171
171
                test_fail "wrong number of errors reported";
172
 
        }
 
172
        }       
173
173
}
174
174
 
175
175
/*
183
183
 
184
184
        if not test_error :count "eq" :comparator "i;ascii-numeric" "15" {
185
185
                test_fail "wrong number of errors reported";
186
 
        }
 
186
        }       
187
187
}
188
188
 
189
189
/*