aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fixtures.sh
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-12 02:34:16 +0000
committertv <tv@krebsco.de>2026-11-12 02:34:16 +0000
commitaf300230cf4a70a5681aadf7a8ed35add1b58962 (patch)
tree0cca5feae9f7691c9a32bb7bdce76e961e73a1af /tests/fixtures.sh
parentd1fe05cba1747f24fa16a51348fd0387f54897e6 (diff)
tests: check re-locking of generated flakes and git+file: references
Deploying the same sources twice doesn't show whether generated flakes get locked again, and the git scenarios' results are the same whether a Git work tree is referred to as git+file: or path:. A feature scenario changes what a source contains between two deploys, and the git scenarios check the reference.
Diffstat (limited to 'tests/fixtures.sh')
-rwxr-xr-xtests/fixtures.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/fixtures.sh b/tests/fixtures.sh
index 1b39b45..833df77 100755
--- a/tests/fixtures.sh
+++ b/tests/fixtures.sh
@@ -252,6 +252,12 @@ SH
chmod +x /fixtures/pipe2
echo piped > /fixtures/pipe2-data
+# alt2: like alt, with other outputs, to change a source to.
+mkdir /fixtures/alt2
+cat > /fixtures/alt2/flake.nix <<'NIX'
+{ outputs = _: { greeting = "alt2"; who = "alt2"; }; }
+NIX
+
# noflake: a directory without flake.nix.
mkdir /fixtures/noflake
echo noflake > /fixtures/noflake/README