Vsevolod Stakhov
354ad43417
[Test] Fix mime dump test
pirms 2 gadiem
Vsevolod Stakhov
2130677e50
[Test] Fix string formatting
pirms 2 gadiem
Vsevolod Stakhov
3f57a0d2d9
[Test] Remove broken test
pirms 2 gadiem
Vsevolod Stakhov
5f34f2323a
[Test] Add a small test for xxh3
pirms 2 gadiem
Vsevolod Stakhov
d5131fcf2f
[Test] Improve envelope stuff testing
pirms 2 gadiem
Vsevolod Stakhov
5367d1ed1e
[Test] Fix tests
pirms 2 gadiem
Vsevolod Stakhov
f4feae7c5d
[Test] Oops, add a missing require
pirms 2 gadiem
Vsevolod Stakhov
d71ef8ca42
[Test] Add unit test for message to ucl function
pirms 2 gadiem
Vsevolod Stakhov
d7fa89c8b0
[Test] One more fix
pirms 2 gadiem
Vsevolod Stakhov
b1c611505e
[Test] Add a simple config helper for the unit tests
pirms 2 gadiem
Pragadeesh Chandiran
c279d99e0a
[Test] Fix neural plugin tests
pirms 2 gadiem
Vsevolod Stakhov
f2cc671ac5
[Test] Fix automatic training tests
pirms 2 gadiem
Vsevolod Stakhov
28b6b571cf
[Test] Add tests for DKIM key record parsing
Issue: #3955
pirms 2 gadiem
Andrew Lewis
4d3d5401c2
[Test] whitelist: fix tests
pirms 2 gadiem
Vsevolod Stakhov
26e33fb5c1
[Test] Move tests from lua to C++
pirms 2 gadiem
Vsevolod Stakhov
90b664698c
[Minor] Fix test message as we now process received headers as expected
pirms 2 gadiem
Vsevolod Stakhov
48d7dbdb49
[Test] Add the test for the previous fix
pirms 2 gadiem
Vsevolod Stakhov
cae3206e6d
[Test] Add tests for broken qp decoding
pirms 2 gadiem
Vsevolod Stakhov
4041c2d640
[Minor] Plug some leaks on error paths
Found by: coverity scan
pirms 2 gadiem
Andrew Lewis
7077b64c23
[Test] Avoid importing user configuration
pirms 2 gadiem
Petr Vaněk
d37a3764e9
Add SYSTEM_DOCTEST cmake option
This gives packagers option to use system version of doctest rather than
bundled one. It is disabled by default. Additionally, there is no need
to link rspamd-test-cxx with doctest as it is is single header library.
Main reason for this change is that currently bundled version of
doctest-2.4.5 can't compile with glibc-2.34 [1]. However, this issue was
already fixed in upstream doctest-2.4.6 [2] in commit [3]. With this,
packagers can just bump doctest to fixed version.
[1] https://github.com/onqtam/doctest/issues/473
[2] https://github.com/onqtam/doctest/blob/master/CHANGELOG.md#246-2021-03-22
[3] 099d5414e9
pirms 2 gadiem
Vsevolod Stakhov
aa4b2c6e0c
[Minor] Fix exit codes usage to POSIX portable EXIT_FAILURE
pirms 2 gadiem
Vsevolod Stakhov
1dfd85e022
[Minor] Adjust unit test
pirms 2 gadiem
Vsevolod Stakhov
8b66801d1a
[Minor] Try to deal with urls with backslashes in path
pirms 2 gadiem
Andrew Lewis
21d90e6e98
[Test] Selector that returns list of rspamd_text
pirms 2 gadiem
Vsevolod Stakhov
a57f64996e
[Minor] Remove extra namespace
pirms 2 gadiem
Vsevolod Stakhov
5b17d5900c
[Minor] Add std::hash specialisation + tests
pirms 2 gadiem
Vsevolod Stakhov
e75e11f87b
[Minor] Add std::swap specialisation
pirms 2 gadiem
Vsevolod Stakhov
a52bfa87d6
[Test] Separate local_ptr unit tests
pirms 2 gadiem
Vsevolod Stakhov
acaebca84f
[Minor] Add weak ptr counterpart
pirms 2 gadiem
Vsevolod Stakhov
fd044f4cf0
[Minor] Enable make_shared like behaviour
pirms 2 gadiem
Vsevolod Stakhov
0fdc946553
[Test] Add some tests
pirms 2 gadiem
Vsevolod Stakhov
276d5a92ef
[Minor] Fix parsing of some misformed email addresses
pirms 2 gadiem
Vsevolod Stakhov
b102838942
[Test] Store stdout/stderr in robot
pirms 2 gadiem
Vsevolod Stakhov
a52fb3845c
[Minor] Fix rubbish stuff
pirms 2 gadiem
Vsevolod Stakhov
c1ae852907
[Minor] Do not try to modify constant memory
pirms 2 gadiem
Vsevolod Stakhov
a69bb975ba
[Test] Fix broken tests as it is confirmed by browser \m/
pirms 2 gadiem
Vsevolod Stakhov
ee9655827a
[Test] Some fixes to html unit tests
pirms 2 gadiem
Vsevolod Stakhov
2b925196b7
[Test] Remove obsoleted test
pirms 2 gadiem
Andrew Lewis
8d22202dc9
[Fix] Fix an edge case in BITCOIN_ADDR rule
- when using PCRE
- and different address types are present
pirms 2 gadiem
Vsevolod Stakhov
0bdefa4ef9
[Test] Use --help from doctest and not glib
pirms 3 gadiem
Vsevolod Stakhov
420725bcd0
[Test] Rework some tests to subcases
pirms 3 gadiem
Vsevolod Stakhov
447755d6c8
[Test] Slightly reorganize tests
pirms 3 gadiem
Vsevolod Stakhov
61ee19336b
[Minor] Add one more case
pirms 3 gadiem
Vsevolod Stakhov
de7ac4e372
[Minor] Add a simple routine to remove smtp comments in place
pirms 3 gadiem
Vsevolod Stakhov
acc4b64809
[Project] Add process exceptions for invisible text
pirms 3 gadiem
Vsevolod Stakhov
c6b5d38af6
[Test] Log stderr in robot
pirms 3 gadiem
Andrew Lewis
37d7bee0fe
[Feature] external_relay plugin
pirms 3 gadiem
Andrew Lewis
89ecb1b26b
[Test] Unmerge http / tcp tests
pirms 3 gadiem
Andrew Lewis
9c12fd9609
[Test] Fix segmentation fault check
pirms 3 gadiem