commit 70528c245: [Minor] Css: Run c++ tests on drone
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Mar 12 18:07:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-03-12 18:01:32 +0000
URL: https://github.com/rspamd/rspamd/commit/70528c245162514d3591f7330ab5b48649fef423 (HEAD -> master)
[Minor] Css: Run c++ tests on drone
---
.drone.yml | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/.drone.yml b/.drone.yml
index 0d48d49ea..59253e005 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -44,6 +44,7 @@ steps:
- ncpu=$(getconf _NPROCESSORS_ONLN)
- make -j $ncpu install
- make -j $ncpu rspamd-test
+ - make -j $ncpu rspamd-test-cxx
- name: build-clang
# https://github.com/rspamd/rspamd-build-docker/blob/master/fedora-build/Dockerfile
@@ -73,6 +74,7 @@ steps:
- ncpu=$(getconf _NPROCESSORS_ONLN)
- make -j $ncpu install
- make -j $ncpu rspamd-test
+ - make -j $ncpu rspamd-test-cxx
# We run rspamd-test (unit test) and functional test (runned by robot) in
# parallel to save time. To avoid conflict in saving lua coverage we run them
@@ -111,6 +113,16 @@ steps:
# luacov-coveralls reads luacov.stats.out written by rspamd-test using luacov module
# and writes json report for coveralls.io service
- luacov-coveralls -o /rspamd/build/unit_test_lua.json --dryrun
+ - set +e
+ - ./rspamd-test-cxx -s; EXIT_CODE=$?
+ - set -e
+ # shell sets exit status of a process terminated by a signal to '128 + signal-number'
+ # if rspamd-test was terminated by a signal it should be SIGSEGV or SIGABRT, try to examine core
+ - >
+ if [ $EXIT_CODE -gt 128 ]; then
+ gdb --batch -ex 'thread apply all bt full' -c /var/tmp/*.rspamd-test-cxx.core ./rspamd-test-cxx;
+ exit $EXIT_CODE;
+ fi
- exit $EXIT_CODE
- name: test-fedora-clang
@@ -139,6 +151,16 @@ steps:
if [ $EXIT_CODE -gt 128 ]; then
gdb --batch -ex 'bt' -c /var/tmp/*.rspamd-test.core ./rspamd-test;
fi
+ - set +e
+ - ./rspamd-test-cxx -s; EXIT_CODE=$?
+ - set -e
+ # shell sets exit status of a process terminated by a signal to '128 + signal-number'
+ # if rspamd-test was terminated by a signal it should be SIGSEGV or SIGABRT, try to examine core
+ - >
+ if [ $EXIT_CODE -gt 128 ]; then
+ gdb --batch -ex 'thread apply all bt full' -c /var/tmp/*.rspamd-test-cxx.core ./rspamd-test-cxx;
+ exit $EXIT_CODE;
+ fi
- cat /tmp/ubsan.* || true
- exit $EXIT_CODE
More information about the Commits
mailing list