haskell.nix/test
Hamish Mackenzie 64efc98852
Support githash package and cross package refs (#843)
* Adds support for cross package refs (with a project).  Relative
  directory references between packages within a project should now
  work.
* Adds `includeSiblings` to `cleanSourceWith`.  When `true` it
  prevents the `subDir` arg from causing filtering of other directories.
* Adds `keepGitDir` to `cleanGit` to allow `.git` directory to be kept
  (useful for components that use the `githash` package).
2021-01-14 12:34:06 +13:00
..
buildable Add support for coverage (#762) 2020-09-29 11:56:24 +08:00
builder-haddock Better 'required' job that includes everything (#976) 2021-01-06 16:44:43 +13:00
cabal-22 Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
cabal-hpack Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
cabal-simple Remove pj.hsPkgs.${n} functions in favour of pj.${n} (#938) 2020-11-26 19:20:10 +13:00
cabal-simple-prof Better 'required' job that includes everything (#976) 2021-01-06 16:44:43 +13:00
cabal-source-repo Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
cabal-source-repo-comments Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
cabal-sublib Allow package-name:sublib-name in build-depends (#963) 2021-01-08 23:11:16 +13:00
call-cabal-project-to-nix Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
call-stack-to-nix Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
compiler-nix-name Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
coverage Fix coverage test broken by #897 (#898) 2020-10-29 12:04:06 +13:00
coverage-golden Add golden coverage test (#964) 2020-12-11 21:57:35 +13:00
coverage-no-libs Coverage: allow projects with no libraries (#962) 2020-12-10 20:47:57 +13:00
exe-only Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
extra-hackage Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
fully-static Better 'required' job that includes everything (#976) 2021-01-06 16:44:43 +13:00
ghc-options Add support for coverage (#762) 2020-09-29 11:56:24 +08:00
githash Support githash package and cross package refs (#843) 2021-01-14 12:34:06 +13:00
haskell-language-server Add ghc 8.10.3 (#980) 2021-01-11 18:47:56 +13:00
index-state Fix ghc 8.10 windows cross (boot with 8.6.5) (#865) 2020-10-07 15:42:32 +13:00
lookup-sha256 Add ghc 8.10.3 (#980) 2021-01-11 18:47:56 +13:00
project-flags Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
setup-deps Add ghc 8.10.3 (#980) 2021-01-11 18:47:56 +13:00
shell-for Allow package-name:sublib-name in build-depends (#963) 2021-01-08 23:11:16 +13:00
shell-for-setup-deps Better 'required' job that includes everything (#976) 2021-01-06 16:44:43 +13:00
snapshots Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
stack-local-resolver Add haskell-nix.project (and project') (#703) 2020-06-19 20:07:19 +12:00
stack-local-resolver-subdir Fix stack.yaml filtering when resolver file is in a subdirectory (#943) 2020-12-09 17:43:36 +13:00
stack-remote-resolver download stack resolver if a sha256 is provided (#748) 2020-07-04 14:35:52 +12:00
stack-simple Spelling, typo and whitespace fixes (#833) 2020-08-31 11:08:25 +12:00
stack-source-repo Add pins and materialization for ghc-boot-packages and ghc-extra-packages (#546) 2020-04-20 13:27:52 +12:00
sublib-docs Add support for ghcjs 8.8 and making ghcjs bundles (#828) 2020-11-17 22:22:53 +13:00
with-packages Better 'required' job that includes everything (#976) 2021-01-06 16:44:43 +13:00
default.nix Support githash package and cross package refs (#843) 2021-01-14 12:34:06 +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 Remove components.all (#776) 2020-07-21 16:06:54 +12:00
unit.nix Do not use evalPackages to create sourceRepo for builds (#918) 2020-11-11 11:49:27 +00: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)