MBOX-Line: From tss at iki.fi  Wed Feb 27 22:50:07 2008
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:41 2018
Subject: [Imap-protocol] imaptest update
Message-ID: <1204181407.11220.53.camel@hurina>

I've finally added support for "normal" command/reply tests for my
imaptest program (http://imapwiki.org/ImapTest). imaptest will include
generic tests that should work with all IMAP servers, but it would be
easy for servers to implement their own private tests that check things
more carefully (but less portably). It would be nice if others could
provide some generic test cases as well.

I haven't yet had time to implement all the features that I'd like (e.g.
unordered list handling needs support), but I think the current features
will allow testing quite a lot already.
http://imapwiki.org/ImapTest/Tests explains how it works.

A couple of examples to show what's possible:

# Check that EXAMINE and STATUS return same UIDVALIDITY
examine $mailbox
* ok [uidvalidity $uidvalidity]
ok [read-only]
ok status $mailbox (uidvalidity)
* status $mailbox (uidvalidity $uidvalidity)

# Test EXPUNGE handling with 2 connections:
connections: 2

1 ok fetch * uid
* $seq fetch (uid $uid)
1 ok store $seq flags \deleted
* $seq fetch (flags (\deleted \recent))
1 ok expunge
* $seq expunge

2 ok fetch $seq uid
* $seq fetch (uid $uid)
2 ok noop
* $seq expunge

# LIST testing:
state: auth

ok list "" ""
* list (\noselect) $sep ""

delete $mailbox${sep}test
""
delete $mailbox${sep}test2
""
ok create $mailbox${sep}test
ok create $mailbox${sep}test2

ok list "" $mailbox$sep%
* list (\hasnochildren) $sep $mailbox${sep}test
* list (\hasnochildren) $sep $mailbox${sep}test2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20080228/76adac84/attachment.sig>
