mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
22 lines
762 B
Bash
22 lines
762 B
Bash
source common.sh
|
|
|
|
requireSandboxSupport
|
|
[[ $busybox =~ busybox ]] || skipTest "no busybox"
|
|
|
|
enableFeatures mounted-ssh-store
|
|
|
|
nix build -Lvf simple.nix \
|
|
--arg busybox $busybox \
|
|
--out-link $TEST_ROOT/result-from-remote \
|
|
--store mounted-ssh-ng://localhost
|
|
|
|
nix build -Lvf simple.nix \
|
|
--arg busybox $busybox \
|
|
--out-link $TEST_ROOT/result-from-remote-new-cli \
|
|
--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.
|
|
cat $TEST_ROOT/result-from-remote/hello | grepQuiet 'Hello World!'
|
|
cat $TEST_ROOT/result-from-remote-new-cli/hello | grepQuiet 'Hello World!'
|