Skip to content
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

External commands: Add tests for #9402 #9403 #9404 #9406

Closed

Conversation

mpickering
Copy link
Collaborator

This adds 4 tests which test the new external commands feature:

This adds 4 tests which test the new external commands feature:

* ExternalCommand - Tests the expected usage of external command invoked
  via cabal-install
* ExternalCommandSetup - Tests that the ./Setup interface does not
  support external commands (haskell#9403)
* ExternalCommandEnv - Tests that environment variables are set and
  preserved appropiately  (haskell#9402)
* ExternalCommandHelp - Test that `cabal help <cmd>` is interpreted appropiately (haskell#9404)
@Mikolaj
Copy link
Member

Mikolaj commented Nov 6, 2023

Adding tests first is a great practice. What do you intend to do with this PR? Mark the tests as failing and merge it? Keep it pending until other PRs add the features, using this PR as local tests?

@mpickering
Copy link
Collaborator Author

@Mikolaj I marked the tests as failing with pointers to the relevant issues. I was going to use them locally myself but @yvan-sraka already started implementing some changes as well so I decided to put them up.

@mpickering
Copy link
Collaborator Author

I put these tests now in #9412 which implements all the tests.

@mpickering mpickering closed this Nov 6, 2023
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