Skip to content

Add flag to disable Cabal package tests that use shared libraries #3146

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

Merged
merged 1 commit into from
Feb 14, 2016

Conversation

grayjay
Copy link
Collaborator

@grayjay grayjay commented Feb 14, 2016

The flag --skip-shared-library-tests allows the tests to run when shared libraries are unavailable, such as during the AppVeyor build.

This is a step towards #3112. I wanted to minimize the changes to existing tests but also make it easy to see what tests are being skipped. I'm not sure if this is the best solution.

The flag --skip-shared-library-tests allows the tests to run when
shared libraries are unavailable, such as during the AppVeyor build.
@@ -14,6 +14,7 @@ build_script:
- Setup configure --user --ghc-option=-Werror --enable-tests
- Setup build
- Setup test unit-tests --show-details=streaming
# - Setup test package-tests --show-details=streaming --test-options=--skip-shared-library-tests
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it because I thought we could run the package tests soon. The only failure is #3147.

23Skidoo added a commit that referenced this pull request Feb 14, 2016
Add flag to disable Cabal package tests that use shared libraries
@23Skidoo 23Skidoo merged commit 10707fe into haskell:master Feb 14, 2016
@23Skidoo
Copy link
Member

Merged, thanks!

@grayjay
Copy link
Collaborator Author

grayjay commented Feb 14, 2016

Thanks! I'll update HACKING.md and/or the test readme.

@@ -25,9 +27,12 @@ import Distribution.Verbosity (normal, flagToVerbosity)
import Distribution.ReadE (readEOrFail)

import Control.Exception
import Data.Typeable (Proxy(..), Typeable)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, this broke the build on GHC <= 7.6. I changed this line to import Data.Proxy instead and added a dependency on tagged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I was just looking into that.

@ezyang
Copy link
Contributor

ezyang commented Feb 14, 2016

This is late to the party, but the prevailing style for this test suite has been to use environment variables to pass everything in. I guess now that we've added support for extra command line arguments we should make all of the other parameters support it too.

@grayjay
Copy link
Collaborator Author

grayjay commented Feb 14, 2016

I chose a flag because I wanted the parameter to be more explicit. An environment variable would also work. Should I change it, for consistency?

@grayjay grayjay deleted the disable-shared-library-tests branch February 14, 2016 23:55
@23Skidoo
Copy link
Member

I don't think we need to change it, but as @ezyang says, it'd be nice if the other parameters could be also passed via the command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants