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;
|
doCheck = true;
|
||||||
|
|
||||||
checkPhase = ''
|
# Prevent the execution of tests known to fail.
|
||||||
runHook preCheck
|
preCheck = ''
|
||||||
|
cat <<EOW >CTestCustom.cmake
|
||||||
make tests -j $NIX_BUILD_CORES
|
SET(CTEST_CUSTOM_TESTS_IGNORE smpi-replay-multiple)
|
||||||
ctest -j $NIX_BUILD_CORES --output-on-failure -E smpi-replay-multiple
|
EOW
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
Loading…
Reference in New Issue