~ubuntu-branches/ubuntu/utopic/dovecot/utopic-proposed

« back to all changes in this revision

Viewing changes to pigeonhole/tests/test-allof.svtest

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-08 09:35:49 UTC
  • mfrom: (4.1.35 sid)
  • Revision ID: package-import@ubuntu.com-20140108093549-i72o93pux8p0dlaf
Tags: 1:2.2.9-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + Use the autotools-dev dh addon to update config.guess/config.sub for
    arm64.
* Dropped changes, included in Debian:
  - Update Dovecot name to reflect distribution in login greeting.
  - Update Drac plugin for >= 2.0.0 support.
* d/control: Drop dovecot-postfix package as its no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
require "vnd.dovecot.testsuite";
2
2
 
3
 
/* 
4
 
 * ## RFC 5228, Section 5.2. Test allof (page 27) ## 
 
3
/*
 
4
 * ## RFC 5228, Section 5.2. Test allof (page 27) ##
5
5
 */
6
6
 
7
7
/* "The "allof" test performs a logical AND on the tests supplied to it.
58
58
        } else {
59
59
                /* Correct */
60
60
        }
61
 
        
 
61
 
62
62
        if allof ( false, true, false ) {
63
63
                test_fail "chose wrong second-true outcome: true";
64
64
        } else {
76
76
        } else {
77
77
                /* Correct */
78
78
        }
79
 
        
 
79
 
80
80
        if allof ( true, false, true ) {
81
81
                test_fail "chose wrong second-false outcome: true";
82
82
        } else {
124
124
        } else {
125
125
                /* Correct */
126
126
        }
127
 
        
 
127
 
128
128
        if allof ( exists "friep", exists "from", exists "frml" ) {
129
129
                test_fail "chose wrong second-true outcome: true";
130
130
        } else {
142
142
        } else {
143
143
                /* Correct */
144
144
        }
145
 
        
 
145
 
146
146
        if allof ( exists "to", exists "frop", exists "cc" ) {
147
147
                test_fail "chose wrong second-false outcome: true";
148
148
        } else {
222
222
        }
223
223
 
224
224
        /* Second true */
225
 
        
 
225
 
226
226
        if allof ( false, exists "from", exists "frml" ) {
227
227
                test_fail "chose wrong second-true first-static outcome: true";
228
228
        } else {
282
282
        }
283
283
 
284
284
        /* Second false */
285
 
        
 
285
 
286
286
        if allof ( true, exists "frop", exists "cc" ) {
287
287
                test_fail "chose wrong second-false first-static outcome: true";
288
288
        } else {