Rewrite tests in haskell

This commit is contained in:
Alex David 2025-08-19 00:08:44 -07:00
commit d8b14ca5ee
9 changed files with 530 additions and 255 deletions

39
tests/package.yaml Normal file
View file

@ -0,0 +1,39 @@
name: jail-nix-tests
tests:
spec:
source-dirs: [spec]
main: Spec.hs
dependencies:
- aeson
- base
- bytestring
- containers
- extra
- filepath
- hspec
- hspec-core
- interpolate
- mtl
- process
- string-conversions
- temporary
default-extensions:
- DerivingStrategies
- FlexibleInstances
- GeneralizedNewtypeDeriving
- ImportQualifiedPost
- NamedFieldPuns
- QuasiQuotes
- ScopedTypeVariables
- TupleSections
- TypeFamilies
ghc-options:
- -Wall
- -Werror
- -Wno-name-shadowing
- -threaded
- -rtsopts
- '"-with-rtsopts=-T -N"'
- -j