1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/imap/tests
Nikita Popov ae86edefe7 Skip imap_lsub_basic.phpt under asan
LeakSanitizer fails on Azure with:

> Tracer caught signal 11: addr=0x0 pc=0x7f86cde7c8b0 sp=0x7f86c46bcce0
2020-09-24 17:03:53 +02:00
..
2018-11-13 17:00:06 +03:00
2020-02-03 22:52:20 +01:00
2018-11-13 17:00:06 +03:00
2020-02-03 22:52:20 +01:00
2020-09-18 14:28:32 +02:00
2020-09-18 14:28:32 +02:00
2019-10-02 01:09:37 +03:00
2020-09-18 23:02:01 +02:00
2019-11-07 21:31:47 +01:00
2020-09-18 14:28:32 +02:00
2020-02-03 22:52:20 +01:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2020-02-03 22:52:20 +01:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00
2019-10-02 01:09:37 +03:00
2020-09-18 23:02:01 +02:00
2020-09-18 23:02:01 +02:00

The imap extension tests

Many of the tests in this directory require a mail server to be running, if there is no mail server the test will skip and warn, see skipif.inc for details.

To make the tests run parameters in the skipif.inc and imap_include.inc files will need to be changed to match the local mailserver configuration.

The tests have been checked using dovecot (on Linux 32 and 64 bit systems) and hMailServer on Windows. The tests are intended to be mailserver agnostic.

Set-up tests on Ubuntu (checked on Ubuntu 18.04 (Bionic))

The necessary packages can be installed using the following command; apt-get install libc-client-dev libkrb5-dev dovecot-core dovecot-pop3d dovecot-imapd

The build of PHP will need to be compiled with the following flags:

--with-imap --with-kerberos --with-imap-ssl

Then run the set-up script ext/imap/tests/setup.sh which will add the vmail group and user which is used by Dovecot for the mailbox. It will also copy the ext/imap/tests/dovecot.conf and ext/imap/tests/dovecotpass to the correct location for Dovecot and restarts it for the new configuration to be enabled.