Skip to content

Commit

Permalink
use nix from pkgs in bootstrap test
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 24, 2023
1 parent 5f87d2f commit 2b9cbf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/bootstrap/test.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{...}:
{pkgs}:
{
test = builtins.toFile "bootstrap-test" ''
test = pkgs.writeText "bootstrap-test" ''
cd ./root
git init
check_match 'nix run path:$hix_dir#bootstrap' 'generated red-panda-core' "Bootstrap command didn't generate cabal files"
check_match 'nix run .#ghci -- -p red-panda -t main <<< :quit' 'success' 'Running tests in generated project failed'
check_match '${pkgs.nix}/bin/nix run path:$hix_dir#bootstrap' 'generated red-panda-core' "Bootstrap command didn't generate cabal files"
check_match '${pkgs.nix}/bin/nix run .#ghci -- -p red-panda -t main <<< :quit' 'success' 'Running tests in generated project failed'
'';
}

0 comments on commit 2b9cbf6

Please sign in to comment.