Hadrian questions

Andrey Mokhov andrey.mokhov at newcastle.ac.uk
Sun Jan 27 23:15:18 UTC 2019


Hi Richard,

First of all, thank you trying Hadrian and generating several new bug reports. This is very helpful!

> I think it would be very convenient to make a script we can all install (in our PATH) that will
> search for hadrian's build.sh and run it. Then, we can just say `build` (or whatever we name
> the script) anywhere in a tree. Of course, I could just do this locally, but I doubt I'm the only
> one who would enjoy it.

This sounds like a good feature request to me. Could you please add it on Trac, so it's not lost?

> Also, I just had a look at https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/doc/testsuite.md,
> and I don't see a way to run just one directory of the testsuite. I use that ability currently quite
> often (because I know that I've mucked with the typechecker, so I just run the typecheck tests 
> before doing full CI). Is this possible?

Yes, this should be possible. I believe Alp is currently working on the testsuite with the goal of fully matching the functionality provided by the Make build system. I think this feature is already on his list, but I'm CC-ing him just in case.

Cheers,
Andrey

================================================
Date: Fri, 25 Jan 2019 08:18:08 -0500
From: Richard Eisenberg <rae at cs.brynmawr.edu>
To: Matthew Pickering <matthewtpickering at gmail.com>
Cc: GHC <ghc-devs at haskell.org>
Subject: Re: Hadrian questions

Maybe I'm just lazy, but would it be possible to shorten these? Specifically, could there be a root-level file `build` that triggers Hadrian? That way, I could just say ./build instead of hadrian/build.sh.

Actually, even that isn't quite right. It is common, for example, for me to be deep in the testsuite, trying to fix a test. I twiddle something (say, the output file), and then I want to rerun the test. But now I have to go back out to the root of my tree to run the test, no? So: I think it would be very convenient to make a script we can all install (in our PATH) that will search for hadrian's build.sh and run it. Then, we can just say `build` (or whatever we name the script) anywhere in a tree. Of course, I could just do this locally, but I doubt I'm the only one who would enjoy it.

Also, I just had a look at https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/doc/testsuite.md, and I don't see a way to run just one directory of the testsuite. I use that ability currently quite often (because I know that I've mucked with the typechecker, so I just run the typecheck tests before doing full CI). Is this possible?

Thanks for all the work on this!
Richard



More information about the ghc-devs mailing list