Skip to content

Commit

Permalink
add regression test for nix edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed May 31, 2024
1 parent e1a817f commit 69c1598
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/functional/flakes/edit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

source ./common.sh

requireGit

flake1Dir=$TEST_ROOT/flake1

createGitRepo "$flake1Dir"
createSimpleGitFlake "$flake1Dir"

export EDITOR=cat
nix edit "$flake1Dir#" | grepQuiet simple.builder.sh
1 change: 1 addition & 0 deletions tests/functional/local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ nix_tests = \
test-infra.sh \
flakes/flakes.sh \
flakes/develop.sh \
flakes/edit.sh \
flakes/run.sh \
flakes/mercurial.sh \
flakes/circular.sh \
Expand Down
1 change: 1 addition & 0 deletions tests/functional/simple.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ mkDerivation {
builder = ./simple.builder.sh;
PATH = "";
goodPath = path;
meta.position = "${__curPos.file}:${toString __curPos.line}";
}

0 comments on commit 69c1598

Please sign in to comment.