History log of /dovecot/src/lib/test-lib.inc
Revision Date Author Comments Expand
5f08b0309190ec818d46bfe0e497468b30714a93 29-Dec-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

global: Rename timing API to stats-dist API The API wasn't really about timings specifically, but about statistics in general. The new stats service was already using it for tracking statistics for non-timing related numbers.

44d29bbfa14662dc1b2873f1a570a0767f827cd1 30-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

lib: Add bloom filter support

f6de86ea29e87fba001b6231d38a4c51e8a5c543 30-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

lib: Add murmurhash3 support Needed for bloom filters

8734467f39c1d36050380f07a408860404d60996 24-Nov-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

mempool-allocfree: Add linked-list malloc allocation This is useful when you want to actually free memory from pool too

4c7d704408fc77467143a945dc2d0a856f72e674 01-Nov-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add memarea API This can be used to create reference counted memory areas where a callback is called once the refcount drops to zero.

e9fe799e27b5a3b67c256766d4bafd388e560684 10-Oct-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add istream-try This can be used to automatically detect the underlying istream format from a given list of choices.

1de7b73a11afda43323410a4481d866930b1e632 05-Oct-2017 Aki Tuomi <aki.tuomi@dovecot.fi>

lib: Add multiplex stream support This allows having multiple channels of data in single stream.

0043fea12a75cf8fcf2892673106844376da8e76 07-Sep-2017 Stephan Bosch <stephan.bosch@dovecot.fi>

lib: lib-signals: Removed explicit notification of ioloop change through lib_signals_reset_ioloop() in favor of implicit method. Before, if the ioloop changed, the application had to explicitly notify lib-signals using lib_signals_reset_ioloop(). This is error-prone and requires doing this all over the Dovecot code base. Now, lib-signals registers an ioloop switch callback that deals with this implicitly. The application can detach lib-signals from the ioloop explicitly if delayed signal handling is not required/desired in the new ioloop. Specific delayed signal handlers can be exempt from this automated behavior using a flag, meaning that such signal handlers need to be moved between ioloops explicitly.

19b42eb8acd9aa4790476d5c42df304679b33de3 11-Jul-2017 Stephan Bosch <stephan.bosch@dovecot.fi>

lib: Created basic test suite for ostream-buffer.

9a18972285665fc8ce3709f444f0f1e72e8b71a7 28-Jun-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add unit test for file_create_locked()

c9d76e2baf653fa5504d6849e5c1aae32eff3c53 12-Jun-2017 Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi>

lib: import byte swapping & endian converting functions

6509aa7306649042e828fef9e2f280f4535ea137 08-Jun-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add test-mempool unit test. It verifies that the p_new() and p_realloc_type() handle overflows correctly. test-malloc-overflow already does this for the low-level MALLOC_*() macros, but here we're cheking that the actually used memory allocation macros also work.

71b92ca8e3ecfba24c2247df997719a4a482850c 08-Jun-2017 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add i_realloc_type() for i_realloc() that checks for overflows

b28403dc4da6ee942ff18315596b43d4c4e9b7bd 30-Jan-2017 Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi>

lib: Add tests for path-util

c81ec7de302a1c38f4ea27a82dad3b2f631701d9 23-Dec-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add unit test for istream-sized

ddf9529d37056f8817825f6265c27d8070123013 23-Dec-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add istream-jsonstr unit test.

b716136fc47efd434d60be5db262b4013e375fa9 16-Dec-2016 Timo Sirainen <timo.sirainen@dovecot.fi>

lib: Add MALLOC_MULTIPLY() and MALLOC_ADD() These can be used for calculating memory allocation sizes. If there's an overflow, the macro panics.

134b5022c0549daef243e2c3220bd0238f396868 29-Nov-2016 Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi>

lib: add tests for HMAC-SHA256 from RFC 4231

f7060b8499ed07205734cf7af94ad5405fa687b5 17-Nov-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

lib: Add test for iostream-proxy

4d9181518769b1f78d8078f7fae899fd0b95907f 17-Nov-2016 Aki Tuomi <aki.tuomi@dovecot.fi>

lib: Add tests for iostream-pump

458d877d84f62005e0ffc338f8591a8e2a36adad 03-Oct-2016 Stephan Bosch <stephan@rename-it.nl>

lib: uri-util: Implemented API to check generic URI syntax. This allows checking whether something is a valid URI of any type. This change adds a test suite for the generic URI syntax, which is currently the main purpose of the API addition. Apart from a few simple vality checks, the test suite also tests various URI examples from RFCs.

6335b1be387359ac461b0c34087bbba98a925a49 08-Aug-2016 Phil Carmody <phil@dovecot.fi>

lib: tests - give the tests names, using the new macros The lists of test function declarations and of test functions to call was basically the same list. Use the new test macros to squash them into one list, and then chose to name all the tests, so that you can select which ones to run. This can simplify the debug cycle when some of the tests are lengthy. e.g.: phil@phil:~/repos/dovecot-core$ src/lib/test-lib --match crc crc32 ................................................................ : ok 0 / 1 tests failed src/lib is clearly the most complicated case, conversions of others where filtering would be useful should be trivial following this example. Signed-off-by: Phil Carmody <phil@dovecot.fi>