mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
CI: fail test jobs when no tests are found (--no-tests=error)
libeigen/eigen!2373 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ set +x
|
|||||||
|
|
||||||
EIGEN_CI_CTEST_PARALLEL=${EIGEN_CI_CTEST_PARALLEL:-${NPROC}}
|
EIGEN_CI_CTEST_PARALLEL=${EIGEN_CI_CTEST_PARALLEL:-${NPROC}}
|
||||||
EIGEN_CI_CTEST_REPEAT=${EIGEN_CI_CTEST_REPEAT:-3}
|
EIGEN_CI_CTEST_REPEAT=${EIGEN_CI_CTEST_REPEAT:-3}
|
||||||
ctest_cmd="ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${EIGEN_CI_CTEST_PARALLEL} --output-on-failure --no-compress-output --build-noclean ${target} ${exclude}"
|
ctest_cmd="ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${EIGEN_CI_CTEST_PARALLEL} --output-on-failure --no-compress-output --no-tests=error --build-noclean ${target} ${exclude}"
|
||||||
|
|
||||||
echo "Running initial tests..."
|
echo "Running initial tests..."
|
||||||
if ${ctest_cmd} -T test; then
|
if ${ctest_cmd} -T test; then
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ if (${EIGEN_CI_CTEST_REGEX}) {
|
|||||||
$target = "-L","${EIGEN_CI_CTEST_LABEL}"
|
$target = "-L","${EIGEN_CI_CTEST_LABEL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
$ctest_cmd = { ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${NPROC} --output-on-failure --no-compress-output --build-noclean ${target} }
|
$ctest_cmd = { ctest ${EIGEN_CI_CTEST_ARGS} --parallel ${NPROC} --output-on-failure --no-compress-output --no-tests=error --build-noclean ${target} }
|
||||||
|
|
||||||
Write-Host "Running initial tests..."
|
Write-Host "Running initial tests..."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user