2024-05-28 17:10:02 +03:00
|
|
|
# shellcheck shell=bash
|
|
|
|
|
|
|
|
# All variables should be defined externally by the scripts that source
|
|
|
|
# this, `set -u` will catch any that are forgotten.
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
|
2023-04-17 16:41:39 +03:00
|
|
|
requireSandboxSupport
|
2024-05-28 17:10:02 +03:00
|
|
|
[[ "$busybox" =~ busybox ]] || skipTest "no busybox"
|
2023-04-17 16:41:39 +03:00
|
|
|
|
|
|
|
unset NIX_STORE_DIR
|
|
|
|
unset NIX_STATE_DIR
|
|
|
|
|
|
|
|
remoteDir=$TEST_ROOT/remote
|
|
|
|
|
2023-10-05 19:12:18 +03:00
|
|
|
# Note: ssh{-ng}://localhost bypasses ssh. See tests/functional/build-remote.sh for
|
2023-04-17 16:41:39 +03:00
|
|
|
# more details.
|
2024-05-28 17:10:02 +03:00
|
|
|
nix-build "$file" -o "$TEST_ROOT/result" --max-jobs 0 \
|
|
|
|
--arg busybox "$busybox" \
|
|
|
|
--store "$TEST_ROOT/local" \
|
2023-04-17 16:41:39 +03:00
|
|
|
--builders "$proto://localhost?remote-program=$prog&remote-store=${remoteDir}%3Fsystem-features=foo%20bar%20baz - - 1 1 foo,bar,baz"
|