~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
  • Date: 2010-06-29 09:21:32 UTC
  • mfrom: (4.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20100629092132-q4pr5lfuvmjqou19
Tags: 1:1.2.12-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  + Add mail-stack-delivery as 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.*
  + Use Snakeoil SSL certificates by default.
    - debian/control: Depend on ssl-cert.
    - debian/patches/ssl-cert-snakeoil.dpatch: Change default SSL cert paths to snakeoil.
    - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - Created debian/dovecot-common.ufw.profile.
    - debian/rules: install profile.
    - debian/control: suggest ufw.
  + debian/{control,rules}: enable PIE hardening.
  + debian/control: Update Vcs-* headers.
  + Add SMTP-AUTH support for Outlook (login auth mechanism) 
  + debian/dovecot-common.dirs: Added usr/share/doc/dovecot-common
  + debian/patches/fix-dovecot-config-parser.patch: Fix ordering of external config 
    files. (LP: #597818)

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
/*