Skip to content

Testing with GHC 7.0 and 7.2 AND some improvements to package-tests #3251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Mar 30, 2016

In the process, I refactored the test suite a bit to be more robust
and handle the --with-compiler more correctly in most cases.

One note: I turned off the HPC tests with the GHC and WITH_GHC
parameters don't match. In principle this should work but there
is some sort of bug. I don't plan on fixing the bug.

UPDATE: This patch set now also has some refactorings to try to eliminate the LBI parsing nonsense, by using build-tools as per #220.

@ezyang ezyang force-pushed the cabal-travis branch 2 times, most recently from 3799d34 to 7007086 Compare March 30, 2016 17:59
@ezyang
Copy link
Contributor Author

ezyang commented Mar 30, 2016

One downside with this patch is it increases the runtime of all tests as we repeatedly run the test suites from 7.0 and 7.2 for every built version. Perhaps we should have a dedicated 7.0/7.2 test ways, which build using some picked version of GHC (latest version?) and then test against 7.0/7.2. It wouldn't be necessary to even bother building test cabal-install, in this case.

@23Skidoo
Copy link
Member

That'd be nicer, I think. Hopefully that doesn't make .travis.yml overcomplicated.

@ezyang
Copy link
Contributor Author

ezyang commented Mar 30, 2016

It looks like, to do this, I'm going to have to take the script contents and put them in their own shell script; otherwise I can't write a big enough conditional. If people are OK with this I can do it.

@ezyang ezyang changed the title Testing with GHC 7.0 and 7.2. Testing with GHC 7.0 and 7.2 AND some improvements to package-tests Mar 31, 2016
@23Skidoo
Copy link
Member

Yes, I think it's fine. Some small parts of the build script already live under Cabal/misc.

I recently discovered that build-tools can be used to specify
dependencies on internal executables (haskell#220).  This means that
we can make a nice improvement to the package-tests test suite:
instead of manually building a Setup.hs script ourselves,
we can add one to the Cabal file for Cabal, and have the
test suite have a build-tools dependency on it.

Perhaps the only objection to this is that the Cabal *library*
now has an executable cabal-setup.  Maybe with some buildable
shenanigans we can make it so that we never build this executable
unless the user asks for it, or the test suite is enabled.
Alternately, cabal-setup is a generally handy executable to have
around.

Signed-off-by: Edward Z. Yang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants