aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/ssh-relay.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/ssh-relay.sh')
-rw-r--r--tests/functional/ssh-relay.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functional/ssh-relay.sh b/tests/functional/ssh-relay.sh
new file mode 100644
index 000000000..053b2f00d
--- /dev/null
+++ b/tests/functional/ssh-relay.sh
@@ -0,0 +1,16 @@
+source common.sh
+
+echo foo > $TEST_ROOT/hello.sh
+
+ssh_localhost=ssh://localhost
+remote_store=?remote-store=$ssh_localhost
+
+store=$ssh_localhost
+
+store+=$remote_store
+store+=$remote_store
+store+=$remote_store
+
+out=$(nix store add-path --store "$store" $TEST_ROOT/hello.sh)
+
+[ foo = $(< $out) ]