2023-04-07 15:13:23 +00:00
|
|
|
requireSandboxSupport
|
|
|
|
[[ $busybox =~ busybox ]] || skipTest "no busybox"
|
2020-08-12 03:47:36 +00:00
|
|
|
|
|
|
|
unset NIX_STORE_DIR
|
|
|
|
unset NIX_STATE_DIR
|
|
|
|
|
2023-04-07 15:13:23 +00:00
|
|
|
remoteDir=$TEST_ROOT/remote
|
|
|
|
|
2020-08-14 16:05:27 +00:00
|
|
|
# Note: ssh{-ng}://localhost bypasses ssh. See tests/build-remote.sh for
|
|
|
|
# more details.
|
2023-04-07 15:13:23 +00:00
|
|
|
nix-build $file -o $TEST_ROOT/result --max-jobs 0 \
|
2020-08-12 03:47:36 +00:00
|
|
|
--arg busybox $busybox \
|
|
|
|
--store $TEST_ROOT/local \
|
2023-04-07 15:13:23 +00:00
|
|
|
--builders "$proto://localhost?remote-program=$prog&remote-store=${remoteDir}%3Fsystem-features=foo%20bar%20baz - - 1 1 foo,bar,baz"
|