Eelco Dolstra
7861260a5f
Clear NIX_STORE when running the tests
2012-07-26 17:12:42 -04:00
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
ca3d9f8b31
Urgh, modified the wrong file...
2012-04-14 19:52:58 +02:00
Eelco Dolstra
e855c7e2c9
nix-channel improvements
...
"nix-channel --add" now accepts a second argument: the channel name.
This allows channels to have a nicer name than (say) nixpkgs_unstable.
If no name is given, it defaults to the last component of the URL
(with "-unstable" or "-stable" removed).
Also, channels are now stored in a profile
(/nix/var/nix/profiles/per-user/$USER/channels). One advantage of
this is that it allows rollbacks (e.g. if "nix-channel --update" gives
an undesirable update).
2012-04-14 18:38:52 +02: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
b006a31d52
Drop the externals directory
...
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.
2012-03-18 23:54:57 +01:00
Eelco Dolstra
b461721f17
Fix tests
2012-03-12 21:41:45 +01:00
Eelco Dolstra
4c9fdd2cd6
* Add a test for importing derivations.
2012-01-26 13:04:50 +00:00
Eelco Dolstra
126c7317bc
* Add a test case for comparing derivations.
2012-01-19 22:10:24 +00:00
Ludovic Courtès
6245f0d529
tests: Run `download-using-manifests' via libtool so that dlopening works.
2012-01-11 16:58:49 +00:00
Eelco Dolstra
9936da6b54
* Check whether the outputName attribute works.
2012-01-04 12:45:53 +00:00
Eelco Dolstra
6c31232e14
* Sync with the trunk.
2012-01-03 12:59:31 +00:00
Eelco Dolstra
63227d434c
* FreeBSD tar defaults to the tape device instead of stdout.
2012-01-03 12:18:41 +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
48cea0d01e
* Refactoring: Get rid of a few subdirectories in corepkgs/, and some
...
other simplifications.
* Use <nix/...> to locate the corepkgs. This allows them to be
overriden through $NIX_PATH.
* Use bash's pipefail option in the NAR builder so that we don't need
to create a temporary file.
2012-01-03 00:16:29 +00:00
Eelco Dolstra
254b3399ba
* Sync with the trunk.
2011-12-30 13:08:14 +00:00
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
3877619888
* Add some accidentally committed files.
2011-12-21 11:47:52 +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