summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2022-12-14 12:19:21 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-12-17 08:07:51 -0500
commitad21f4efe6882ca0929db6bd331db174a36e41aa (patch)
treebbf98856fde9dbe00cb3d3b46a6127861ca43c8c
parentda3f1e91a353f7fe37b3a25144f99c84d4a8dd70 (diff)
downloadhaskell-ad21f4efe6882ca0929db6bd331db174a36e41aa.tar.gz
ci: support hello.wasm in ci.sh cross testing logic
-rwxr-xr-x.gitlab/ci.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index bce606f679..b1283d9f56 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -608,6 +608,10 @@ function test_hadrian() {
install_bindist _build/bindist/ghc-*/ "$instdir"
echo 'main = putStrLn "hello world"' > expected
run "$test_compiler" -package ghc "$TOP/.gitlab/hello.hs" -o hello
+ # Despite "-o hello", ghc may output something like hello.exe or
+ # hello.wasm depending on the backend. For the time being let's
+ # just move it to hello before proceeding to running it.
+ mv hello.wasm hello || true
${CROSS_EMULATOR:-} ./hello > actual
run diff expected actual
elif [[ -n "${REINSTALL_GHC:-}" ]]; then