From 7bf9cb4e89858cc64965099b4cdd29c69989c90a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 22 Nov 2024 12:18:58 +0100 Subject: [PATCH 1/2] tests: Use LeakSanitizer to catch future memory leaks Signed-off-by: Jakub Jelen --- tests/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index ce874e66..3c640638 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -78,7 +78,7 @@ if get_option('b_sanitize') == 'address' name_prefix: '', ) - test_env.set('ASAN_OPTIONS', 'fast_unwind_on_malloc=0') + test_env.set('ASAN_OPTIONS', 'fast_unwind_on_malloc=0:detect_leaks=1') test_env.set('LSAN_OPTIONS', 'suppressions=@0@/lsan.supp'.format(meson.current_source_dir())) test_env.set('FAKE_DLCLOSE', fake_dlclose.full_path()) From 661f654cb07c783aeb30cb8d396afb4782c8cc4f Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 22 Nov 2024 15:44:17 +0100 Subject: [PATCH 2/2] ci: Fix kryoptic build by including all standard algorithms Signed-off-by: Jakub Jelen --- .github/workflows/integration.yml | 2 +- .github/workflows/kryoptic.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 53f40d06..0c6fb405 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -115,7 +115,7 @@ jobs: - name: Build Kryoptic run: | cd kryoptic - cargo build + cargo build --features standard - name: Setup, Build and Install pkcs11-provider run: | diff --git a/.github/workflows/kryoptic.yml b/.github/workflows/kryoptic.yml index a463a582..664047ac 100644 --- a/.github/workflows/kryoptic.yml +++ b/.github/workflows/kryoptic.yml @@ -75,8 +75,8 @@ jobs: - name: Build Kryoptic run: | cd kryoptic - cargo build - cargo test | tee testout.log 2>&1 + cargo build --features standard + cargo test --features standard | tee testout.log 2>&1 grep -q "0 failed" testout.log - name: Setup