snowleopard / hadrian

Hadrian: a new build system for the Glasgow Haskell Compiler. Now merged into the GHC tree!
https://gitlab.haskell.org/ghc/ghc/tree/master/hadrian
MIT License
208 stars 39 forks source link

Does hadrian support the equivalent of: make STAGE=1 TEST="A B C" ? #556

Closed alpmestan closed 6 years ago

alpmestan commented 6 years ago

i.e running some tests against the stage1 compiler (<build root>/stage0/bin/ghc). Simon PJ expressed interest in having hadrian support this, and I'm not sure the current validate/test rules support it. Does it? If not, I'll add this issue to my TODO :-)

snowleopard commented 6 years ago

@alpmestan Yes, sure, we will need to support existing flags for testsuite. I think this is the existing issue

https://github.com/snowleopard/hadrian/issues/187

If it's incomplete, please add a comment there.

Mistuke commented 6 years ago

There are quite a few other make variables though https://github.com/ghc/ghc/blob/master/testsuite/mk/test.mk#L10 are a few.

chitrak7 commented 6 years ago

With #621 We can close this now @snowleopard ?

snowleopard commented 6 years ago

@chitrak7 Let me give this a try. I'll close the issue if everything works as expected.

snowleopard commented 6 years ago

@alpmestan By the way, what do you think -- does #621 provide enough functionality?

alpmestan commented 6 years ago

Yes, AFAICT. #621 gives us --test-compiler, which when set to stage1 and in conjuction with --only gives us what the title of this issue is about. Closing this issue, please reopen if there's a problem.

snowleopard commented 6 years ago

@alpmestan Awesome, thanks!

snowleopard commented 6 years ago

And also thanks to @chitrak7, of course!