Vsevolod Stakhov
068dd8ec2b
[Test] Improve settings test
Issue: #4181
2 years ago
Pavel Podkorytov
e68d8aba00
[Minor] Add test for lower_utf8 selector transformation
2 years ago
Vsevolod Stakhov
392294a398
[Test] Add testing for the augmentations logic
2 years ago
Vsevolod Stakhov
a320d3f098
[Test] Compare lists sorted...
2 years ago
Vsevolod Stakhov
1727d1df98
[Test] Properly set test cases
2 years ago
Vsevolod Stakhov
58ed7953ef
[Test] Do not cause sigsegv on failed test
2 years ago
Vsevolod Stakhov
1d32119e30
[Test] Add a test with DKIM key with spaces in base64
Issue: #4149
2 years ago
Petr Vaněk
7e5c3c3494
Remove dangling comment
The dangling comment is result of commit bfe48b659b
("[Fix] Fix
logging for rspamadm"), where the same comment was removed from rspamadm
but this one stayed. It should be removed as well.
2 years ago
Vsevolod Stakhov
f24d59a607
[Minor] Add missing include
Issue: #4131
2 years ago
Vsevolod Stakhov
2fa0e126c7
[Minor] Update my email and the copyright year
2 years ago
Vsevolod Stakhov
c6d0f564e3
[Test] Split test
2 years ago
Vsevolod Stakhov
8e387f507a
[Test] Add test for csv detection
2 years ago
Anton Yuzhaninov
431b3b892f
[Minor] Microoptimize lua_util.str_endswith
Use find to check string suffix instead of sub (which involves string
interning of a returned string). Benchmarks with LuaJIT 2.1.0 shows
that an option with find is significantly faster.
While here added unit test for this function.
2 years ago
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
2 years ago
Vsevolod Stakhov
b3e1ff9e76
[Test] Add a test case
Issue: #4081
2 years ago
Anton Yuzhaninov
07ed388683
[Minor] Tune Lua GC for Lua unit tests
Fixes sporadic unit test failures (on Mac OS X).
2 years ago
Andrew Lewis
225c8d92b6
[Test] task:remove_symbol() on grouped virtual symbol
2 years ago
Vsevolod Stakhov
354ad43417
[Test] Fix mime dump test
2 years ago
Vsevolod Stakhov
2130677e50
[Test] Fix string formatting
2 years ago
Vsevolod Stakhov
3f57a0d2d9
[Test] Remove broken test
2 years ago
Vsevolod Stakhov
5f34f2323a
[Test] Add a small test for xxh3
2 years ago
Vsevolod Stakhov
d5131fcf2f
[Test] Improve envelope stuff testing
2 years ago
Vsevolod Stakhov
5367d1ed1e
[Test] Fix tests
2 years ago
Vsevolod Stakhov
f4feae7c5d
[Test] Oops, add a missing require
2 years ago
Vsevolod Stakhov
d71ef8ca42
[Test] Add unit test for message to ucl function
2 years ago
Vsevolod Stakhov
d7fa89c8b0
[Test] One more fix
2 years ago
Vsevolod Stakhov
b1c611505e
[Test] Add a simple config helper for the unit tests
2 years ago
Pragadeesh Chandiran
c279d99e0a
[Test] Fix neural plugin tests
2 years ago
Vsevolod Stakhov
f2cc671ac5
[Test] Fix automatic training tests
2 years ago
Vsevolod Stakhov
28b6b571cf
[Test] Add tests for DKIM key record parsing
Issue: #3955
2 years ago
Andrew Lewis
4d3d5401c2
[Test] whitelist: fix tests
2 years ago
Vsevolod Stakhov
26e33fb5c1
[Test] Move tests from lua to C++
2 years ago
Vsevolod Stakhov
90b664698c
[Minor] Fix test message as we now process received headers as expected
2 years ago
Vsevolod Stakhov
48d7dbdb49
[Test] Add the test for the previous fix
2 years ago
Vsevolod Stakhov
cae3206e6d
[Test] Add tests for broken qp decoding
2 years ago
Vsevolod Stakhov
4041c2d640
[Minor] Plug some leaks on error paths
Found by: coverity scan
2 years ago
Andrew Lewis
7077b64c23
[Test] Avoid importing user configuration
2 years ago
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
2 years ago
Vsevolod Stakhov
aa4b2c6e0c
[Minor] Fix exit codes usage to POSIX portable EXIT_FAILURE
2 years ago
Vsevolod Stakhov
1dfd85e022
[Minor] Adjust unit test
2 years ago
Vsevolod Stakhov
8b66801d1a
[Minor] Try to deal with urls with backslashes in path
2 years ago
Andrew Lewis
21d90e6e98
[Test] Selector that returns list of rspamd_text
2 years ago
Vsevolod Stakhov
a57f64996e
[Minor] Remove extra namespace
2 years ago
Vsevolod Stakhov
5b17d5900c
[Minor] Add std::hash specialisation + tests
2 years ago
Vsevolod Stakhov
e75e11f87b
[Minor] Add std::swap specialisation
2 years ago
Vsevolod Stakhov
a52bfa87d6
[Test] Separate local_ptr unit tests
2 years ago
Vsevolod Stakhov
acaebca84f
[Minor] Add weak ptr counterpart
2 years ago
Vsevolod Stakhov
fd044f4cf0
[Minor] Enable make_shared like behaviour
2 years ago
Vsevolod Stakhov
0fdc946553
[Test] Add some tests
2 years ago
Vsevolod Stakhov
276d5a92ef
[Minor] Fix parsing of some misformed email addresses
2 years ago