Skip to content

Commit

Permalink
CI changes to attempt debugging VC sanitizer problem
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Jan 11, 2023
1 parent 5ba70c5 commit 3ffabe4
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/scripts/ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def determine_flags(target, target_os, target_cpu, target_cc, cc_bin, ccache,

make_prefix = []
test_prefix = []
test_cmd = [os.path.join(build_dir, 'botan-test'), '--data-dir=%s' % os.path.join(root_dir, 'src', 'tests', 'data'), '--run-memory-intensive-tests']
test_cmd = [os.path.join(build_dir, 'botan-test'),
'--data-dir=%s' % os.path.join(root_dir, 'src', 'tests', 'data'),
'--run-memory-intensive-tests']

# generate JUnit test report
if test_results_dir:
Expand Down Expand Up @@ -171,19 +173,14 @@ def sanitize_kv(some_string):
flags += ['--ldflags=-static']

if target == 'coverage':
flags += ['--with-coverage-info']

if target in ['coverage']:
flags += ['--with-debug-info']
flags += ['--with-coverage-info', '--with-debug-info']

if target in ['coverage', 'sanitizer', 'fuzzers']:
flags += ['--terminate-on-asserts']

if target == 'valgrind':
flags += ['--with-valgrind']
test_prefix = ['valgrind', '--error-exitcode=9', '-v', '--leak-check=full', '--show-reachable=yes']
# valgrind is single threaded anyway
test_cmd += ['--test-threads=1']
# valgrind is slow
slow_tests = [
'cryptobox', 'dh_invalid', 'dh_kat', 'dh_keygen',
Expand All @@ -208,13 +205,13 @@ def sanitize_kv(some_string):

if target in ['fuzzers', 'sanitizer']:
flags += ['--with-debug-asserts']

if target_cc in ['clang', 'gcc']:
flags += ['--enable-sanitizers=address,undefined']
else:
flags += ['--enable-sanitizers=address']
flags += ['--enable-sanitizers=address', '--with-debug-info']

if target in ['valgrind', 'sanitizer', 'fuzzers']:
test_cmd += ['--test-threads=1']
flags += ['--disable-modules=locking_allocator']

if target == 'emscripten':
Expand Down

0 comments on commit 3ffabe4

Please sign in to comment.