aboutsummaryrefslogtreecommitdiff
path: root/tests/simple.sh
AgeCommit message (Collapse)Author
2023-12-01Put functional tests in `tests/functional`John Ericson
I think it is bad for these reasons when `tests/` contains a mix of functional and integration tests - Concepts is harder to understand, the documentation makes a good unit vs functional vs integration distinction, but when the integration tests are just two subdirs within `tests/` this is not clear. - Source filtering in the `flake.nix` is more complex. We need to filter out some of the dirs from `tests/`, rather than simply pick the dirs we want and take all of them. This is a good sign the structure of what we are trying to do is not matching the structure of the files. With this change we have a clean: ```shell-session $ git show 'HEAD:tests' tree HEAD:tests functional/ installer/ nixos/ ``` (cherry picked from commit 68c81c737571794f7246db53fb4774e94fcf4b7e)
2022-01-19Fix segfault or stack overflow caused by large derivation fieldsRobert Hensing
This removes a dynamic stack allocation, making the derivation unparsing logic robust against overflows when large strings are added to a derivation. Overflow behavior depends on the platform and stack configuration. For instance, x86_64-linux/glibc behaves as (somewhat) expected: $ (ulimit -s 20000; nix-instantiate tests/lang/eval-okay-big-derivation-attr.nix) error: stack overflow (possible infinite recursion) $ (ulimit -s 40000; nix-instantiate tests/lang/eval-okay-big-derivation-attr.nix) error: expression does not evaluate to a derivation (or a set or list of those) However, on aarch64-darwin: $ nix-instantiate big-attr.nix ~ zsh: segmentation fault nix-instantiate big-attr.nix This indicates a slight flaw in the single stack protection page approach that is not encountered with normal stack frames.
2020-09-23Test whether build/repair results are read-onlyEelco Dolstra
2016-10-19Handle $TMPDIR ending with a slashEelco Dolstra
This caused the gc test to fail on Darwin.
2016-06-17Fix testEelco Dolstra
http://hydra.nixos.org/build/36631898
2011-10-10* Refactoring: remove unnecessary variables from the tests.Eelco Dolstra
2008-12-03(no commit message)Eelco Dolstra
2007-12-31(no commit message)Eelco Dolstra
2007-12-30* Fix the hashDerivationModulo test. I should really investigateEelco Dolstra
*why* the test failed...
2006-07-21* Purify `make check'.Eelco Dolstra
2006-07-19* Add a precise test for hashDerivatioModulo.Eelco Dolstra
2006-03-01* Test `nix-store -q --binding'.Eelco Dolstra
2006-03-01* TDD! Woohoo!Eelco Dolstra
2006-03-01* Simplification.Eelco Dolstra
2006-03-01* Make it easy to run individual tests from the command line.Eelco Dolstra
2005-02-09* Propagate the deriver of a path through the substitute mechanism.Eelco Dolstra
* Removed some dead code (successor stuff) from nix-push. * Updated terminology in the tests (store expr -> drv path). * Check that the deriver is set properly in the tests.
2005-01-25* In nix-store: change `--build' back to `--realise'. Also broughtEelco Dolstra
back the query flag `--force-realise'. * Fixed some of the tests.
2005-01-19* Change extension `.store' to `.drv'.Eelco Dolstra
* Re-enable `nix-store --query --requisites'.
2004-05-04* Allow the location of the store etc. to be specified usingEelco Dolstra
environment variables. * Started adding some automatic tests. * Do a `make check' when building RPMs.