haskellPackages.tasty-discover: disable broken test suite

This commit is contained in:
sternenseemann 2022-11-24 15:29:04 +01:00
parent 521c788e8f
commit 07ac1b4fa0
2 changed files with 11 additions and 6 deletions

View file

@ -576,12 +576,10 @@ self: super: {
# else dontCheck super.doctest-discover);
doctest-discover = dontCheck super.doctest-discover;
tasty-discover = overrideCabal (drv: {
# Depends on itself for testing
preBuild = ''
export PATH="$PWD/dist/build/tasty-discover:$PATH"
'' + (drv.preBuild or "");
}) super.tasty-discover;
# Test suite is missing an import from hspec
# https://github.com/haskell-works/tasty-discover/issues/9
# https://github.com/commercialhaskell/stackage/issues/6584#issuecomment-1326522815
tasty-discover = assert super.tasty-discover.version == "4.2.2"; dontCheck super.tasty-discover;
# Known issue with nondeterministic test suite failure
# https://github.com/nomeata/tasty-expected-failure/issues/21

View file

@ -359,6 +359,13 @@ self: super: builtins.intersectAttrs super {
preCheck = ''export PATH="$PWD/dist/build/ghcide:$PATH"'';
}) super.ghcide;
tasty-discover = overrideCabal (drv: {
# Depends on itself for testing
preBuild = ''
export PATH="$PWD/dist/build/tasty-discover:$PATH"
'' + (drv.preBuild or "");
}) super.tasty-discover;
# GLUT uses `dlopen` to link to freeglut, so we need to set the RUNPATH correctly for
# it to find `libglut.so` from the nix store. We do this by patching GLUT.cabal to pkg-config
# depend on freeglut, which provides GHC to necessary information to generate a correct RPATH.