2024-05-28 16:43:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-08-20 05:08:50 +00:00
|
|
|
source common.sh
|
|
|
|
|
2024-08-01 22:10:08 +00:00
|
|
|
echo foo > "$TEST_ROOT"/hello.sh
|
2020-08-20 05:08:50 +00:00
|
|
|
|
|
|
|
ssh_localhost=ssh://localhost
|
2024-08-01 22:10:08 +00:00
|
|
|
remote_store="?remote-store=$ssh_localhost"
|
2020-08-20 05:08:50 +00:00
|
|
|
|
|
|
|
store=$ssh_localhost
|
|
|
|
|
|
|
|
store+=$remote_store
|
|
|
|
store+=$remote_store
|
|
|
|
store+=$remote_store
|
|
|
|
|
2024-08-01 22:10:08 +00:00
|
|
|
out=$(nix store add-path --store "$store" "$TEST_ROOT"/hello.sh)
|
2020-08-20 05:08:50 +00:00
|
|
|
|
2024-08-01 22:10:08 +00:00
|
|
|
[ foo = "$(< "$out")" ]
|