haskell.nix/test
Moritz Angermann dfefba5be7
Call cabal project to nix (now with hackage-truncate) (#135)
* This adds more logic for the cabalProjectToNix idf

That is, something like this:

```
nix-build --expr 'with import ./. {}; callCabalProjectToNix { index-state = "2019-04-30T00:00:00Z"; src = /some/path; }'
```

should produce something that can be build with mkCabalProjectPkgSet.

* Make sure the hackageTarball's store path doesn't change

previously the fetchurl would produce a different store path each
and every time as hackage's index is a moving target.  With this
impurity setup, we can ignore this.

* Fix test

* Proper name

* Re-enable test

* Allow to parameterize over the `system` for the test default.nix

* Copy instead of link for ifds.

This makes me really sad.
2019-05-21 20:05:03 +08:00
..
builder-haddock Try to fix tests (#138) 2019-05-20 21:29:02 +08:00
cabal-22 Try to fix tests (#138) 2019-05-20 21:29:02 +08:00
cabal-simple Try to fix tests (#138) 2019-05-20 21:29:02 +08:00
cabal-sublib Try to fix tests (#138) 2019-05-20 21:29:02 +08:00
call-cabal-project-to-nix Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
callStackToNix Fix tests (#133) 2019-05-18 17:42:23 +08:00
stack-simple Regenerate nix for test/stack-simple 2019-05-07 15:31:35 +08:00
with-packages Try to fix tests (#138) 2019-05-20 21:29:02 +08:00
default.nix Call cabal project to nix (now with hackage-truncate) (#135) 2019-05-21 20:05:03 +08:00
README.md doc: Update test/README.md 2019-05-08 09:50:31 +10:00
regen.nix Add script for regenerating nix in tests 2019-05-07 15:31:35 +08:00
tests.sh Add callStackToNix function (#116) 2019-05-17 15:49:40 +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 this 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)