aboutsummaryrefslogtreecommitdiffstats
path: root/ci/lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-25 17:11:44 -0700
committerJunio C Hamano <gitster@pobox.com>2022-10-25 17:11:44 -0700
commit4039b8f112a3c7bc355b6cc73bbfca4762f71ef3 (patch)
treea25280864c8e44b9fecc397f15b1e6a03e969ec9 /ci/lib.sh
parentMerge branch 'jc/ci-osx-with-sha1dc' (diff)
parentci: add address and undefined sanitizer tasks (diff)
downloadgit-4039b8f112a3c7bc355b6cc73bbfca4762f71ef3.tar.gz
git-4039b8f112a3c7bc355b6cc73bbfca4762f71ef3.zip
Merge branch 'jc/more-sanitizer-at-ci'
Enable address and undefined sanitizer tasks at GitHub Actions CI. * jc/more-sanitizer-at-ci: ci: add address and undefined sanitizer tasks
Diffstat (limited to 'ci/lib.sh')
-rwxr-xr-xci/lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/lib.sh b/ci/lib.sh
index 51e47aa5d6..1808e3b1ce 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -280,6 +280,12 @@ linux-leaks)
export GIT_TEST_PASSING_SANITIZE_LEAK=true
export GIT_TEST_SANITIZE_LEAK_LOG=true
;;
+linux-asan)
+ export SANITIZE=address
+ ;;
+linux-ubsan)
+ export SANITIZE=undefined
+ ;;
esac
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"