Skip to content

Commit 57e6d08

Browse files
committed
CI: Add soak/paranoia tests
1 parent b8a8c58 commit 57e6d08

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ run_matrix_for_current_compiler() {
112112
# Build some tests with sanitizers
113113
if [[ ${build_sanitizers} -ne 0 ]]; then
114114
run_single --compiler "${compiler}" --build-dir build-asan --sanitizer asan --targets test_connection test_crypto --run-tests
115+
run_single --compiler "${compiler}" --build-dir build-asan --sanitizer asan \
116+
--run-tests --tests test_connection:soak \
117+
--phase test
115118
run_single --compiler "${compiler}" --build-dir build-ubsan --sanitizer ubsan --targets test_connection test_crypto --run-tests
116119
if [[ ${CXX} == *clang* ]]; then
117120
run_single --compiler "${compiler}" --build-dir build-tsan --sanitizer tsan --targets test_connection test_crypto --run-tests
@@ -133,6 +136,9 @@ run_matrix_for_current_compiler() {
133136

134137
# Build debug build
135138
run_single --compiler "${compiler}" --build-dir build-cmake-debug --build-type Debug --run-tests
139+
run_single --compiler "${compiler}" --build-dir build-cmake-debug --build-type Debug \
140+
--run-tests --tests test_connection:soak \
141+
--phase test
136142

137143
# Build binaries with LTO. Optional, some compilers don't support LTO.
138144
if ! run_single --compiler "${compiler}" --build-dir build-cmake-lto --build-type Release --lto --run-tests; then

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ jobs:
163163
164164
python3 .github/run-single-config.py "${args[@]}"
165165
166+
- name: Test debug soak
167+
if: matrix.row == 'clang-openssl-baseline'
168+
run: |
169+
set -euo pipefail
170+
python3 .github/run-single-config.py \
171+
--compiler "${{ matrix.compiler }}" \
172+
--build-dir "build-debug" \
173+
--phase test \
174+
--run-tests \
175+
--tests test_connection:soak test_p2p.py:--spewlevel=debug:--loglevel-p2prendezvous=debug
176+
166177
# Don't do it this way. This causes the main badge to
167178
# go red if one of the flavors fails.
168179
## Trigger testing of more linux flavors
@@ -291,3 +302,13 @@ jobs:
291302
working-directory: '${{ github.workspace }}/build-debug'
292303
run: ninja
293304
shell: cmd
305+
306+
- name: Test debug soak (connection)
307+
working-directory: '${{ github.workspace }}/build-debug/bin'
308+
run: test_connection.exe soak
309+
shell: cmd
310+
311+
- name: Test debug soak (p2p)
312+
working-directory: '${{ github.workspace }}/build-debug/bin'
313+
run: py -3 test_p2p.py --spewlevel=debug --loglevel-p2prendezvous=debug
314+
shell: cmd

.github/workflows/macos.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,13 @@ jobs:
8989

9090
- name: Build (Debug)
9191
run: cmake --build ${{github.workspace}}/build-debug --config Debug
92+
93+
- name: Test debug soak (connection)
94+
working-directory: ${{github.workspace}}/build-debug/bin
95+
run: ./test_connection soak
96+
shell: bash
97+
98+
- name: Test debug soak (p2p)
99+
working-directory: ${{github.workspace}}/build-debug/bin
100+
run: python3 test_p2p.py --spewlevel=debug --loglevel-p2prendezvous=debug
101+
shell: bash

0 commit comments

Comments
 (0)