Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# shellcheck shell=bash disable=SC2154
|
|
|
|
ctestCheckHook() {
|
|
echo "Executing ctestCheckHook"
|
|
|
|
runHook preCheck
|
|
|
|
local buildCores=1
|
|
|
|
if [ "${enableParallelChecking-1}" ]; then
|
|
buildCores="$NIX_BUILD_CORES"
|
|
fi
|
|
|
|
local flagsArray=(
|
|
"-j$buildCores"
|
|
# This is enabled by the cmakeConfigurePhase by exporting
|
|
# CTEST_OUTPUT_ON_FAILURE, but it makes sense it enable it globally here
|
|
# as well.
|
|
"--output-on-failure"
|
|
)
|
|
|
|
local disabledTestsArray=()
|
|
concatTo disabledTestsArray disabledTests
|
|
|
|
if [ ${#disabledTestsArray[@]} -ne 0 ]; then
|
|
local ctestExcludedTestsFile=$NIX_BUILD_TOP/.ctest-excluded-tests
|
|
disabledTestsString="$(concatStringsSep "\n" disabledTestsArray)"
|
|
echo -e "$disabledTestsString" >"$ctestExcludedTestsFile"
|
|
flagsArray+=("--exclude-from-file" "$ctestExcludedTestsFile")
|
|
fi
|
|
|
|
concatTo flagsArray ctestFlags checkFlags checkFlagsArray
|
|
|
|
echoCmd 'ctest flags' "${flagsArray[@]}"
|
|
ctest "${flagsArray[@]}"
|
|
|
|
echo "Finished ctestCheckHook"
|
|
|
|
runHook postCheck
|
|
}
|
|
|
|
if [ -z "${dontUseCTestCheck-}" ] && [ -z "${checkPhase-}" ]; then
|
|
checkPhase=ctestCheckHook
|
|
fi
|