Differences between revisions 5 and 6
Revision 5 as of 2009-03-15 22:47:44
Size: 1271
Editor: localhost
Comment: converted to 1.6 markup
Revision 6 as of 2009-05-31 20:19:37
Size: 1243
Editor: TimoSirainen
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
./imaptest host=127.0.0.1 port=143 user=testuser pass=testpass mbox=dovecot.mbox imaptest host=127.0.0.1 port=143 user=testuser pass=testpass mbox=dovecot.mbox
Line 12: Line 12:
./imaptest checkpoint=1
./imaptest checkpoint=1 logout=0 expunge=10
./imaptest checkpoint=1 rawlog no_pipelining
./imaptest own_msgs expunge=5 logout=1
./imaptest own_flags expunge=5 logout=1
./imaptest logout=0 search=100 expunge=10 clients=1
imaptest checkpoint=1
imaptest checkpoint=1 logout=0 expunge=10
imaptest checkpoint=1 rawlog no_pipelining
imaptest own_msgs expunge=5 logout=1
imaptest own_flags expunge=5 logout=1
imaptest logout=0 search=100 expunge=10 clients=1
Line 23: Line 23:
./imaptest seed=123 secs=300 imaptest seed=123 secs=300
Line 29: Line 29:
./imaptest - select=0 imaptest - select=0
Line 35: Line 35:
./imaptest clients=100 - logout=0 status=50 noop=50 delay=100 imaptest clients=100 - logout=0 status=50 noop=50 delay=100
Line 41: Line 41:
./imaptest - append=100,0 logout=0 msgs=10000000 imaptest - append=100,0 logout=0 msgs=10000000
Line 47: Line 47:
./imaptest copybox=Trash imaptest copybox=Trash
Line 53: Line 53:
./imaptest auth=100 imaptest auth=100
Line 58: Line 58:
./imaptest test=tests rawlog imaptest test=tests rawlog

ImapTest Examples

Basics:

imaptest host=127.0.0.1 port=143 user=testuser pass=testpass mbox=dovecot.mbox

Test IMAP server compliancy:

imaptest checkpoint=1
imaptest checkpoint=1 logout=0 expunge=10
imaptest checkpoint=1 rawlog no_pipelining
imaptest own_msgs expunge=5 logout=1
imaptest own_flags expunge=5 logout=1
imaptest logout=0 search=100 expunge=10 clients=1

If you want to do benchmarking, you can set it to run for specified amount of time, and you should also give random number generator the same seed every time:

imaptest seed=123 secs=300

If you want to test/benchmark only the login+logout speed, use:

imaptest - select=0

To create a lot of long-running clients doing STATUS and NOOPs:

imaptest clients=100 - logout=0 status=50 noop=50 delay=100

Benchmarking how fast messages can be saved:

imaptest - append=100,0 logout=0 msgs=10000000

To test copying messages:

imaptest copybox=Trash

By default LOGIN command is used. If you want to try AUTHENTICATE PLAIN:

imaptest auth=100

Run scripted tests from a given directory:

imaptest test=tests rawlog

None: ImapTest/Examples (last edited 2023-11-07 21:13:28 by TimoSirainen)