haskell.nix/test
Hamish Mackenzie f3ea06dcac
Work around for packages in lts that do not install. (#1437)
For ghc 9.0.2 Haskell.nix will use the `stm`and `filepath` source that came with `ghc` when the version desired matches.  This is because 9.0.2 shipped with packages that differ from the same version in hackage.

`reinstallableLibGhc` is fixed for GHC 8.10 and above.  Rather than including a patch file this works by:

* Setting the `subDir` to the `compiler` directory when building.  That way relative paths to other parts of the `ghc` source tree (outside the `compiler` directory) still work.
* Files that are needed, but generated when `ghc` builds are added from the `generated` output of the ghc derivation.

`nonReinstallablePkgs` is now sorted and deduplicated before it is used (this reduces the chance of rebuilds when the list is refactored).
2022-04-20 15:25:21 +12:00
..
buildable Add GHC 9.0.1 (#1032) 2021-03-28 21:03:20 +13:00
builder-haddock Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
c-ffi fix ghcjs (#1311) 2022-01-09 03:11:37 +13:00
cabal-22 Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
cabal-doctests niv update nixpkgs-unstable and add ghc 8.10.5 (#1121) 2021-06-15 19:50:45 +12:00
cabal-hpack Use pkgs.lib instead of stdenv.lib (#1031) 2021-02-11 01:07:16 +13:00
cabal-simple Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
cabal-simple-debug Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
cabal-simple-prof Rename executable-profiling flag as suggested by Cabal (#1136) 2021-12-27 15:28:59 +08:00
cabal-source-repo Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
cabal-source-repo-comments Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
cabal-sublib Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
call-cabal-project-to-nix Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
call-stack-to-nix Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
coverage Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
coverage-golden niv update nixpkgs-unstable and add ghc 8.10.5 (#1121) 2021-06-15 19:50:45 +12:00
coverage-no-libs Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
exe-only Use pkgs.lib instead of stdenv.lib (#1031) 2021-02-11 01:07:16 +13:00
extra-hackage Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
fully-static Flakify all inputs (#1180) 2021-08-06 15:54:39 +12:00
ghc-options Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
ghcjs-overlay Avoid filtering repo to just 01-index.tar.gz file (#1432) 2022-04-14 02:35:37 +12:00
githash Add GHC 9.0.2 (#1338) 2022-01-09 03:10:05 +13:00
haskell-language-server Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
index-state Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
project-flags Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
setup-deps Work around for packages in lts that do not install. (#1437) 2022-04-20 15:25:21 +12:00
sha256map Improve support for external Hackage repositories (#1370) 2022-02-18 00:42:11 +13:00
shell-for Add GHC 8.10.7 (#1220) 2021-09-01 22:43:31 +12:00
shell-for-setup-deps Add ghc 9.2.2 (#1394) 2022-03-08 14:34:04 +13:00
snapshots Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-local-resolver Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-local-resolver-subdir Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-remote-resolver Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
stack-simple use Cabal 3.6.2.0 (#1328) 2022-01-04 17:53:33 +13:00
stack-source-repo Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
sublib-docs Add ghc 9.2.1 and update internal cabal to 3.6.2 (#1286) 2021-11-13 12:43:04 +13:00
th-dlls Make DLLs in deps available to wine TH runner (#1405) 2022-03-25 21:44:02 +13:00
with-packages Fix libnuma dependency in rts.conf (#1342) 2022-02-15 23:49:45 +13:00
default.nix Make DLLs in deps available to wine TH runner (#1405) 2022-03-25 21:44:02 +13:00
README.md Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
regen.nix Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
tests.sh Update nixpkgs unstable. (#1196) 2021-08-18 00:44:03 +12:00
unit.nix Avoid filtering repo to just 01-index.tar.gz file (#1432) 2022-04-14 02:35:37 +12:00
util.nix tests: Add more tests for "all" component merging 2019-02-07 09:39:12 +08:00

Haskell infrastructure test cases

To build the test cases, run from the test directory:

nix-build --no-out-link default.nix

To run all tests (includes impure tests), use the script:

./tests.sh

Generated code

If you change the test Cabal files or need to regenerate the code with nix-tools, then see regen.nix. Run it like this:

$(nix-build --no-out-link regen.nix)