mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
simgrid: override checkPhase -> preCheck
This commit changes how failing tests are ignored. - Previously, the whole checkPhase was overridden. - Now, preCheck generates a ctest ignore file. ctest doc: https://gitlab.kitware.com/cmake/community/wikis/doc/ctest/Testing-With-CTest#customizing-ctest
This commit is contained in:
parent
aa29b79e8a
commit
00fc5bd08f
@ -86,13 +86,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
make tests -j $NIX_BUILD_CORES
|
||||
ctest -j $NIX_BUILD_CORES --output-on-failure -E smpi-replay-multiple
|
||||
|
||||
runHook postCheck
|
||||
# Prevent the execution of tests known to fail.
|
||||
preCheck = ''
|
||||
cat <<EOW >CTestCustom.cmake
|
||||
SET(CTEST_CUSTOM_TESTS_IGNORE smpi-replay-multiple)
|
||||
EOW
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
Loading…
Reference in New Issue
Block a user