Improve test apps

* Allow running test apps in repo root (e.g. `nix run ./tests#runTests`)
* Pass argv to cabal to allow filtering tests with `-m`
* Use `cabal run spec` rather than `cabal test`
This commit is contained in:
Alex David 2025-10-19 11:53:42 -07:00
commit ec9f9f98d8
2 changed files with 15 additions and 5 deletions

View file

@ -3,6 +3,6 @@ environment:
NIX_CONFIG: "experimental-features = nix-command flakes"
tasks:
- setup: "sudo ln -s /etc/zoneinfo/EST /etc/localtime"
- test-jail-nix: "cd jail.nix/tests && nix run .#runTests"
- check-format: "cd jail.nix/tests && nix run .#checkFmt"
- build-website: "cd jail.nix/website && nix build -L .#default"
- test-jail-nix: "cd jail.nix && nix run ./tests#runTests"
- check-format: "cd jail.nix && nix run ./tests#checkFmt"
- build-website: "cd jail.nix && nix build -L ./website#default"