-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mounted-ssh-ng store: integration tests
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
source common.sh | ||
|
||
requireSandboxSupport | ||
[[ $busybox =~ busybox ]] || skipTest "no busybox" | ||
|
||
echo NIX_STORE_DIR=$NIX_STORE_DIR | ||
echo NIX_STATE_DIR=$NIX_STATE_DIR | ||
|
||
# Avoid store dir being inside sandbox build-dir | ||
# export NIX_STORE_DIR=$TEST_ROOT/store | ||
# export NIX_STATE_DIR=$TEST_ROOT/var/nix | ||
|
||
enableFeatures mounted-ssh-store | ||
|
||
nix build -Lvf simple.nix \ | ||
--arg busybox $busybox \ | ||
--out-link $TEST_ROOT/result-from-remote \ | ||
--store mounted-ssh-ng://localhost | ||
|
||
# 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!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters