aboutsummaryrefslogtreecommitdiff
path: root/tests/common.sh.in
AgeCommit message (Collapse)Author
2021-07-27Remove the right socket before starting the daemonregnat
For some reason, an old socket occasionally stays here on OSX, causing the subsequent tests to fail
2021-07-27Allow running all the tests with the daemonregnat
When `NIX_DAEMON_PACKAGE` is set, make all the tests use the Nix daemon. That way we can test every piece of Nix functionality both with and without the daemon. Tests for which using the daemon isn’t possible or doesn’t make sens can selectively be disabled with `needLocalStore`
2021-03-16Make the tests (optionnally) run in another derivationregnat
That way we can run them without rebuilding Nix
2021-03-16Add a test ensuring compatibility with an old daemonregnat
This requires adding `nix` to its own closure which is a bit unfortunate, but as it is optional (the test will be disabled if `OUTER_NIX` is unset) it shouldn't be too much of an issue. (Ideally this should go in another derivation so that we can build Nix and run the test independently, but as the tests are running in the same derivation as the build it's a bit complicated to do so).
2021-03-01Move the CA tests to a sub-directoryregnat
Requires a slight update to the test infra to work properly, but having the possibility to group tests that way makes the whole thing quite cleaner imho
2021-01-14Add 'nix daemon' commandEelco Dolstra
2021-01-06Make sodium a required dependencyEelco Dolstra
2020-07-23Remove references to xmllintEelco Dolstra
2020-07-03Shorten the path to the test rootregnat
Fix a socket length failure on the OSX builders
2020-07-02Run the tests in parallelregnat
Cause the time needed to run the testsuite to drop from ~4mins to ~40s
2020-06-25build-remote.sh: Test LegacySSHStoreEelco Dolstra
2020-04-14add NIX_USER_CONF_FILESzimbatm
Motivation: maintain project-level configuration files. Document the whole situation a bit better so that it corresponds to the implementation, and add NIX_USER_CONF_FILES that allows overriding which user files Nix will load during startup.
2019-07-30Disable findRuntimeRoots on darwin when running tests because lsof is slowBas van Dijk
See: https://github.com/NixOS/nix/issues/3011
2019-03-04Restore --init calls in testsEelco Dolstra
2019-02-22remove noop uses of nix-store --initzimbatm
the nix-store --init command is a noop apparently
2018-11-07Enable sandboxing by defaultEelco Dolstra
Closes #179.
2018-08-06Require libbrotliEelco Dolstra
2018-06-06tests: more robust check for user namespaces availability (canUseSandbox)Aleksandr Pashkov
Issue https://github.com/NixOS/nix/issues/2165
2018-02-01Remove obsolete references to manifestsEelco Dolstra
Closes #323.
2018-01-13Fix tests using user namespaces on kernels that don't have itTuomas Tynkkynen
Disable various tests if the kernel doesn't support unprivileged user namespaces (e.g. Arch Linux disables them) or disable them via a sysctl (Debian, Ubuntu). Fixes #1521 Fixes #1625
2017-12-30use libbrotli directly when availableWill Dietz
* Look for both 'brotli' and 'bro' as external command, since upstream has renamed it in newer versions. If neither are found, current runtime behavior is preserved: try to find 'bro' on PATH. * Limit amount handed to BrotliEncoderCompressStream to ensure interrupts are processed in a timely manner. Testing shows negligible performance impact. (Other compression sinks don't seem to require this)
2017-11-24fetchGit: Ignore tarballTtl if rev is set and not in the repo.Shea Levy
Fixes #1697.
2017-11-15DohEelco Dolstra
2017-10-23NIX_BUILD_HOOK variable is goneEelco Dolstra
2017-07-06Remove unused variable from test scriptRobert Vollmert
2017-06-19macOS: Ugly hack to make the tests succeedEelco Dolstra
Sandboxes cannot be nested, so if Nix's build runs inside a sandbox, it cannot use a sandbox itself. I don't see a clean way to detect whether we're in a sandbox, so use a test-specific hack. https://github.com/NixOS/nix/issues/1413
2016-11-26Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25Get rid of unicode quotes (#1140)Guillaume Maudoux
2016-10-19Handle $TMPDIR ending with a slashEelco Dolstra
This caused the gc test to fail on Darwin.
2016-08-10Remove $NIX_DB_DIREelco Dolstra
This variable has no reason to exist, given $NIX_STATE_DIR.
2016-07-21Shut up warningEelco Dolstra
2016-05-31Fix nix-profile test in a chrootEelco Dolstra
http://hydra.nixos.org/build/36462078
2016-05-30Forgot to commitEelco Dolstra
2016-04-11Remove manifest supportEelco Dolstra
Manifests have been superseded by binary caches for years. This also gets rid of nix-pull, nix-generate-patches and bsdiff/bspatch.
2016-03-24Use shorter daemon socket path in testsEelco Dolstra
Otherwise we hit the 104 character limit. http://hydra.nixos.org/build/33562028
2015-02-10Make libsodium an optional dependencyEelco Dolstra
2014-09-23Fix use of PAGER during testsEelco Dolstra
2014-08-13Remove log2html.xsl and friendsEelco Dolstra
It's part of Hydra now.
2014-02-17Add a test for repairing pathsEelco Dolstra
2014-02-01Fix logging testEelco Dolstra
2014-02-01Fix the nix-profile testEelco Dolstra
2013-11-25Add support for ‘make installcheck’Eelco Dolstra
2013-01-02UrggghEelco Dolstra
http://hydra.nixos.org/build/3661100
2012-10-03Rename nix-worker to nix-daemonEelco Dolstra
2012-09-13Add a test for nix-profile.shEelco Dolstra
2012-07-27Use "set -x" in the tests to see where a test failsEelco Dolstra
2012-07-26Clear NIX_STORE when running the testsEelco Dolstra
2012-04-14Urgh, modified the wrong file...Eelco Dolstra
2012-03-19Replace "make check" with "make installcheck"Eelco Dolstra
Ensuring that the tests work from the build tree requires a growing number of nasty hacks. The tests also don't verify that the installed Nix actually works. Thus, the tests now require "make install" to have been run.
2012-03-18Drop the externals directoryEelco Dolstra
Nix now requires SQLite and bzip2 to be pre-installed. SQLite is detected using pkg-config. We required DBD::SQLite anyway, so depending on SQLite is not a big problem. The --with-bzip2, --with-openssl and --with-sqlite flags are gone.