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
Vsevolod Stakhov
b102838942
[Test] Store stdout/stderr in robot
2 years ago
Vsevolod Stakhov
a52fb3845c
[Minor] Fix rubbish stuff
2 years ago
Vsevolod Stakhov
c1ae852907
[Minor] Do not try to modify constant memory
3 years ago
Vsevolod Stakhov
a69bb975ba
[Test] Fix broken tests as it is confirmed by browser \m/
3 years ago
Vsevolod Stakhov
ee9655827a
[Test] Some fixes to html unit tests
3 years ago
Vsevolod Stakhov
2b925196b7
[Test] Remove obsoleted test
3 years ago
Andrew Lewis
8d22202dc9
[Fix] Fix an edge case in BITCOIN_ADDR rule
- when using PCRE
- and different address types are present
3 years ago
Vsevolod Stakhov
0bdefa4ef9
[Test] Use --help from doctest and not glib
3 years ago
Vsevolod Stakhov
420725bcd0
[Test] Rework some tests to subcases
3 years ago
Vsevolod Stakhov
447755d6c8
[Test] Slightly reorganize tests
3 years ago
Vsevolod Stakhov
61ee19336b
[Minor] Add one more case
3 years ago
Vsevolod Stakhov
de7ac4e372
[Minor] Add a simple routine to remove smtp comments in place
3 years ago
Vsevolod Stakhov
acc4b64809
[Project] Add process exceptions for invisible text
3 years ago
Vsevolod Stakhov
c6b5d38af6
[Test] Log stderr in robot
3 years ago
Andrew Lewis
37d7bee0fe
[Feature] external_relay plugin
3 years ago
Andrew Lewis
89ecb1b26b
[Test] Unmerge http / tcp tests
3 years ago
Andrew Lewis
9c12fd9609
[Test] Fix segmentation fault check
3 years ago
Andrew Lewis
0feada14ff
[Test] Fix coverage hopefully
3 years ago
Vsevolod Stakhov
ab8882972d
[Minor] Always use c++ linker now
3 years ago
Andrew Lewis
5f7dd6e1f2
[Test] Merge test suites; use settings
3 years ago
Vsevolod Stakhov
9647a701ab
[Minor] Fix multiple @ at the beginnig
3 years ago
Vsevolod Stakhov
db4ef54517
[Minor] Fix parsing of some bogus urls
3 years ago
Andrew Lewis
5569dbacfc
[Test] Cleanup
- Use consistent naming for setup/teardown
- Remove some unused files
- Sort & align variables
3 years ago
Andrew Lewis
a84cecac6b
[Test] Use automatically exported variables
3 years ago
Andrew Lewis
db4da2c22d
[Test] Use lupa for templating rspamd configs
3 years ago
Vsevolod Stakhov
fbe6bf7a0a
[Test] Add a unit test for buckets variables in the mempool
3 years ago
Andrew Lewis
8a2ba3a5c3
[Minor] Fix REPLYTO_ADDR_EQ_FROM for normalised addresses
3 years ago
Anton Yuzhaninov
8a5448883e
[Rules] Add raw addresses to MULTIPLE_FROM options
It is confusing to have MULTIPLE_FROM with a single address in options,
which happens if one of addresses is empty - usually because of
misplaces <>. While here simplify condition.
3 years ago
Vsevolod Stakhov
c15c3243bc
[Test] Add unit tests for stream compression
3 years ago
Andrew Lewis
548f117986
[Test] url-redirector
3 years ago
Vsevolod Stakhov
f03c580c85
[Test] Add some more rfc2047 tricky cases
3 years ago
Vsevolod Stakhov
673a02cea3
[Test] Add verbose flag to cxx test
3 years ago
Vsevolod Stakhov
10fb4d1a18
[Project] Css: Move some of the tests to the doctest
3 years ago
Vsevolod Stakhov
1a799bffa7
[Project] Css: Add some c++ unit tests
3 years ago
Vsevolod Stakhov
57fe176918
[Project] Add doctest unit testing library
3 years ago
Vsevolod Stakhov
a06f20da1b
[Project] Css: Add display value support
3 years ago
Vsevolod Stakhov
7e99c501c8
[Project] Css: Add dimensions handling
3 years ago