Skip to content

Commit

Permalink
Use a matrix for nightly valgrind (Take 9)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Oct 31, 2024
1 parent 9fa244d commit 0735ce1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:

include:
- compiler: clang
cxxflags: "" # default compilation flags
cxxflags: "" # default compilation flags
target: "valgrind-full" # memory bug detection
- compiler: clang
cxxflags: "-Os"
Expand Down
13 changes: 9 additions & 4 deletions src/scripts/ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,15 @@ def sanitize_kv(some_string):

test_prefix = ['valgrind',
'-v',
'--error-exitcode=9',
'--leak-check=full',
'--show-reachable=yes',
'--track-origins=yes']
'--error-exitcode=9']

# For finding memory bugs, we're enabling more features that add runtime
# overhead which we don't need for the secret-dependent execution checks
# that 'valgrind-ct' and 'valgrind-ct-full' are aiming for.
if target not in ['valgrind-ct', 'valgrind-ct-full']:
test_prefix += ['--leak-check=full',
'--show-reachable=yes',
'--track-origins=yes']

build_config = os.path.join(build_dir, 'build', 'build_config.json')
pretest_cmd = ['python3', os.path.join(root_dir, 'src', 'ct_selftest', 'ct_selftest.py'), "--build-config-path=%s" % build_config, os.path.join(build_dir, 'botan_ct_selftest')]
Expand Down

0 comments on commit 0735ce1

Please sign in to comment.