aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-07-30Fix the testEelco Dolstra
2012-07-27Allow a binary cache to declare that it doesn't support "nix-env -qas"Eelco Dolstra
Querying all substitutable paths via "nix-env -qas" is potentially hard on a server, since it involves sending thousands of HEAD requests. So a binary cache must now have a meta-info file named "nix-cache-info" that specifies whether the server wants this. It also specifies the store prefix so that we don't send useless queries to a binary cache for a different store prefix.
2012-07-27Use "set -x" in the tests to see where a test failsEelco Dolstra
2012-07-27Test "nix-env -qas" with the binary cache substituterEelco Dolstra
2012-07-27Let build.cc verify the expected hash of a substituter's outputEelco Dolstra
Since SubstitutionGoal::finished() in build.cc computes the hash anyway, we can prevent the inefficiency of computing the hash twice by letting the substituter tell Nix about the expected hash, which can then verify it.
2012-07-26nix-push: Support generating a manifest againEelco Dolstra
This makes all the tests succeed. Woohoo!
2012-07-26Fix the substituter testsEelco Dolstra
2012-07-26Add a test for the binary cache substituterEelco Dolstra
2012-07-26Clear NIX_STORE when running the testsEelco Dolstra
2012-07-23Add a test for Nix store optimisationEelco Dolstra
2012-07-09Add a test for the fetchurl functionEelco Dolstra
2012-04-14Urgh, modified the wrong file...Eelco Dolstra
2012-04-14nix-channel improvementsEelco Dolstra
"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-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.
2012-03-12Fix testsEelco Dolstra
2012-01-26* Add a test for importing derivations.Eelco Dolstra
2012-01-19* Add a test case for comparing derivations.Eelco Dolstra
2012-01-11tests: Run `download-using-manifests' via libtool so that dlopening works.Ludovic Courtès
2012-01-04* Check whether the outputName attribute works.Eelco Dolstra
2012-01-03* Sync with the trunk.Eelco Dolstra
2012-01-03* FreeBSD tar defaults to the tape device instead of stdout.Eelco Dolstra
2012-01-03* Add a test for nix-channel.Eelco Dolstra
* Refactor the nix-channel unpacker a bit.
2012-01-03* Refactoring: Get rid of a few subdirectories in corepkgs/, and someEelco Dolstra
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.
2011-12-30* Sync with the trunk.Eelco Dolstra
2011-12-21* The ‘foo.drvPath’ feature was already broken in read-only mode.Eelco Dolstra
Since it's rarely used and fixing it is too much work right now, just document it.
2011-12-21Make the reference cycle in the cyclic outputs test indirectShea Levy
2011-12-21* Add a test for unsafeDiscardOutputDependency. Not really related toEelco Dolstra
multiple outputs, but good to have anyway.
2011-12-21* Add a test for referring to another derivation's ‘drvPath’. ThisEelco Dolstra
currently fails in read-only mode.
2011-12-21* Add some accidentally committed files.Eelco Dolstra
2011-12-20* Doing a GC after building a derivation with cyclic outputs currentlyEelco Dolstra
segfaults.
2011-12-20* Add a (currently failing) test that checks whether mutuallyEelco Dolstra
recursive outputs are properly rejected. * Add a (also failing) test for "nix-build -A <output-name>".
2011-12-20* Refactor a bit so that more tests can be added.Eelco Dolstra
2011-12-16* Sync with the trunk.Eelco Dolstra
2011-12-14* Oops, the daemon test wasn't actually using the daemon.Eelco Dolstra
2011-12-01* Allow '<nixexpr>' syntax to be used in nix-instantiate, nix-buildEelco Dolstra
and nix-env, e.g., $ nix-env -f '<nixpkgs>' -i patchelf or $ nix-build '<nixos/tests>' -A login.test
2011-11-25* Fix race.Eelco Dolstra
2011-11-06Fix stupid typo in multiple outputs testShea Levy
2011-11-06The nixinstantiate and nixstore env vars are no longer set in common.shShea Levy
2011-11-06Merge from trunkShea Levy
2011-11-05* Fix race condition in the test.Eelco Dolstra
2011-10-11* Add a test for nix-copy-closure.Eelco Dolstra
2011-10-11* Move the remote building test from the NixOS tree to the Nix tree.Eelco Dolstra
2011-10-11* Work around a race condition starting the Nix daemon.Eelco Dolstra
2011-10-10* Refactoring: remove unnecessary variables from the tests.Eelco Dolstra
2011-10-10* Install NixManifest.pm, NixConfig.pm and GeneratePatches.pm underEelco Dolstra
the Nix:: namespace.
2011-09-14Add a test for multiple outputsShea Levy
This currently fails. Yay test-driven development!
2011-08-08* On FreeBSD, ‘touch’ is not in the test $PATH, so don't use it.Eelco Dolstra
2011-08-06* Add the Nix corepkgs to the end of the search path. This makes itEelco Dolstra
possible for other Nix expressions to use corepkgs (mostly useful for the buildenv function).
2011-08-06* Allow redirections in search path entries. E.g. if you have aEelco Dolstra
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