haskell.nix/test
Hamish Mackenzie dedb91e725 Add sha256 to source-repository-packages for restricted eval mode (#170)
* Add sha256 to source-repository-packages for hydra

This allows source-repository-package to be downloaded and replaced in
with `package: /nix/store/...` by callCabalPackageToNix so that `cabal`
and `plan-to-nix` do not need to download them.
2019-07-16 15:13:31 +08:00
..
builder-haddock Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
cabal-22 Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
cabal-simple Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
cabal-simple-prof Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
cabal-source-repo Add sha256 to source-repository-packages for restricted eval mode (#170) 2019-07-16 15:13:31 +08:00
cabal-sublib Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
call-cabal-project-to-nix Add sha256 to source-repository-packages for restricted eval mode (#170) 2019-07-16 15:13:31 +08:00
call-stack-to-nix Cross comp. & callCabalProjectToNix/callStackToNix (#202) 2019-07-13 22:13:15 +08:00
shell-for Fix setup-depends dependencies (#124) 2019-07-12 21:48:13 +08:00
snapshots Make sure hoogle is available in ghcWithHoogle (#196) 2019-07-16 10:17:49 +10:00
stack-simple Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
with-packages Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
default.nix Add sha256 to source-repository-packages for restricted eval mode (#170) 2019-07-16 15:13:31 +08:00
README.md Add cross-compiled musl libc builds of tests (#157) 2019-07-02 18:25:40 +10:00
regen.nix tests: Add tests for the shellFor function 2019-05-28 09:34:58 +10:00
tests.sh Cross comp. & callCabalProjectToNix/callStackToNix (#202) 2019-07-13 22:13:15 +08:00
unit.nix tests: Add unit tests for library functions 2019-01-30 15:38:38 +10: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)