From 2d9827bb904a13a61ffc25a7754da2fc851eff03 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Wed, 31 Jul 2024 14:33:34 +0300 Subject: [PATCH] [CI] Add asan and ubsan tests for macos --- .gitlab-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e76e9fa4..ef0bfa86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,6 +48,26 @@ test-macos: tags: - macOS +test-macos-asan: + <<: *test-template + tags: + - macOS + variables: + CFLAGS: '-fsanitize=address -g' + # LeakSanitizer doesn't work inside the container because it requires + # ptrace so we disable it. + ASAN_OPTIONS: 'detect_leaks=0' + # AddressSanitizer adds some extra symbols so we expect a failure from + # the external symbols test. + XFAIL_TESTS: test_external_symbols + +test-macos-ubsan: + <<: *test-template + tags: + - macOS + variables: + CFLAGS: '-fsanitize=undefined -fno-sanitize-recover=all -fno-sanitize=alignment -g' + #test-distcheck: # <<: *test-template # script: