aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [Fix] Perform policy downgrade on sample out, add testsVsevolod Stakhov2018-11-282-1/+23
|
* [Test] Add tests for pct=0 caseVsevolod Stakhov2018-11-283-0/+27
|
* [Test] Add tests for broken richtext caseVsevolod Stakhov2018-11-272-0/+32
|
* [Minor] Fix testsVsevolod Stakhov2018-11-211-2/+3
|
* [Test] Remove broken testsVsevolod Stakhov2018-11-164-12/+0
|
* [Test] Add tests for #2584 and #2349Vsevolod Stakhov2018-11-134-0/+181
|
* [Test] Fix broken testsVsevolod Stakhov2018-11-121-4/+4
|
* [Minor] Improve logic of parts selection and fix some corner casesVsevolod Stakhov2018-11-061-0/+2
|
* [Test] Add test for composites with symbol groupsAlexander Moisseev2018-10-303-1/+47
|
* [Test] Add composites testAlexander Moisseev2018-10-303-0/+214
|
* Speedup lua coverage collecting for functional testAnton Yuzhaninov2018-10-271-28/+65
| | | | | | | | | | | luacov-coveralls merge mode (-j flag) was created to join reports containing coverage for different source files (e.g. C and Lua code). Coverage for the same file in two report is not merged, instead one source file is added several times to source_files array in JSON. As a result if we use luacov-coveralls -j on report for same source files it ends up spending a lot of time on parsing and dumping big JSON files. This change reduces functional test time from 7+ minutes to 4+ minutes.
* TCP Connect robot keywordAnton Yuzhaninov2018-10-241-0/+7
| | | | | * reduce timeout to a reasonable value * explicitly close socket, don't wait for GC
* Fix race in Cases.210 Clickhouse.001Anton Yuzhaninov2018-10-241-1/+1
| | | | | | | Clickhouse test sometimes fails with an error: ConnectionError: HTTPConnectionPool(host='localhost', port=18123): Max retries exceeded with url: /?default_format=JSONEachRow (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f40ad96fdd0>: Failed to establish a new connection: [Errno 111] Connection refused',)) Fix this by waiting for TCP port instead pid file.
* Add variable for clickhouse portAnton Yuzhaninov2018-10-243-2/+3
|
* [Minor] Pet luacheckVsevolod Stakhov2018-10-232-21/+12
|
* Fix grammarAnton Yuzhaninov2018-10-221-2/+2
|
* Share robot log and report on https://ci.rspamd.com/testlogs/Anton Yuzhaninov2018-10-221-0/+51
| | | | | | | Sending functional test log (about 5Mb) in a email attachmend was temporary solution. Upload them to https://ci.rspamd.com/testlogs/ instead. Link to log/report will be printed in build log.
* [Fix] Use proper syntax for making DNS requestsVsevolod Stakhov2018-10-211-1/+1
|
* Fix coverage (#2603)Anton Yuzhaninov2018-10-203-18/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add utility to prepare C coverage for upload to coveralls.io It turned out that it is more easy to write own script then debug and fix coveralls utility (https://github.com/eddyxu/cpp-coveralls). gcov-coveralls.py can be used as a replacement for coveralls. * Save coverage data from .gcda files only once Coverage data in .gcda files is merged after each binary invocation, so we can run all test and then gather coverage data. If we dump them two times execution counts will be more then they be. * Switch from coveralls (cpp-coveralls) to own script Problem with coveralls was, that coverage for source files outside build directory was not added to the report. * Add tool to dump info from json for coveralls.io * Add debug * Fix: don't die if there is no service_job_id in json * Debug * Fix dump_coveralls.py * Rename to gcov_coveralls.py (s/-/_/) For most files in this repo '_' is used as separator. * Don't add source code to coveralls JSON According to https://docs.coveralls.io/api-introduction Coverals don't need source code, only MD5 digest to tracks changes. Anyway source code is already added by luacov-coveralls and source_digest is added by cpp-coveralls and gcov_coveralls.py Both options seems to work for now. * Provide path to source directory to merge_coveralls.py merge_coveralls.py has code to filter files and remove prefixes. When --root points to source directory merge_coveralls.py can strip prefix from absolute path in JSONs generated by luacov-coveralls. * Style Don't add parameters with default values. * Make --output optional It useful mainly for debugging. We can send report without saving it. * Log CI_COMMIT_AUTHOR env var It is not clear from drone.io source how CI_COMMIT_AUTHOR variable is set. Log it to see what it means. * Move merge_coveralls.py to test/tools This script is used not only for funcional test coverage, but for rspamd-test coverage too. * Remove debug * Style Use more compact formatting. * Write comment about parallel tests running [SKIP CI] Document why running tests in parallel may be bad idea (but still do so). * Fix typo [SKIP CI]
* Merge pull request #2597 from citrin/tests-kill-race-fixVsevolod Stakhov2018-10-171-25/+19
|\ | | | | Tests kill race fix
| * Cleanup unused importsAnton Yuzhaninov2018-10-161-3/+0
| |
| * [functional test] Fix races in shutdown_processAnton Yuzhaninov2018-10-161-22/+19
| | | | | | | | | | | | | | | | Currently functional test sometimes fails with and error: Teardown failed: NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=2259) Rewrite process termination - there is no need to send signals in a loop many times.
* | [Test] Try to fix test segfaultVsevolod Stakhov2018-10-161-11/+12
|/
* [Minor] Fix test build with lua >= 5.3Vsevolod Stakhov2018-10-161-0/+12
|
* Add git repo info to coveralls payloadAnton Yuzhaninov2018-10-151-0/+14
| | | | | Again other implementations were used as reference, because API is not fully documented.
* 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
|