Skip to content

Draft: Cross Test Suite

Moritz Angermann requested to merge wip/angerman/cross-test-suite into master

This mutilates the test-suite to support cross compilers.

This is to be run with e.g.

STAGE1_GHC=/path/to/ghc/inplace/bin/ghc-stage1 \
  WRAPPED_ISERV=/path/to/ghc/inplace/bin/iserv-wrapped \
  TEST_WRAPPER=$qemuOrWineOrNode \
  LD=$target-ld \
  STRIP=$target-strip \
  TEST_HC=/path/to/ghc/inplace/bin/ghc-stage1 \
  make test \
  THREADS=64 stage=1 VERBOSE=1

where iserv-wrapped is

#/usr/bin/env sh
$TEST_WRAPPER /path/to/ghc/ghc/inplace/lib/bin/ghc-iserv "$@"

This also needs additional patches to libraries: testsuite-submodule.diff

Edited by Andreas Klebinger

Merge request reports