Enable Asan tests in CI
For now memory leaks are ignored.
This commit is contained in:
parent
a8944b3763
commit
8a92023cf3
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user