lix/tests/lang
Ludovic Courtès 09381cccff Make source location info in the XML output optional.
* 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.
2010-03-31 12:38:31 +00:00
..
eval-fail-abort.nix
eval-fail-assert.nix
eval-fail-blackhole.nix
eval-fail-missing-arg.nix
eval-fail-remove.nix
eval-fail-scope-5.nix
eval-fail-substring.nix
eval-fail-to-path.nix
eval-fail-undeclared-arg.nix
eval-okay-arithmetic.exp
eval-okay-arithmetic.nix
eval-okay-attrnames.exp
eval-okay-attrnames.nix
eval-okay-attrs.exp
eval-okay-attrs.nix
eval-okay-attrs2.exp
eval-okay-attrs2.nix
eval-okay-attrs3.exp * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
eval-okay-attrs3.nix * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
eval-okay-autoargs.exp
eval-okay-autoargs.flags
eval-okay-autoargs.nix
eval-okay-builtins.exp
eval-okay-builtins.nix
eval-okay-closure.exp.xml * Generalised the dependencyClosure primop to builtins.genericClosure, 2008-07-11 13:29:04 +00:00
eval-okay-closure.nix * Generalised the dependencyClosure primop to builtins.genericClosure, 2008-07-11 13:29:04 +00:00
eval-okay-concat.exp
eval-okay-concat.nix
eval-okay-context.exp * New primop `unsafeDiscardStringContext' to get rid of string 2008-01-04 14:22:49 +00:00
eval-okay-context.nix * New primop `unsafeDiscardStringContext' to get rid of string 2008-01-04 14:22:49 +00:00
eval-okay-empty-args.exp
eval-okay-empty-args.nix
eval-okay-eq.exp.disabled
eval-okay-eq.nix
eval-okay-flatten.exp
eval-okay-flatten.nix
eval-okay-functionargs.exp.xml * Two primops: builtins.intersectAttrs and builtins.functionArgs. 2009-09-15 13:01:46 +00:00
eval-okay-functionargs.nix * Two primops: builtins.intersectAttrs and builtins.functionArgs. 2009-09-15 13:01:46 +00:00
eval-okay-getenv.exp
eval-okay-getenv.nix
eval-okay-if.exp
eval-okay-if.nix
eval-okay-ind-string.exp * Doh. 2008-02-05 13:35:49 +00:00
eval-okay-ind-string.nix * Regression test. 2008-02-05 13:25:18 +00:00
eval-okay-let.exp
eval-okay-let.nix
eval-okay-list.exp
eval-okay-list.nix
eval-okay-listToAttrs.nix
eval-okay-listToAttrs.out
eval-okay-logic.exp
eval-okay-logic.nix
eval-okay-map.exp
eval-okay-map.nix
eval-okay-new-let.exp
eval-okay-new-let.nix
eval-okay-pathexists.exp
eval-okay-pathexists.nix
eval-okay-patterns.exp * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
eval-okay-patterns.nix * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
eval-okay-readfile.exp * New primop `readFile' to get the contents of a file as a string. 2007-11-21 13:49:59 +00:00
eval-okay-readfile.nix * New primop `readFile' to get the contents of a file as a string. 2007-11-21 13:49:59 +00:00
eval-okay-remove.exp
eval-okay-remove.nix
eval-okay-scope-1.exp
eval-okay-scope-1.nix
eval-okay-scope-2.exp
eval-okay-scope-2.nix
eval-okay-scope-3.exp
eval-okay-scope-3.nix
eval-okay-scope-4.exp
eval-okay-scope-4.nix
eval-okay-scope-6.exp
eval-okay-scope-6.nix
eval-okay-scope-7.exp * Change the scoping of "inherit (e) ..." in recs so that the 2009-05-15 13:46:13 +00:00
eval-okay-scope-7.nix * Change the scoping of "inherit (e) ..." in recs so that the 2009-05-15 13:46:13 +00:00
eval-okay-string.exp
eval-okay-string.nix
eval-okay-substring.exp
eval-okay-substring.nix
eval-okay-to-xml.exp
eval-okay-to-xml.nix
eval-okay-toxml.exp Make source location info in the XML output optional. 2010-03-31 12:38:31 +00:00
eval-okay-toxml.nix Make source location info in the XML output optional. 2010-03-31 12:38:31 +00:00
eval-okay-versions.exp * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
eval-okay-versions.nix * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
eval-okay-with.exp * Doh. 2010-03-23 14:51:32 +00:00
eval-okay-with.nix * Doh. 2010-03-23 14:51:32 +00:00
eval-okay-xml.exp.xml * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
eval-okay-xml.nix * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
lib.nix * Generalised the dependencyClosure primop to builtins.genericClosure, 2008-07-11 13:29:04 +00:00
parse-fail-dup-attrs-1.nix
parse-fail-dup-attrs-2.nix
parse-fail-dup-attrs-3.nix
parse-fail-dup-attrs-4.nix * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
parse-fail-dup-attrs-5.nix * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
parse-fail-dup-attrs-6.nix * Some syntactic sugar for attribute sets: allow {x.y.z = ...;} as a 2009-05-15 12:35:23 +00:00
parse-fail-dup-formals.nix
parse-fail-patterns-1.nix * @-patterns as in Haskell. For instance, in a function definition 2008-08-14 12:53:29 +00:00
parse-fail-regression-20060610.nix
parse-fail-undef-var-2.nix
parse-fail-undef-var.nix
parse-okay-1.exp * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
parse-okay-1.nix
parse-okay-crlf.exp
parse-okay-crlf.nix
parse-okay-regression-20041027.exp * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
parse-okay-regression-20041027.nix
parse-okay-subversion.exp * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
parse-okay-subversion.nix
parse-okay-url.exp
parse-okay-url.nix