aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Drone coverage fix (#2592)Anton Yuzhaninov2018-10-141-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build as nobody This showld fix coverage files writing. At least some coverage files (*.gcda, *.gcno) are written by rspamd running as nobody. * Comment luacov-coveralls * Run rspamd-test as nobody too * Run coveralls from build root (/rspamd/build) It need to find all `.gcda` files. * Hack for coveralls was moved to Docker image * Add test debug * More debug * Workaround to writing *.gcda from different users *.gcda files written in parallel by root and by nobody * Remove debug * Use current build number instead of previous * Remove unused variable * Add more parameters - If CI detected we don't need to check if service_job_id and other fields in json already filled - this info anyway comes from environment - coveralls.io API is not documented. Code from: https://github.com/lemurheavy/coveralls-ruby/ and https://github.com/coveralls-clients/coveralls-python/ was used as an example. * In case of error there is no url in json respnse Print message field anyway - it can contain useful error message. * Add debug * Simplify * Fix: for pull request CI_BUILD_EVENT set to 'pull_request' * Remove debug
* [Minor] Python...Vsevolod Stakhov2018-10-131-1/+1
|
* [Minor] Python...Vsevolod Stakhov2018-10-131-3/+3
|
* [Minor] Fucking pythonVsevolod Stakhov2018-10-131-2/+2
|
* [Minor] Another try to fix bloody pythonVsevolod Stakhov2018-10-131-5/+9
|
* [Minor] Further try to fix bloody pythonVsevolod Stakhov2018-10-131-1/+1
|
* [Minor] Use python3Vsevolod Stakhov2018-10-131-5/+5
|
* Drone speedup (#2588)Anton Yuzhaninov2018-10-131-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start switchind test to custom Docker images Using Docker images with pre-installed delendencies will speedup testing. * Debug build in drone.io * Use variable instead hardcoded path to the source * Debug variable substitution by drone Also according to comments in code DRONE_WORKSPACE is deprecated and CI_WORKSPACE is a new form. * One more try to use variables. It looks like drone uses same rules as docker-compose: https://docs.docker.com/compose/compose-file/#variable-substitution * Cleanup debug * Less verbose make output * Be consistent in variable escaping It works without escaping only becuse ${VAR} currently expanded by drone, but $VAR is not. * Use alpine base image for nodejs It is smaller. * Return rspamd-test * Revert variable escaping Wihtout escaping it is more easy to copy-past command for testing. Just don't use ${var} when var should be expanded by shell and not drone. * Add debug * Fix yaml parsing error * Fix exit code capture It should be done on the same line, because drone insert 'echo + cmd' between commands. * Remove debug * Readability No functional changes. * Return functional tests * Be consistent * Add git stub for coveralls * Send coverage * Fix yaml parsing error * Add links to Dockerfiles * Send test log in case of test failure XXX if rspamd-test failed, but functional was successful robot log will be attached (but not useful). * Don't run rspamd-test and functional tests in parallel It looks like there is a race condition in writing coverage files. * Try to run tests in parallel * Add debug * Fix parallel test run test/rspamd-test and functional test both use luacov.stats.out file in current directory. Run ./rspamd-test from anther directory. * Use drone condition for sending coveralls report Also don't send report if empty tocken was provided. * Add mininal python3 compatibility
* [Test] Fix tests that are not RFC conformantVsevolod Stakhov2018-10-121-4/+4
|
* [Minor] Adopted merger to work with droneMikhail Galanin2018-10-091-3/+9
|
* [Test] fixed unit testMikhail Galanin2018-10-091-2/+1
|
* Merge pull request #2577 from negram/fix-edge-caseVsevolod Stakhov2018-10-081-35/+55
|\ | | | | Fix edge case
| * [Test] one more test caseMikhail Galanin2018-10-081-35/+55
| |
* | Merge pull request #2576 from negram/more-coverageVsevolod Stakhov2018-10-087-0/+7
|\ \ | | | | | | [Test] Collect coverage in all functional tests
| * | [Test] Collect coverage in all functional testsMikhail Galanin2018-10-087-0/+7
| |/
* / [Minor] Added coverage collection documentationMikhail Galanin2018-10-081-0/+58
|/
* [Test] Coverage merge/push scriptMikhail Galanin2018-10-081-0/+139
|
* [Test] Collect coverage from rspamd workersMikhail Galanin2018-10-082-0/+107
|
* [Test] use the coverage collector in testsMikhail Galanin2018-10-053-1/+3
|
* [Test] added Lua test coverage collector for functional testsMikhail Galanin2018-10-051-0/+46
|
* [Test] Fix reload testVsevolod Stakhov2018-10-022-3/+3
|
* [Test] Fix and extend whitelist testsVsevolod Stakhov2018-10-013-49/+35
|
* [Test] Add more test messagesVsevolod Stakhov2018-10-014-0/+242
|
* [Test] Add more fake domainsVsevolod Stakhov2018-10-011-0/+15
|
* [Minor] Fixed sync redis connection with default arguments in rspamadmMikhail Galanin2018-10-011-3/+3
|
* [Test] Fix AV testsVsevolod Stakhov2018-09-291-4/+4
|
* Merge pull request #2540 from negram/dns-sync-rspamadmVsevolod Stakhov2018-09-272-1/+53
|\ | | | | Dns sync rspamadm
| * [Test] fixed config pathMikhail Galanin2018-09-271-1/+1
| |
| * [Test] Fixed undefined variable usageMikhail Galanin2018-09-271-3/+4
| |
| * [Test] Add output loggingMikhail Galanin2018-09-271-0/+2
| |
| * [Test] Added test for dns request from rspamadmMikhail Galanin2018-09-272-1/+50
| |
* | [Minor] Close file once it is not neededMikhail Galanin2018-09-271-4/+4
|/
* [Minor] Add Lua coverage collection for unit-tests (#2528)Mikhail Galanin2018-09-251-1/+14
| | | | | | | | | | | | | | * [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
* [Test] Actually the functional testMikhail Galanin2018-09-241-0/+30
|
* [Test] Final cases for selectors - register_* and functional for regexpsMikhail Galanin2018-09-245-1/+98
|
* [Minor] Fix test casesVsevolod Stakhov2018-09-232-5/+5
|
* Revert "[Test] Check selector before processing"Vsevolod Stakhov2018-09-221-17/+16
| | | | This reverts commit baceaa985ebbb23ae7d26a2050f50bfd9544b85c.
* [Test] Check selector before processingVsevolod Stakhov2018-09-221-16/+17
|
* [Test] More test cases for selectorsMikhail Galanin2018-09-213-1/+315
| | | | Also added negative cases (i.e. it doesn't work when it shouldn't) and combinations of selectors
* [Test] Small fixes on diff rendererMikhail Galanin2018-09-211-3/+2
|
* [Test] Use init_url() frim the new helperMikhail Galanin2018-09-213-26/+7
|
* [Test] Added test helper moduleMikhail Galanin2018-09-211-0/+18
|
* Merge pull request #2510 from negram/more-testVsevolod Stakhov2018-09-201-11/+25
|\ | | | | [Test] more tests
| * [Test] more testsMikhail Galanin2018-09-201-11/+25
| |
* | [Test] Nicely print table difference when they do not matchMikhail Galanin2018-09-201-1/+106
|/
* [Test] Enable one more now-working test-caseMikhail Galanin2018-09-201-7/+6
|
* [Test] We don't this chek inside the test anymore. We have command-line ↵Mikhail Galanin2018-09-201-6/+0
| | | | param instead
* [Test] Pass test-case patten into test engineMikhail Galanin2018-09-203-1/+16
| | | | | | | | | 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
* [Test] Uncommented cases which are now workingMikhail Galanin2018-09-201-51/+28
|
* Merge pull request #2502 from negram/selectors-testVsevolod Stakhov2018-09-191-0/+228
|\ | | | | [Test] Few "basic" test cases for selectors