Skip to content

Commit

Permalink
test bootstrap via flake app, not cli
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 24, 2023
1 parent 81dde4e commit e1c7801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions test/bootstrap/test-config.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{...}: {
config.internal.hixUrl = "HIX";
}
2 changes: 1 addition & 1 deletion test/bootstrap/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
test = builtins.toFile "bootstrap-test" ''
cd ./root
nix run path:$hix_dir#cli -- bootstrap --hix-url="path:$hix_dir"
check_match 'nix run path:$hix_dir#bootstrap' 'Initialized' "Bootstrap command didn't initialize git repo"
check_match 'nix run .#ghci -- -p red-panda -t main <<< :quit' 'success' 'Running tests in generated project failed'
'';
}

0 comments on commit e1c7801

Please sign in to comment.