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:
Millian Poquet 2019-05-14 18:27:51 +02:00
parent aa29b79e8a
commit 00fc5bd08f

View File

@ -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;