Eelco Dolstra
0f65793f94
Add a test for Nix store optimisation
2012-07-23 17:40:23 -04:00
Eelco Dolstra
51f9f9924b
Add a test for the fetchurl function
2012-07-09 15:41:43 -04:00
Eelco Dolstra
ea402a255f
Replace "make check" with "make installcheck"
...
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-19 01:20:02 +01:00
Eelco Dolstra
4c9fdd2cd6
* Add a test for importing derivations.
2012-01-26 13:04:50 +00:00
Eelco Dolstra
6c31232e14
* Sync with the trunk.
2012-01-03 12:59:31 +00:00
Eelco Dolstra
39d45a6b09
* Add a test for nix-channel.
...
* Refactor the nix-channel unpacker a bit.
2012-01-03 01:51:38 +00:00
Eelco Dolstra
46e42c92c1
* Refactor a bit so that more tests can be added.
2011-12-20 17:01:02 +00:00
Eelco Dolstra
194d21f9f6
* Sync with the trunk.
2011-12-16 23:33:01 +00:00
Eelco Dolstra
23bf700196
* Oops, the daemon test wasn't actually using the daemon.
2011-12-14 22:31:31 +00:00
Shea Levy
8f28a3ba25
Add a test for multiple outputs
...
This currently fails. Yay test-driven development!
2011-09-14 05:59:29 +00:00
Eelco Dolstra
1578b2261d
* Add lang/dir* to the distribution.
2011-08-06 16:18:54 +00:00
Eelco Dolstra
d2bfe1b071
* Added a test that make sure that users cannot register
...
specially-crafted derivations that produce output paths belonging to
other derivations. This could be used to inject malware into the
store.
2011-07-20 12:15:40 +00:00
Ludovic Courtès
5c9e9f732d
Add support for the build-timeout' and
--timeout' options.
2011-06-30 15:19:13 +00:00
Eelco Dolstra
f69626ed3e
2010-11-17 15:45:09 +00:00
Eelco Dolstra
a07c68f05e
* Finally, a test for the binary patch functionality.
2010-11-17 15:30:07 +00:00
Eelco Dolstra
92f525ecf4
* Negative caching, i.e. caching of build failures. Disabled by
...
default. This is mostly useful for Hydra.
2009-03-25 21:05:42 +00:00
Eelco Dolstra
7024a1ef07
* Removed the locking.sh test; it's redundant because of the extended
...
parallel.sh test. Also, don't call multiple nix-builds in parallel,
since they can race creating .nix-build-tmp-derivation.
2009-03-25 16:43:38 +00:00
Eelco Dolstra
8146a0c731
* Use bash in the tests.
2009-03-25 16:11:04 +00:00
Eelco Dolstra
13df3915ef
* Missing file.
2009-03-18 16:23:29 +00:00
Eelco Dolstra
51e7e32c3b
* Refactoring: renamed *.nix.in to *.nix.
2009-03-17 17:11:55 +00:00
Eelco Dolstra
2d5114452d
* Regression test for the `exportReferencesGraph'
...
derivation attribute.
2009-03-17 16:33:48 +00:00
Eelco Dolstra
0008b0006d
* Simplify deleting .lock files in /nix/store: just don't delete them
...
if they belong a path that's currently being built. This gets rid
of some Cygwin-specific code.
2008-12-12 17:03:18 +00:00
Eelco Dolstra
b0e92f6d47
* Merged the no-bdb branch (-r10900:HEAD
...
https://svn.nixos.org/repos/nix/nix/branches/no-bdb ).
2008-06-09 13:52:45 +00:00
Eelco Dolstra
a7e1a51fdf
* A test for the nix-worker.
2007-08-13 14:56:40 +00:00
Eelco Dolstra
550ba9ebb4
* Fix the tests.
2007-08-13 13:15:02 +00:00
Eelco Dolstra
6c9fdb17fb
* Don't use $SHELL.
2007-02-21 14:00:46 +00:00
Eelco Dolstra
8659edc098
* Don't forget the .flags files.
2007-01-14 12:33:04 +00:00
Eelco Dolstra
a3e6415ba8
* New primop builtins.filterSource, which can be used to filter files
...
from a source directory. All files for which a predicate function
returns true are copied to the store. Typical example is to leave
out the .svn directory:
stdenv.mkDerivation {
...
src = builtins.filterSource
(path: baseNameOf (toString path) != ".svn")
./source-dir;
# as opposed to
# src = ./source-dir;
}
This is important because the .svn directory influences the hash in
a rather unpredictable and variable way.
2006-12-12 23:05:01 +00:00
Eelco Dolstra
7a4497d98c
* Checks for allowedReferences and some other features.
...
* Use nix-build in a test.
2006-10-19 17:44:51 +00:00
Eelco Dolstra
0bd5eb71a0
* `nix-install-package --url': install from a URL (NIX-12).
...
* `nix-install-package --help' (NIX-9).
* `nix-install-package --non-interactive': don't prompt or pause.
* Tests for nix-install-package.
* Security fixes: filter the values obtained from the nixpkg.
2006-09-21 18:54:08 +00:00
Eelco Dolstra
cc0505f033
* Distribute *.exp.xml.
2006-08-17 12:21:39 +00:00
Eelco Dolstra
7adaa6d446
* Test for runtime root finding.
2006-07-21 12:46:54 +00:00
Eelco Dolstra
410760c5ab
* Doh.
2006-07-20 12:58:51 +00:00
Eelco Dolstra
88e54153dc
* Add a precise test for hashDerivatioModulo.
2006-07-19 15:49:29 +00:00
Eelco Dolstra
78d84f5631
* Tests for fixed-output derivations (and attribute selection, incidentally).
2006-03-01 18:26:21 +00:00
Eelco Dolstra
ea9c35d3cc
* Test nix-store --add' and
nix-store -q --hash'.
2006-03-01 15:43:37 +00:00
Eelco Dolstra
5cb6c42088
* Test nix-build. This also tests indirect roots.
2006-03-01 13:49:12 +00:00
Eelco Dolstra
e48bd8c8b5
* Add a test for nix-log2xml.
2006-03-01 13:25:08 +00:00
Eelco Dolstra
84c4631221
* Simplification.
2006-03-01 12:51:18 +00:00
Eelco Dolstra
a4c63c6e8e
* Make it easy to run individual tests from the command line.
2006-03-01 12:15:33 +00:00
Eelco Dolstra
f0d6318dd1
* More tests.
2006-02-22 14:02:44 +00:00
Eelco Dolstra
da0a6b6499
* Doh.
2006-02-12 21:00:36 +00:00
Eelco Dolstra
e771e59178
* Tests for nix-env, finally!
2006-02-08 14:32:06 +00:00
Eelco Dolstra
18bbcb1214
* Add a test to demonstrate the quadratic complexity of referrer
...
(de)registration, in particular garbage collection (NIX-23).
2005-12-11 19:25:48 +00:00
Eelco Dolstra
33efb52e02
* Hack to get around the libtool wrapper script around nix-store not
...
working when PATH is unset.
2005-07-25 07:25:18 +00:00
Eelco Dolstra
0083562f75
* Fix broken GC test.
2005-02-15 09:39:12 +00:00
Eelco Dolstra
c3981d81f6
* Make check fixes.
2005-02-01 17:50:48 +00:00
Eelco Dolstra
06b4424286
* Add missing files to dist.
...
* Fix GC and substitute bugs related to self-references. Add a
regression test.
2005-02-01 09:23:38 +00:00
Eelco Dolstra
32fa82a56a
* Acquire a global GC lock to prevent new temporary root files from
...
being created after the garbage collector has read the temproots
directory. This blocks the creation of new processes, but the
garbage collector could periodically release the GC lock to allow
them to run.
2005-01-31 22:23:49 +00:00
Eelco Dolstra
89c9bc11ab
* Add a test for a more subtle race: a process starting after the
...
temporary root files have been read but creating outputs before the
store directory has been read.
2005-01-31 22:01:55 +00:00