2024-05-28 14:10:02 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-08-29 16:01:09 +00:00
|
|
|
source common.sh
|
|
|
|
|
|
|
|
requireSandboxSupport
|
|
|
|
[[ $busybox =~ busybox ]] || skipTest "no busybox"
|
|
|
|
|
|
|
|
enableFeatures mounted-ssh-store
|
|
|
|
|
|
|
|
nix build -Lvf simple.nix \
|
2024-05-28 14:10:02 +00:00
|
|
|
--arg busybox "$busybox" \
|
|
|
|
--out-link "$TEST_ROOT/result-from-remote" \
|
2023-08-29 16:01:09 +00:00
|
|
|
--store mounted-ssh-ng://localhost
|
|
|
|
|
|
|
|
nix build -Lvf simple.nix \
|
2024-05-28 14:10:02 +00:00
|
|
|
--arg busybox "$busybox" \
|
|
|
|
--out-link "$TEST_ROOT/result-from-remote-new-cli" \
|
2023-08-29 16:01:09 +00:00
|
|
|
--store 'mounted-ssh-ng://localhost?remote-program=nix daemon'
|
|
|
|
|
|
|
|
# This verifies that the out link was actually created and valid. The ability
|
|
|
|
# to create out links (permanent gc roots) is the distinguishing feature of
|
|
|
|
# the mounted-ssh-ng store.
|
2024-05-28 14:10:02 +00:00
|
|
|
grepQuiet 'Hello World!' < "$TEST_ROOT/result-from-remote/hello"
|
|
|
|
grepQuiet 'Hello World!' < "$TEST_ROOT/result-from-remote-new-cli/hello"
|