aboutsummaryrefslogtreecommitdiff
path: root/tests/lang.sh
AgeCommit message (Collapse)Author
2020-08-24Add DummyStore (dummy://)Eelco Dolstra
DummyStore does not allow building or adding paths. This is useful for evaluation tests when you don't want to initialize a "proper" store.
2014-08-21Fix testsEelco Dolstra
So all these years I was totally deluded about the meaning of "set -e". You might think that it causes statements like "false && true" or "! true" to fail, but it doesn't...
2014-05-26Add constant ‘nixPath’Eelco Dolstra
It contains the Nix expression search path as a list of { prefix, path } sets, e.g. [ { path = "/nix/var/nix/profiles/per-user/root/channels/nixos"; prefix = ""; } { path = "/etc/nixos/configuration.nix"; prefix = "nixos-config"; } { path = "/home/eelco/Dev/nix/inst/share/nix/corepkgs"; prefix = "nix"; } ]
2014-02-26Test trace and addErrorContextEelco Dolstra
2014-02-26Test some more primopsEelco Dolstra
2014-02-19nix-instantiate: Rename --eval-only to --eval, --parse-only to --parseEelco Dolstra
2013-07-31Test the delayed with a bit moreEelco Dolstra
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-10-10* Refactoring: remove unnecessary variables from the tests.Eelco Dolstra
2011-08-06* Add a Nix expression search path feature. Paths between angleEelco Dolstra
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.
2010-05-07* Sync with the trunk.Eelco Dolstra
2010-04-21* Update the expected test output (no longer an ATerm).Eelco Dolstra
2010-04-21* Because --parse-only no longer produces an ATerm, don't check theEelco Dolstra
output. Whether it parses at all should be enough.
2010-04-19* Drop the dependency on the ATerm library.Eelco Dolstra
2010-03-31Make source location info in the XML output optional.Ludovic Courtès
* src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location' parameter. Provide location XML attributes when it's true. Update callers. (nix::printTermAsXML): Likewise. * src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype; have `location' default to `false'. * src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add `location' parameter; update callers. (run): Add support for `--no-location'. * src/nix-instantiate/help.txt: Update accordingly. * tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the XML tests. * tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New files.
2007-01-14* Option --argstr for passing string arguments easily. (NIX-75)Eelco Dolstra
2006-10-17* Fix the tests wrt the AST changes, i.e., Str(s) -> Str(s, []), andEelco Dolstra
the semantic changes.
2006-09-24* Builtin function `getEnv' for getting environment variables.Eelco Dolstra
2006-09-22* Builtin function `add' to add integers.Eelco Dolstra
* Put common test functions in tests/lang/lib.nix.
2006-08-22* Urgh (see NIX-56).Eelco Dolstra
2006-08-17* Test for `nix-instantiate --eval-only --xml'.Eelco Dolstra
2006-03-01* Simplification.Eelco Dolstra
2006-03-01* Make it easy to run individual tests from the command line.Eelco Dolstra
2004-10-27* Use `atdiff' instead of `cmp' for checking test output.Eelco Dolstra
* Don't use local file names in tests since they will produce different parse trees depending on the current directory.
2004-10-27* Remove ancient Fix tests.Eelco Dolstra
* Add automated Nix expression language tests.