Commit Graph

26 Commits

Author SHA1 Message Date
hololeap
b0ee7fd6a2 Add GHC.Stats import to NarFormat test
This is needed for the tests to compile on my system.
Without the import, `max_live_bytes` and `getRTSStats` are undefined.
2021-11-04 14:21:19 +02:00
Anton-Latukha
6318ff163b
Remote: (Right -> pure) 2021-08-06 19:52:52 +03:00
Anton-Latukha
5b1b51306a
Core: clean-up imports 2021-08-06 19:29:02 +03:00
Anton-Latukha
a93cba03c9
treewide: hlint refactor 2021-08-06 19:29:02 +03:00
Anton-Latukha
54a7c92791
treewide: use WriteMode 2021-08-06 19:29:02 +03:00
Anton-Latukha
d2970b9f01
treewide: use ReadMode 2021-08-06 19:29:02 +03:00
Anton-Latukha
8f932bd6ee
treewide: use decodeUtf8 2021-08-06 19:29:01 +03:00
Anton-Latukha
99da38fa83
treewide: use withFile 2021-08-06 19:29:01 +03:00
Anton-Latukha
5d22b9450a
treewide: use pass 2021-08-06 19:29:01 +03:00
Anton-Latukha
e350ee4f60
Core: tests: NarFormat: (data -> newtype) Nar 2021-08-06 19:29:01 +03:00
Anton-Latukha
c4183d22d2
treewide: (LANGUAGE -> language) 2021-08-06 19:29:01 +03:00
Anton-Latukha
8e3955f6a1
Core: cabal: declare default-extensions 2021-08-06 19:29:01 +03:00
Anton-Latukha
ef6343be35
Core: use relude as Prelude 2021-08-06 17:55:32 +03:00
Anton-Latukha
39b55ad645
Core: tests: treewide refactor 2021-08-06 17:43:23 +03:00
Anton-Latukha
3ecbb2f5a5
Core: tests: NarFormat: m clean-up 2021-06-10 13:18:41 +03:00
Anton-Latukha
722b431657
Core: tests: add dep hspec, {StorePath,Derivation}: fx import
>    No changes, but 1.1.7 should have been a major version bump due to dropping the Test.Hspec re-export.
https://hackage.haskell.org/package/tasty-hspec-1.2/changelog

M  hnix-store-core/tests/Hash.hs
M  hnix-store-core/tests/NarFormat.hs
2021-05-30 18:27:45 +03:00
Richard Marko
2a897ab581 core: fix nar test failing when there's no /proc
Closes #109.
2021-02-25 12:49:23 +02:00
Anton-Latukha
f86235758a
Core, Remote: (++) -> (<>)
*afaik* (++) does not even work with OverloadedStrings with Text or ByteString.

Lets allow ourselves to switch from [] & Strings in Haskell in any part of the code.
2021-02-03 13:02:03 +02:00
Anton-Latukha
c49eb9b6d7
Core, Remote: return -> pure
I wonder why type system needs to infer Monad constraint where Applicative would
suffice.
2021-02-03 12:52:48 +02:00
Richard Marko
637cf0a938 core: fix all warnings 2021-01-14 11:08:42 +01:00
Anton-Latukha
5d160cd5c5
core & remote: cosmetics 2020-12-17 00:58:07 +02:00
Greg Hale
3de47a36e7 Use constant-space encoding and decoding for NARs 2020-08-05 21:00:52 -04:00
Richard Marko
8b8e675039 fix nar test lookup for src directory
Now also looks in `hnix-store-core/src` as well and won't fail
even if either of them doesn't exist (which is not a big deal
in this case).
2020-03-05 12:06:15 +01:00
Shea Levy
5a270eff70
NarFormat test: Remove dependency on System.Nix.Path. 2019-03-22 09:43:12 -04:00
Greg Hale
6734486e06 Put bounded-memory NAR format tests behind a cabal flag deaulting to False
The test suite fails when run naively, due to the use of haskell code that
uses gc statistics, and requires `+RTS -T` flags be passed to the testsuite.

We opt in to this flag for CI and for any default.nix that packages
hnix-store-core.
2018-09-11 23:09:00 -04:00
Greg Hale
7f1928edcb Add NAR parser-generator and tests 2018-05-15 11:09:20 -04:00