1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/tests/functional
Nikodem Rabuliński 8105307f0f Always initialize curl in parent process on darwin
Because of an objc quirk[1], calling curl_global_init for the first time
after fork() will always result in a crash.
Up until now the solution has been to set
OBJC_DISABLE_INITIALIZE_FORK_SAFETY for every nix process to ignore
that error.
This is less than ideal because we were setting it in package.nix,
which meant that running nix tests locally would fail because
that variable was not set.
Instead of working around that error we address it at the core -
by calling curl_global_init inside initLibStore, which should mean
curl will already have been initialized by the time we try to do so in
a forked process.

[1] 01edf1705f/runtime/objc-initialize.mm (L614-L636)

(cherry-picked and adapted from c7d97802e4)
2024-09-18 14:29:26 +02:00
..
ca Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
characterisation Add missing .sh in _NIX_TEST_ACCEPT=1 message 2024-07-15 19:56:40 +02:00
common Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
config Add functional tests for include directive in nix config file 2024-04-02 18:10:36 -07:00
derivation Functional test for derivation "advanced attrs" 2024-06-23 21:42:56 -04:00
dyn-drv Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
flakes Disable subflakes test 2024-09-11 21:58:32 +02:00
git-hashing Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
lang Merge pull request #11188 from lf-/jade/kill-int-overflow 2024-08-11 04:24:16 +02:00
lang-gc Fix #11141 broken sp corrector 2024-07-22 14:52:08 +02:00
local-overlay-store Fix umount failure 2024-08-19 17:07:22 +02:00
nested-sandboxing Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
plugins Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
repl Add :doc support for __functor 2024-08-15 13:04:34 +02:00
test-libstoreconsumer Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
.version Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
add.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
bash-profile.sh housekeeping: shellcheck for tests/functional/bash-profile.sh 2024-06-12 16:58:25 -04:00
big-derivation-attr.nix
binary-cache-build-remote.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
binary-cache.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
brotli.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
build-delete.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
build-dry.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
build-hook-ca-fixed.nix
build-hook-ca-floating.nix
build-hook.nix
build-remote-content-addressed-fixed.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-remote-content-addressed-floating.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-remote-input-addressed.sh tests: Add hydraJobs.tests.functional_* 2024-06-20 14:54:11 +02:00
build-remote-trustless-after.sh Shellcheck some test scripts 2024-05-28 12:32:22 -04:00
build-remote-trustless-should-fail-0.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
build-remote-trustless-should-pass-0.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-remote-trustless-should-pass-1.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-remote-trustless-should-pass-2.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
build-remote-trustless-should-pass-3.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
build-remote-trustless.sh Shellcheck some test scripts 2024-05-28 12:32:22 -04:00
build-remote-with-mounted-ssh-ng.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
build-remote.sh Shellcheck some test scripts 2024-05-28 12:32:22 -04:00
build.sh addFlag: test that alias flags are allowed 2024-07-19 15:56:54 -04:00
ca-shell.nix
case-collision.nar Detect NAR directory entries that collide with another path after case-hacking 2024-09-05 19:26:10 +02:00
case.nar
characterisation-test-infra.sh Factor out a bit more language testings infra 2024-06-23 15:33:45 -04:00
check-refs.nix
check-refs.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
check-reqs.nix
check-reqs.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
check.nix
check.sh Merge branch 'master' into fix-sandbox-escape 2024-06-26 18:11:39 -04:00
chroot-store.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
common.sh Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
completions.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
compression-levels.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
compute-levels.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
config.nix.in
config.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
db-migration.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
debugger.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
dependencies.builder0.sh
dependencies.nix
dependencies.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
derivation-advanced-attributes.sh Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
derivation-json.sh housekeeping: shellcheck for tests/functional/derivation-json.sh 2024-06-12 17:41:16 -04:00
dot.nar Add tests for invalid file names in NARs 2024-09-12 15:02:30 +02:00
dotdot.nar Add tests for invalid file names in NARs 2024-09-12 15:02:30 +02:00
dummy
dump-db.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
duplicate.nar Add test case for NARs with duplicate directory entries 2024-09-05 16:41:15 +02:00
empty.nar Add tests for invalid file names in NARs 2024-09-12 15:02:30 +02:00
eval-store.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
eval.nix
eval.sh addFlag: test that alias flags are allowed 2024-07-19 15:56:54 -04:00
executable-after-contents.nar Make the NAR parser much stricter wrt field order 2024-09-12 15:57:46 +02:00
experimental-features.sh housekeeping: shellcheck for tests/functional/experimental-features.sh 2024-06-12 17:41:16 -04:00
export-graph.nix
export-graph.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
export.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
extra-sandbox-profile.nix libstore: check additionalSandboxProfile 2024-05-06 17:37:08 +02:00
extra-sandbox-profile.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
failing.nix
fetchClosure.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
fetchGit.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
fetchGitRefs.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
fetchGitSubmodules.sh Git fetcher: Ignore .gitmodules entries that are not submodules 2024-09-04 14:46:33 +02:00
fetchGitVerification.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
fetchMercurial.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
fetchPath.sh housekeeping: shellcheck for tests/functional/fetchPath.sh 2024-06-12 17:41:16 -04:00
fetchTree-file.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
fetchurl.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
filter-source.nix
filter-source.sh housekeeping: shellcheck for tests/functional/filter-source.sh 2024-06-12 17:41:16 -04:00
fixed.builder1.sh
fixed.builder2.sh
fixed.nix Make outputHashAlgo accept "nar", stay in sync 2024-04-09 16:17:23 -04:00
fixed.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
fmt.sh fix(nix fmt): remove the default "." argument 2024-09-10 22:18:56 +02:00
fmt.simple.sh fix(nix fmt): remove the default "." argument 2024-09-10 22:18:56 +02:00
fod-failing.nix nix3-build: show all FOD errors with --keep-going 2024-05-17 18:48:52 +02:00
function-trace.sh housekeeping: shellcheck for tests/functional/function-trace.sh 2024-06-12 17:41:16 -04:00
gc-auto.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
gc-concurrent.builder.sh
gc-concurrent.nix
gc-concurrent.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
gc-concurrent2.builder.sh
gc-non-blocking.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
gc-runtime.nix
gc-runtime.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
gc.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
hash-check.nix
hash-convert.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
hash-path.sh housekeeping: shellcheck for tests/functional/hash-path.sh 2024-06-12 17:41:16 -04:00
help.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
hermetic.nix Activate hermetic.nix variation only for new layered store tests 2024-02-29 10:06:53 -05:00
ifd.nix remote-store test: Break out IFD expression into a separate file 2023-12-23 17:15:09 -05:00
import-derivation.nix
import-derivation.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
impure-derivations.nix
impure-derivations.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
impure-env.nix Allow CLI to pass environment variables to FOD builder (#8830) 2023-10-11 11:58:42 +00:00
impure-env.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
impure-eval.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
install-darwin.sh
lang-gc.sh tests/functional/lang-gc: Disable for now 2024-07-22 17:46:08 +02:00
lang.sh tests/functional/lang: Avoid /usr/bin/env for sandbox 2024-07-16 22:43:56 +02:00
legacy-ssh-store.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
linux-sandbox-cert-test.nix
linux-sandbox.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
local.mk Add test case for NARs with duplicate directory entries 2024-09-05 16:41:15 +02:00
logging.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
meson.build tests: test was re-named 2024-09-09 22:15:45 -04:00
misc.sh Explain when man is missing 2024-07-05 19:18:23 +02:00
multiple-outputs.nix Fix empty outputsToInstall for InstallableAttrPath 2024-06-02 14:26:18 +03:00
multiple-outputs.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
name-after-node.nar Make the NAR parser much stricter wrt field order 2024-09-12 15:57:46 +02:00
nar-access.nix
nar-access.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nars.sh Test the case hack a bit more 2024-09-12 17:27:41 +02:00
nested-sandboxing.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nix-build-examples.nix
nix-build.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
nix-channel.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
nix-collect-garbage-d.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nix-copy-ssh-common.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nix-copy-ssh-ng.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nix-copy-ssh.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
nix-daemon-untrusting.sh Arbitrarily bring back some nix-daemon calls 2024-01-13 11:27:04 -08:00
nix-profile.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
nix-shell.sh nix-shell: look up shell.nix when argument is a directory (#11057) 2024-07-08 14:36:36 +02:00
nix_path.sh reword documentation on nix-path config option (#7772) 2024-07-31 21:41:26 +02:00
nul.nar Add tests for invalid file names in NARs 2024-09-12 15:02:30 +02:00
optimise-store.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
output-normalization.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
package.nix Always initialize curl in parent process on darwin 2024-09-18 14:29:26 +02:00
parallel.builder.sh
parallel.nix
parallel.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
pass-as-file.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
path-from-hash-part.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
path-info.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
path.nix
placeholders.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
plugins.sh Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
post-hook.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
pure-eval.nix
pure-eval.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
push-to-store-old.sh
push-to-store.sh
read-only-store.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
readfile-context.nix
readfile-context.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
recursive.nix
recursive.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
referrers.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
remote-store.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
repair.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
repl.sh tests/functional/repl: Improve failure reporting 2024-07-24 12:48:38 +02:00
restricted.nix
restricted.sh Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
search.nix
search.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
secure-drv-outputs.nix
secure-drv-outputs.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
selfref-gc.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
shell-hello.nix tests/run.sh: Check that env is mostly unmodified 2024-06-17 17:03:58 +02:00
shell.nix nix-shell: look up shell.nix when argument is a directory (#11057) 2024-07-08 14:36:36 +02:00
shell.sh Merge pull request #10931 from hercules-ci/test-run-and-shell-envs 2024-07-17 21:21:14 +02:00
shell.shebang.expr Fix and extend nix-shell baseDir test 2024-07-07 00:23:22 +02:00
shell.shebang.legacy.expr Fixup: add missing test file 2024-07-07 14:49:52 +02:00
shell.shebang.nix tests: test nix-shell shebang quoting 2023-10-23 17:32:50 +02:00
shell.shebang.rb
shell.shebang.sh
signing.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
simple-failing.nix
simple.builder.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
simple.nix add regression test for nix edit 2024-05-31 12:58:47 +02:00
simple.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
slash.nar Add tests for invalid file names in NARs 2024-09-12 15:02:30 +02:00
ssh-relay.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
store-info.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
structured-attrs-shell.nix
structured-attrs.nix
structured-attrs.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
substitute-with-invalid-ca.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
suggestions.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
supplementary-groups.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
symlink-derivation.nix Fix the access of symlinks to host files in the sandbox 2024-04-12 15:57:53 +02:00
tarball.sh Merge remote-tracking branch 'origin/master' into no-flake-substitution 2024-09-11 17:10:55 +02:00
test-infra.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
test-libstoreconsumer.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
timeout.nix
timeout.sh Fix a few shellcheck tests 2024-08-14 15:16:06 +02:00
toString-path.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
tree.tar.gz Support hard links in tarballs 2024-06-11 16:05:57 +02:00
undefined-variable.nix
unnormalized.nar Test that deserializing NARs with names with equal Unicode normal forms fails on macOS 2024-09-05 20:37:26 +02:00
user-envs-migration.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
user-envs-test-case.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
user-envs.builder.sh
user-envs.nix
user-envs.sh Ensure all functional scripts are (a) executable (b) have shebang 2024-05-28 12:46:24 -04:00
why-depends.sh tests/functional: Enable more tests in NixOS VM 2024-06-20 14:54:11 +02:00
zstd.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00