mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 07:16:17 +02:00
add regression test for nix edit
This commit is contained in:
parent
e1a817fb1b
commit
69c159811e
3 changed files with 15 additions and 0 deletions
13
tests/functional/flakes/edit.sh
Executable file
13
tests/functional/flakes/edit.sh
Executable file
|
@ -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
|
|
@ -2,6 +2,7 @@ nix_tests = \
|
||||||
test-infra.sh \
|
test-infra.sh \
|
||||||
flakes/flakes.sh \
|
flakes/flakes.sh \
|
||||||
flakes/develop.sh \
|
flakes/develop.sh \
|
||||||
|
flakes/edit.sh \
|
||||||
flakes/run.sh \
|
flakes/run.sh \
|
||||||
flakes/mercurial.sh \
|
flakes/mercurial.sh \
|
||||||
flakes/circular.sh \
|
flakes/circular.sh \
|
||||||
|
|
|
@ -5,4 +5,5 @@ mkDerivation {
|
||||||
builder = ./simple.builder.sh;
|
builder = ./simple.builder.sh;
|
||||||
PATH = "";
|
PATH = "";
|
||||||
goodPath = path;
|
goodPath = path;
|
||||||
|
meta.position = "${__curPos.file}:${toString __curPos.line}";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue