2024-05-28 16:43:04 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-07-13 17:17:17 +00:00
|
|
|
source common.sh
|
2023-10-05 16:12:18 +00:00
|
|
|
# This test is run by `tests/functional/nested-sandboxing/runner.nix` in an extra layer of sandboxing.
|
2023-07-13 17:17:17 +00:00
|
|
|
[[ -d /nix/store ]] || skipTest "running this test without Nix's deps being drawn from /nix/store is not yet supported"
|
|
|
|
|
2024-06-16 10:51:46 +00:00
|
|
|
TODO_NixOS
|
|
|
|
|
2023-07-13 17:17:17 +00:00
|
|
|
requireSandboxSupport
|
|
|
|
|
|
|
|
source ./nested-sandboxing/command.sh
|
|
|
|
|
|
|
|
expectStderr 100 runNixBuild badStoreUrl 2 | grepQuiet '`sandbox-build-dir` must not contain'
|
|
|
|
|
|
|
|
runNixBuild goodStoreUrl 5
|