Enable Asan tests in CI

For now memory leaks are ignored.
This commit is contained in:
Rodrigo Arias 2023-04-24 12:28:31 +02:00
parent a8944b3763
commit 8a92023cf3
2 changed files with 15 additions and 0 deletions

View File

@ -21,6 +21,13 @@ build:rt-tests:
script: script:
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.ovni-rt - nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.ovni-rt
build:asan:
stage: build
tags:
- nix
script:
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.ovni-asan
build:no-mpi: build:no-mpi:
stage: build stage: build
tags: tags:

View File

@ -161,6 +161,14 @@ let
cmakeFlags = old.cmakeFlags ++ [ "-DUSE_MPI=OFF" ]; cmakeFlags = old.cmakeFlags ++ [ "-DUSE_MPI=OFF" ];
}); });
ovni-asan = last.ovni-rt.overrideAttrs (old: {
cmakeFlags = old.cmakeFlags ++ [ "-DCMAKE_BUILD_TYPE=Asan" ];
# Ignore leaks in tests for now, only check memory errors
preCheck = old.preCheck + ''
export ASAN_OPTIONS=detect_leaks=0
'';
});
}); });
in in