diff options
Diffstat (limited to 'pkgs/populate/tests/fixtures.sh')
| -rwxr-xr-x | pkgs/populate/tests/fixtures.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/populate/tests/fixtures.sh b/pkgs/populate/tests/fixtures.sh index 93b302d..375514c 100755 --- a/pkgs/populate/tests/fixtures.sh +++ b/pkgs/populate/tests/fixtures.sh @@ -252,6 +252,19 @@ SH chmod +x /fixtures/pipe2 echo piped > /fixtures/pipe2-data +# pipe-dir: a command for the pipe source type's directory, making a +# directory of secrets in the one it gets, like enstate --pack does, with +# what /fixtures/pipe-dir-data says, which the tests change. +cat > /fixtures/pipe-dir <<'SH' +#! /bin/sh +set -efu +umask 077 +mkdir -p "$1"/sub/deep +cat /fixtures/pipe-dir-data > "$1"/sub/deep/secret +SH +chmod +x /fixtures/pipe-dir +echo one > /fixtures/pipe-dir-data + # alt2: like alt, with other outputs, to change a source to. mkdir /fixtures/alt2 cat > /fixtures/alt2/flake.nix <<'NIX' |
