mounted-ssh-ng store: integration tests

This commit is contained in:
Matej Urbas 2023-08-29 17:01:09 +01:00 committed by John Ericson
parent b32b20a6d7
commit 03c3af1bf9
2 changed files with 23 additions and 0 deletions

View 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!'

View file

@ -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 \