forked from lix-project/lix
mounted-ssh-ng store: integration tests
This commit is contained in:
parent
b32b20a6d7
commit
03c3af1bf9
22
tests/functional/build-remote-with-mounted-ssh-ng.sh
Normal file
22
tests/functional/build-remote-with-mounted-ssh-ng.sh
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
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!'
|
|
@ -69,6 +69,7 @@ nix_tests = \
|
||||||
build-remote-trustless-should-pass-2.sh \
|
build-remote-trustless-should-pass-2.sh \
|
||||||
build-remote-trustless-should-pass-3.sh \
|
build-remote-trustless-should-pass-3.sh \
|
||||||
build-remote-trustless-should-fail-0.sh \
|
build-remote-trustless-should-fail-0.sh \
|
||||||
|
build-remote-with-mounted-ssh-ng.sh \
|
||||||
nar-access.sh \
|
nar-access.sh \
|
||||||
pure-eval.sh \
|
pure-eval.sh \
|
||||||
eval.sh \
|
eval.sh \
|
||||||
|
|
Loading…
Reference in a new issue