summaryrefslogtreecommitdiffstats
path: root/tests/ssh-relay.sh
blob: dce50974b16cefcf129fcf838d83a489b733b401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 add-to-store --store "$store" $TEST_ROOT/hello.sh)

[ foo = $(< $out) ]