ci: Run valgrind/memcheck tasks with 2 CPUs
... and increase the memory only for UBSan, ASan, LSan builds. Those are the ones who need more memory.
This commit is contained in:
parent
e70acab601
commit
b4ac1a1d5f
|
@ -263,8 +263,6 @@ task:
|
||||||
# Sanitizers
|
# Sanitizers
|
||||||
task:
|
task:
|
||||||
<< : *LINUX_CONTAINER
|
<< : *LINUX_CONTAINER
|
||||||
container:
|
|
||||||
memory: 2G
|
|
||||||
env:
|
env:
|
||||||
ECDH: yes
|
ECDH: yes
|
||||||
RECOVERY: yes
|
RECOVERY: yes
|
||||||
|
@ -273,11 +271,15 @@ task:
|
||||||
CTIMETEST: no
|
CTIMETEST: no
|
||||||
matrix:
|
matrix:
|
||||||
- name: "Valgrind (memcheck)"
|
- name: "Valgrind (memcheck)"
|
||||||
|
container:
|
||||||
|
cpu: 2
|
||||||
env:
|
env:
|
||||||
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
|
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
|
||||||
WRAPPER_CMD: "valgrind --error-exitcode=42"
|
WRAPPER_CMD: "valgrind --error-exitcode=42"
|
||||||
SECP256K1_TEST_ITERS: 2
|
SECP256K1_TEST_ITERS: 2
|
||||||
- name: "UBSan, ASan, LSan"
|
- name: "UBSan, ASan, LSan"
|
||||||
|
container:
|
||||||
|
memory: 2G
|
||||||
env:
|
env:
|
||||||
CFLAGS: "-fsanitize=undefined,address -g"
|
CFLAGS: "-fsanitize=undefined,address -g"
|
||||||
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
|
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
|
||||||
|
|
Loading…
Reference in New Issue