summaryrefslogtreecommitdiff
path: root/.gitlab
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-04-13 17:36:30 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-27 10:04:55 -0400
commit50d78d3bad4fda94ca32fd484578543b03aa0a6c (patch)
tree9f1d5bc6b99a06f582f9ecea009a3b9179c6bec7 /.gitlab
parent2c00d9048873f3d6d7e188dd1ef7f670a83a5c94 (diff)
downloadhaskell-50d78d3bad4fda94ca32fd484578543b03aa0a6c.tar.gz
ci: Explicitly handle failures in test_hadrian
We also disable the stage1 testing which is broken. Related to #21072
Diffstat (limited to '.gitlab')
-rwxr-xr-x.gitlab/ci.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 824699e9c7..f4ccd269b2 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -555,7 +555,7 @@ function test_hadrian() {
--test-compiler=stage-cabal \
--test-root-dirs=testsuite/tests/perf \
--test-root-dirs=testsuite/tests/typecheck \
- "runtest.opts+=${RUNTEST_ARGS:-}"
+ "runtest.opts+=${RUNTEST_ARGS:-}" || fail "hadrian cabal-install test"
else
cd _build/bindist/ghc-*/
case "$(uname)" in
@@ -572,15 +572,13 @@ function test_hadrian() {
cd ../../../
test_compiler="$TOP/_build/install/bin/ghc$exe"
-
- run_hadrian \
- test \
- --test-root-dirs=testsuite/tests/stage1 \
- --test-compiler=stage1 \
- "runtest.opts+=${RUNTEST_ARGS:-}"
-
- shell ls
- shell ls _build/stage-cabal/bin
+ # Disabled, see #21072
+ # run_hadrian \
+ # test \
+ # --test-root-dirs=testsuite/tests/stage1 \
+ # --test-compiler=stage1 \
+ # "runtest.opts+=${RUNTEST_ARGS:-}" || fail "hadrian stage1 test"
+ #info "STAGE1_TEST=$?"
# Ensure the resulting compiler has the correct bignum-flavour
test_compiler_backend=$(${test_compiler} -e "GHC.Num.Backend.backendName")
@@ -600,7 +598,9 @@ function test_hadrian() {
--summary-junit=./junit.xml \
--test-have-intree-files \
--test-compiler="${test_compiler}" \
- "runtest.opts+=${RUNTEST_ARGS:-}" \
+ "runtest.opts+=${RUNTEST_ARGS:-}" || fail "hadrian main testsuite"
+
+ info "STAGE2_TEST=$?"
fi