Eelco Dolstra
5679041132
* The ‘foo.drvPath’ feature was already broken in read-only mode.
...
Since it's rarely used and fixing it is too much work right now,
just document it.
2011-12-21 18:19:05 +00:00
Shea Levy
f8e54b7874
Make the reference cycle in the cyclic outputs test indirect
2011-12-21 17:34:44 +00:00
Eelco Dolstra
4be5a2c096
* Add a test for unsafeDiscardOutputDependency. Not really related to
...
multiple outputs, but good to have anyway.
2011-12-21 14:42:06 +00:00
Eelco Dolstra
179409b911
* Add a test for referring to another derivation's ‘drvPath’. This
...
currently fails in read-only mode.
2011-12-21 13:47:21 +00:00
Eelco Dolstra
edd9359beb
* Doing a GC after building a derivation with cyclic outputs currently
...
segfaults.
2011-12-20 17:10:39 +00:00
Eelco Dolstra
1f3b0ede7d
* Add a (currently failing) test that checks whether mutually
...
recursive outputs are properly rejected.
* Add a (also failing) test for "nix-build -A <output-name>".
2011-12-20 17:08:43 +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
Eelco Dolstra
b12b21825c
* Allow '<nixexpr>' syntax to be used in nix-instantiate, nix-build
...
and nix-env, e.g.,
$ nix-env -f '<nixpkgs>' -i patchelf
or
$ nix-build '<nixos/tests>' -A login.test
2011-12-01 16:41:43 +00:00
Eelco Dolstra
784083176a
* Fix race.
2011-11-25 17:04:26 +00:00
Shea Levy
46876ff203
Fix stupid typo in multiple outputs test
2011-11-06 06:28:25 +00:00
Shea Levy
f883afa1a1
The nixinstantiate and nixstore env vars are no longer set in common.sh
2011-11-06 06:28:08 +00:00
Shea Levy
2721e9f56f
Merge from trunk
2011-11-06 00:13:09 +00:00
Eelco Dolstra
a6a3f3a8c2
* Fix race condition in the test.
2011-11-05 21:23:01 +00:00
Eelco Dolstra
d43a148204
* Add a test for nix-copy-closure.
2011-10-11 13:58:47 +00:00
Eelco Dolstra
2492914fbc
* Move the remote building test from the NixOS tree to the Nix tree.
2011-10-11 13:06:59 +00:00
Eelco Dolstra
7d314b8c95
* Work around a race condition starting the Nix daemon.
2011-10-11 11:14:30 +00:00
Eelco Dolstra
8af7d766f0
* Refactoring: remove unnecessary variables from the tests.
2011-10-10 21:32:34 +00:00
Eelco Dolstra
6fcdbcac20
* Install NixManifest.pm, NixConfig.pm and GeneratePatches.pm under
...
the Nix:: namespace.
2011-10-10 21:11:08 +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
da18b11b05
* On FreeBSD, ‘touch’ is not in the test $PATH, so don't use it.
2011-08-08 14:08:38 +00:00
Eelco Dolstra
07340b8be7
* Add the Nix corepkgs to the end of the search path. This makes it
...
possible for other Nix expressions to use corepkgs (mostly useful
for the buildenv function).
2011-08-06 18:23:38 +00:00
Eelco Dolstra
c7101dac0b
* Allow redirections in search path entries. E.g. if you have a
...
directory
/home/eelco/src/stdenv-updates
that you want to use as the directory for import such as
with (import <nixpkgs> { });
then you can say
$ nix-build -I nixpkgs=/home/eelco/src/stdenv-updates
2011-08-06 17:48:57 +00:00
Eelco Dolstra
1578b2261d
* Add lang/dir* to the distribution.
2011-08-06 16:18:54 +00:00
Eelco Dolstra
1ecc97b6bd
* Add a Nix expression search path feature. Paths between angle
...
brackets, e.g.
import <nixpkgs/pkgs/lib>
are resolved by looking them up relative to the elements listed in
the search path. This allows us to get rid of hacks like
import "${builtins.getEnv "NIXPKGS_ALL"}/pkgs/lib"
The search path can be specified through the ‘-I’ command-line flag
and through the colon-separated ‘NIX_PATH’ environment variable,
e.g.,
$ nix-build -I /etc/nixos ...
If a file is not found in the search path, an error message is
lazily thrown.
2011-08-06 16:05:24 +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
Eelco Dolstra
4bdb51e621
* Refactoring.
2011-07-20 11:50:13 +00:00
Eelco Dolstra
d5d4dcd4c9
* Allow attribute names to be strings. Based on the
...
allow-arbitrary-strinsg-in-names patch by Marc Weber.
2011-07-13 15:53:24 +00:00
Eelco Dolstra
0a623a10c7
* Allow a default value in attribute selection by writing
...
x.y.z or default
(as originally proposed in
https://mail.cs.uu.nl/pipermail/nix-dev/2009-September/002989.html ).
For instance, an expression like
stdenv.lib.attrByPath ["features" "ckSched"] false args
can now be written as
args.features.ckSched or false
2011-07-13 12:19:57 +00:00
Eelco Dolstra
5580f3817c
* Test case.
2011-07-06 10:58:53 +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
d159ea1b7e
* Urgh, FreeBSD doesn't have a "seq" command.
2011-02-09 14:03:16 +00:00
Eelco Dolstra
9db190eb31
* builtins.substring: if "start" is beyond the end of the string,
...
return the empty string.
2011-01-14 12:47:10 +00:00
Eelco Dolstra
365f3028dd
* Use CamelCase for the Perl modules.
2010-12-05 17:50:29 +00:00
Eelco Dolstra
f42a505ab7
* Add a script `nix-generate-patches'.
...
* Fix the binary patching test.
2010-12-05 17:36:02 +00:00
Eelco Dolstra
d92ccbf1ac
* Test whether sequences of patches work.
2010-11-17 18:01:37 +00:00
Eelco Dolstra
3d38a49840
* In the download size indication, take binary patches into account.
...
Hopefully this doesn't slow things down too much.
2010-11-17 17:32:25 +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
bf658f016f
* Test that download sizes are shown correctly.
2010-11-17 14:39:02 +00:00
Eelco Dolstra
1e24cbaba3
* Fix the test.
2010-11-17 14:35:14 +00:00
Eelco Dolstra
fb9368b5a0
* Sync with the trunk.
2010-11-16 12:49:47 +00:00
Eelco Dolstra
e0b7fb8f27
* Keep attribute sets in sorted order to speed up attribute lookups.
...
* Simplify the representation of attributes in the AST.
* Change the behaviour of listToAttrs() in case of duplicate names.
2010-10-24 19:52:33 +00:00
Eelco Dolstra
02934b1200
* Regression test for listToAttr's behaviour if an attribute name
...
occurs multiple times.
2010-10-23 22:55:30 +00:00
Eelco Dolstra
cf7e645a48
* Regression test for __overrides.
2010-10-22 15:15:12 +00:00
Eelco Dolstra
7119d38287
* In the referrers test, lower the nesting depth from 2500 to 1000 to
...
prevent hitting a stack overflow bug in the garbage collector.
2010-10-04 22:26:38 +00:00
Eelco Dolstra
e437b08250
* Made the build hook mechanism more efficient. Rather than starting
...
the hook every time we want to ask whether we can run a remote build
(which can be very often), we now reuse a hook process for answering
those queries until it accepts a build. So if there are N
derivations to be built, at most N hooks will be started.
2010-08-25 20:44:28 +00:00
Eelco Dolstra
587dc8aa00
* Sync with the trunk.
2010-08-04 17:48:29 +00:00
Peter Simons
60b632b173
tests/build-hook.hook.sh: prefer more portable ...
syntax over $(...) for running sub-shells
...
The /bin/sh interpreter on Solaris doesn't understand $(...) syntax for running
sub-shells. Consequently, this test fails on Solaris. To remedy the situation,
the script either needs to be run by /bin/bash -- which is non-standard --, or
it needs to use the ancient but portable `...` syntax.
2010-06-25 14:05:37 +00:00