Skip to content

Testsuite using stage=1 compiler

I sometimes do

make stage=1

in the testsuite directory. Usually because I've broken GHC and the stage-2 compiler won't build. Rather than debug GHC itself I want to run the testsuite to see if I can expose the bug in a smaller program.

I can do this, but the failures I'm looking for are concealed in a cloud of failures from tests that simply can't be run with stage-1. Notably Template Haskell.

It'd be great if

  • I could flag tests in all.T as "stage 2 only"
  • The testsuite runner would skip such tests when stage=1

Can't be hard! We don't need to modify all the all.T files immediately.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information