Hadrian: various improvements around the 'test' rule

Authored by alpmestan on Mar 5 2019, 6:22 AM.

Description

Hadrian: various improvements around the 'test' rule

  • introduce a -k/--keep-test-files flag to prevent cleanup
  • add -dstg-lint to the options that are always passed to tests
  • infer library ways from the compiler to be tested instead of getting them from the flavour (like make)
  • likewise for figuring out whether the compiler to be tested is "debugged"
  • specify config.exeext
  • correctly specify config.in_tree_compiler, instead of always passing True
  • fix formatting of how we pass a few test options
  • add (potential) extensions to check-* program names
  • build check-* programs with the compiler to be tested
  • set TEST_HC_OPTS_INTERACTIVE and PYTHON env vars when running tests

Details

Committed
Marge Bot <ben+marge-bot@smart-cactus.org>Mar 8 2019, 4:50 AM
Parents
rGHC1675d40afe07: Always do the worker/wrapper split for NOINLINEs
Branches
Unknown
Tags
Unknown
Marge Bot <ben+marge-bot@smart-cactus.org> committed rGHC48927a9a1e6b: Hadrian: various improvements around the 'test' rule (authored by alpmestan).Mar 8 2019, 4:50 AM