Commit Graph

150 Commits

Author SHA1 Message Date
Vsevolod Stakhov
b4442b41ba [Minor] Add rspamd_str_make_utf_valid routine + unit tests 2018-12-03 11:30:22 +00:00
Vsevolod Stakhov
e278006a10 [Minor] Pet luacheck 2018-10-23 17:02:12 +01:00
Vsevolod Stakhov
79c94a99ba [Test] Try to fix test segfault 2018-10-16 17:01:00 +01:00
Mikhail Galanin
9dddef61cc [Test] fixed unit test 2018-10-09 09:24:49 +01:00
Mikhail Galanin
4d4119d3c3 [Test] one more test case 2018-10-08 17:53:50 +01:00
Mikhail Galanin
70571f2b55 [Minor] Add Lua coverage collection for unit-tests (#2528)
* [Minor] Add Lua coverage collection for unit-tests

* [Minor] add coverage collection to CircleCI

* [Minor] split into two lines

* [Minor] sudo

* [Minor] fixed nonsense

* [Minor] Fix functional test
2018-09-25 15:22:28 +01:00
Mikhail Galanin
31270b9fa0 [Test] Final cases for selectors - register_* and functional for regexps 2018-09-24 13:23:17 +01:00
Vsevolod Stakhov
eb644d5f13 Revert "[Test] Check selector before processing"
This reverts commit baceaa985e.
2018-09-22 11:54:49 +01:00
Vsevolod Stakhov
baceaa985e [Test] Check selector before processing 2018-09-22 11:49:57 +01:00
Mikhail Galanin
dc5e04b98e [Test] More test cases for selectors
Also added negative cases (i.e. it doesn't work when it shouldn't) and combinations of selectors
2018-09-21 17:14:22 +01:00
Mikhail Galanin
da4067b0dc [Test] Small fixes on diff renderer 2018-09-21 09:56:49 +01:00
Mikhail Galanin
90c979e64e [Test] Use init_url() frim the new helper 2018-09-21 09:56:11 +01:00
Mikhail Galanin
0b0cad929f [Test] Added test helper module 2018-09-21 09:54:51 +01:00
Vsevolod Stakhov
094548aeed
Merge pull request #2510 from negram/more-test
[Test] more tests
2018-09-20 17:14:40 +01:00
Mikhail Galanin
a411591033 [Test] Nicely print table difference when they do not match 2018-09-20 16:36:35 +01:00
Mikhail Galanin
68be6b0567 [Test] more tests 2018-09-20 16:02:17 +01:00
Mikhail Galanin
a29439606c [Test] Enable one more now-working test-case 2018-09-20 11:31:39 +01:00
Mikhail Galanin
abea727a9e [Test] We don't this chek inside the test anymore. We have command-line param instead 2018-09-20 11:30:47 +01:00
Mikhail Galanin
99b68e8e51 [Test] Pass test-case patten into test engine
So that now we can set which test cases should be runned:

$ ./test/rspamd-test -p /rspamd/lua -t selectors.lua -c "case .* rcpts"
$ ./test/rspamd-test -p /rspamd/lua -c "case 1st rcpts"

-c accepts Lua-pattern
2018-09-20 11:26:36 +01:00
Mikhail Galanin
4bb33df06c [Test] Uncommented cases which are now working 2018-09-20 09:44:44 +01:00
Vsevolod Stakhov
571ce4fc5e
Merge pull request #2502 from negram/selectors-test
[Test] Few "basic" test cases for selectors
2018-09-19 18:04:53 +01:00
Mikhail Galanin
90e1a1f4ea [Test] Rewrote test using new assertion 2018-09-19 15:38:52 +01:00
Mikhail Galanin
f22a82dfc6 Merge branch 'master' into selectors-test 2018-09-19 15:06:43 +01:00
Mikhail Galanin
27689aa22f [Test] Few "basic" test cases for selectors 2018-09-19 14:57:40 +01:00
Mikhail Galanin
bd3b9f376e [Test] Assertions for table comparsion that are nicer to use 2018-09-19 14:51:01 +01:00
Vsevolod Stakhov
2c5620474d [Test] Remove legacy tokenizer tests 2018-08-24 10:19:55 +01:00
Vsevolod Stakhov
4201529a7c [Minor] Fix entities decoding 2018-08-21 15:04:35 +01:00
Mikhail Galanin
5dd0a6b7fb [Minor] Benchmark for lua calls 2018-08-20 10:27:12 +01:00
Vsevolod Stakhov
111fb4d10c
Merge pull request #2385 from negram/extract_specific_urls-rework
Extract specific urls rework
2018-07-31 19:26:08 +01:00
Mikhail Galanin
daa0c73eee [Minor] added test parsing html/phished urls 2018-07-31 15:53:51 +01:00
Vsevolod Stakhov
fb3cfd2368 [Fix] Avoid one extra byte writing 2018-07-31 15:48:24 +01:00
Vsevolod Stakhov
1333bbcf81 [Feature] Implement parsing of scoped IPv6 addresses 2018-07-31 11:46:38 +01:00
Mikhail Galanin
48b89787a5 [Minor] Pass params via table instead of long arglist. Added esld_limit param to lua_util.extract_specific_urls() 2018-07-31 09:31:50 +01:00
Vsevolod Stakhov
8a64455c56 [Test] Add received headers parsing unit tests 2018-07-03 13:59:14 +01:00
Vsevolod Stakhov
0a390cfc72 [Minor] Reduce speed test cycles in unit tests 2018-07-03 13:58:49 +01:00
Vsevolod Stakhov
fc5da89335 [Minor] Fix more tests 2018-06-23 19:15:34 +01:00
Vsevolod Stakhov
a33a4c9e7b [Test] Fix html unit test 2018-06-23 16:56:10 +01:00
Vsevolod Stakhov
73c88c4437 [Test] Another fix for folding tests 2018-04-03 19:49:46 +01:00
Vsevolod Stakhov
d972da305c [Test] Fix folding unit tests 2018-04-03 19:31:59 +01:00
Vsevolod Stakhov
4cd157f07b [Test] Improve folding tests 2018-04-02 14:58:16 +01:00
Vsevolod Stakhov
9f626b1f79 [Minor] Fix ac-trie test case as it cannot deal with \0 2018-03-31 16:48:41 +01:00
Vsevolod Stakhov
92387a131c [Test] Improve trie unit testing 2018-03-30 14:44:59 +01:00
Vsevolod Stakhov
8160aa8038 [Test] Improve tokenization tests 2018-03-30 14:27:14 +01:00
Vsevolod Stakhov
814691082a [Test] Fix email address parsing test 2018-03-30 09:59:53 +01:00
Vsevolod Stakhov
1d3e32fe02 [Test] Improve URL unit tests 2018-03-30 09:34:34 +01:00
Vsevolod Stakhov
d85fd8877d [Fix] Fix folding and folding tests 2018-03-29 17:20:57 +01:00
Vsevolod Stakhov
ea9d518099 [Fix] Fix lua RSA verify and its tests 2018-03-29 15:24:39 +01:00
Vsevolod Stakhov
a78961b427 [Minor] Variuous unit tests fixes 2018-03-29 15:03:00 +01:00
Vsevolod Stakhov
44b9961895 [Fix] Plug memory leak when setting email addresses from Lua
+ Optimize emails addr structure and API

MFH: rspamd-1.6
2017-11-10 19:26:20 +00:00
Andrew Lewis
af4c44e361 [Test] Fix tests 2017-08-16 22:26:39 +02:00