imap4d: rewrite testsuite in Autotest.
* configure.ac (IMAP_AUTHOBJS): Remove subst variable. Use conditional instead. Configure imap4d/tests for testing. Build imap4d/tests/Makefile and imap4d/tests/atlocal. * imap4d/Makefile.am (SUBDIRS): Add tests. [MU_COND_GSASL]: Define AUTH_GSASL [MU_COND_GSSAPI]: Define AUTH_GSSAPI (imap4d_SOURCES): Include AUTH_GSASL and AUTH_GSSAPI (imap4d_LDADD,imap4d_DEPENDENCIES): Remove reference to IMAP_AUTHOBJS. (EXTRA_DIST): Remove. * imap4d/tests/.gitignore: New file. * imap4d/tests/IDEF0955.at: New file * imap4d/tests/IDEF0956.at: New file * imap4d/tests/Makefile.am * imap4d/tests/anystate.at: New file * imap4d/tests/atlocal.in * imap4d/tests/create01.at: New file * imap4d/tests/create02.at: New file * imap4d/tests/examine.at: New file * imap4d/tests/expunge.at: New file * imap4d/tests/id.at: New file * imap4d/tests/list.at: New file * imap4d/tests/search.at: New file * imap4d/tests/select.at: New file * imap4d/tests/status.at: New file * imap4d/tests/testsuite.at: New file * imap4d/fetch.c (fetch_io): Improve range checking. If the requested number of bytes is greater than maximum, truncate it. * imap4d/imap4d.c: New option --test. (test_mode): New global variable. (imap4d_session_setup0): Fix improperly allocated automatic variable. (main): Call GSASL and GSSAPI initializations only if mu_gsasl_enabled() returns true. * imap4d/imap4d.h (test_mode): New extern. * imap4d/preauth.c: Do not complain about failed getpeername in test mode. * imap4d/select.c: Fix human-readable response texts. * include/mailutils/gsasl.h (mu_gsasl_module_data)<enable>: New member. (mu_gsasl_enabled): New proto. * libmailutils/mailbox/mailbox.c (mu_mailbox_flush): (mu_mailbox_append_message,mu_mailbox_sync) (mu_mailbox_expunge): Use MU_STREAM_WRITE instead of MU_STREAM_RDWR. * libmu_auth/gsasl.c (mu_gsasl_module_data): Fix initialization. (mu_gsasl_enabled): New function. * libmu_cfg/gsasl.c (mu_gsasl_param): New parameter "enable".
Showing
27 changed files
with
1004 additions
and
39 deletions
imap4d/tests/.gitignore
0 → 100644
imap4d/tests/IDEF0955.at
0 → 100644
imap4d/tests/IDEF0956.at
0 → 100644
imap4d/tests/Makefile.am
0 → 100644
imap4d/tests/anystate.at
0 → 100644
imap4d/tests/atlocal.in
0 → 100644
imap4d/tests/create01.at
0 → 100644
imap4d/tests/create02.at
0 → 100644
imap4d/tests/examine.at
0 → 100644
imap4d/tests/expunge.at
0 → 100644
imap4d/tests/id.at
0 → 100644
imap4d/tests/list.at
0 → 100644
imap4d/tests/search.at
0 → 100644
imap4d/tests/select.at
0 → 100644
imap4d/tests/status.at
0 → 100644
imap4d/tests/testsuite.at
0 → 100644
-
Please register or sign in to post a comment