aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/build-remote-trustless.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/build-remote-trustless.sh')
-rw-r--r--tests/functional/build-remote-trustless.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/build-remote-trustless.sh b/tests/functional/build-remote-trustless.sh
new file mode 100644
index 000000000..81e5253bf
--- /dev/null
+++ b/tests/functional/build-remote-trustless.sh
@@ -0,0 +1,14 @@
+requireSandboxSupport
+[[ $busybox =~ busybox ]] || skipTest "no busybox"
+
+unset NIX_STORE_DIR
+unset NIX_STATE_DIR
+
+remoteDir=$TEST_ROOT/remote
+
+# Note: ssh{-ng}://localhost bypasses ssh. See tests/functional/build-remote.sh for
+# more details.
+nix-build $file -o $TEST_ROOT/result --max-jobs 0 \
+ --arg busybox $busybox \
+ --store $TEST_ROOT/local \
+ --builders "$proto://localhost?remote-program=$prog&remote-store=${remoteDir}%3Fsystem-features=foo%20bar%20baz - - 1 1 foo,bar,baz"