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