From afd0ef5d561b1a8ebbd8971ec0f272d7108707ea Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 2 Oct 2021 10:42:13 -0500 Subject: [PATCH] Add ASAN, optional, CI core test. --- .ci/azp-linux-asan-test.yml | 22 ++++++++++++++++++++++ azure-pipelines.yml | 10 ++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .ci/azp-linux-asan-test.yml diff --git a/.ci/azp-linux-asan-test.yml b/.ci/azp-linux-asan-test.yml new file mode 100644 index 000000000..ec72cc40d --- /dev/null +++ b/.ci/azp-linux-asan-test.yml @@ -0,0 +1,22 @@ +steps: +- bash: | + set -e + uname -a + ./.ci/linux-cxx-install.sh + displayName: Install +- bash: | + set -e + cd src/engine + set PATH=${PATH};${CXX_PATH} + ./build.sh ${TOOLSET} + ./b2 -v + cd ../.. + ./src/engine/b2 -a address-sanitizer=on toolset=${TOOLSET} b2 + displayName: Build +- bash: | + set -e + export B2=`ls -1 .build/*/debug/address-sanitizer-on/cxxstd-11-iso/b2` + cd test + python test_all.py ${TOOLSET} + cd .. + displayName: Test diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 31eb1dad7..9424591c7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -107,6 +107,16 @@ stages: steps: - template: .ci/azp-macos-test.yml + - job: 'Linux_ASAN' + strategy: + matrix: + Clang ${{variables.clang_latest}}: {TOOLSET: "clang-${{variables.clang_latest}}", PACKAGES: "clang-${{variables.clang_latest}}", LLVM_OS: "${{variables.linux_latest_os}}", LLVM_VER: 13, VM_IMAGE: "${{variables.linux_latest_vm}}"} + pool: + vmImage: $(VM_IMAGE) + continueOnError: 'true' + steps: + - template: .ci/azp-linux-asan-test.yml + - stage: Compilers dependsOn: [Core] jobs: