diff options
author | Cheng Shao <terrorjack@type.dance> | 2022-12-14 12:19:21 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-12-17 08:07:51 -0500 |
commit | ad21f4efe6882ca0929db6bd331db174a36e41aa (patch) | |
tree | bbf98856fde9dbe00cb3d3b46a6127861ca43c8c /.gitlab/ci.sh | |
parent | da3f1e91a353f7fe37b3a25144f99c84d4a8dd70 (diff) | |
download | haskell-ad21f4efe6882ca0929db6bd331db174a36e41aa.tar.gz |
ci: support hello.wasm in ci.sh cross testing logic
Diffstat (limited to '.gitlab/ci.sh')
-rwxr-xr-x | .gitlab/ci.sh | 4 |
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 |