summaryrefslogtreecommitdiff
path: root/.gitlab/ci.sh
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-11-06 17:27:17 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 00:26:55 -0500
commitd8262fdcc2a1be32b7e41fd8c550a53d54d3c821 (patch)
tree2e47fa7ee517c9d2031a0bb5d0641ca3f3cc8957 /.gitlab/ci.sh
parent435f42ea0c8f0a9cfe865ec5011c2a5d1f3aaec7 (diff)
downloadhaskell-d8262fdcc2a1be32b7e41fd8c550a53d54d3c821.tar.gz
ci: add a stronger test for cross bindists
This commit adds a simple GHC API program that parses and reprints the original hello world program used for basic testing of cross bindists. Before there's full cross-compilation support in the test suite driver, this provides better coverage than the original test.
Diffstat (limited to '.gitlab/ci.sh')
-rwxr-xr-x.gitlab/ci.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 1200e883e4..217440bbaf 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -580,9 +580,8 @@ function test_hadrian() {
local instdir="$TOP/_build/install"
local test_compiler="$instdir/bin/${cross_prefix}ghc$exe"
install_bindist _build/bindist/ghc-*/ "$instdir"
- echo 'main = putStrLn "hello world"' > hello.hs
- echo "hello world" > expected
- run "$test_compiler" hello.hs
+ echo 'main = putStrLn "hello world"' > expected
+ run "$test_compiler" -package ghc "$TOP/.gitlab/hello.hs" -o hello
$CROSS_EMULATOR ./hello > actual
run diff expected actual
else