guix/tests
Ludovic Courtès f304c9c237 derivations: Raise an error for references to non-existent outputs.
Fixes <http://bugs.gnu.org/19630>.
Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>.

* guix/derivations.scm (&derivation-error,
  &derivation-missing-output-error): New error conditions.
  (derivation->output-path): Raise a '&derivation-missing-output-error'
  if OUTPUT is not an output of DRV.
* guix/ui.scm (call-with-error-handling): Add case for
  'derivation-missing-output-error?'.
  (show-what-to-build): Check whether (derivation-outputs drv) is
  empty.
* tests/packages.scm ("reference to non-existent output"): Add test.
2015-01-24 22:57:49 +01:00
..
base32.scm Move `sha256' to (guix hash). 2013-07-01 23:28:21 +02:00
base64.scm substitute-binary: Support the Signature field of a narinfo file. 2014-03-30 12:02:10 +02:00
build-utils.scm utils: Allow wrap-program to be called multiple times. 2014-09-13 21:53:21 -05:00
builders.scm packages: Convert source derivations to monadic style. 2015-01-14 14:42:10 +01:00
cpan.scm import: Add CPAN importer. 2015-01-09 10:38:26 -06:00
derivations.scm derivations: Add 'substitution-oracle' and use it. 2015-01-10 00:39:59 +01:00
gexp.scm monads: Rewrite 'text-file*' using gexps. 2015-01-12 23:33:08 +01:00
guix-archive.sh tests: Make sure 'guix archive --import' succeeds. 2014-03-29 22:59:46 +01:00
guix-authenticate.sh authenticate: Allow signatures with binary data to be written to stdout. 2014-04-22 11:30:58 +02:00
guix-build.sh guix: scripts: Add GUIX_BUILD_OPTIONS environment handling. 2014-11-30 18:54:07 +01:00
guix-daemon.sh daemon: Add tests for substitutes and --no-substitutes. 2014-03-27 23:56:47 +01:00
guix-download.sh Replace individual scripts with master 'guix' script. 2013-02-16 22:17:37 -05:00
guix-gc.sh guix gc: Add --references' and --referrers'. 2013-02-27 23:16:00 +01:00
guix-hash.sh guix hash: Add '--recursive'. 2014-02-21 23:49:52 +01:00
guix-lint.sh tests: Avoid Bash extension in 'tests/guix-lint.sh'. 2014-11-06 18:00:51 +01:00
guix-package.sh gnu: Search for patches under $GUIX_PACKAGE_PATH. 2015-01-03 23:49:42 +01:00
guix-register.sh guix-register: By default, attempt to deduplicate registered items. 2014-08-25 00:16:49 +02:00
guix-system.sh guix {system,offload}: Improve reporting of syntax errors. 2014-06-27 00:12:40 +02:00
hash.scm hash: Add 'open-sha256-input-port', for Guile > 2.0.9. 2014-01-24 00:01:49 +01:00
lint.scm tests: Properly synchronize threads in the 'home-page' lint tests. 2015-01-13 11:09:05 +01:00
monads.scm monads: Add the state monad. 2015-01-17 23:45:48 +01:00
nar.scm tests: When a store item is to be deleted, make it statistically unique. 2014-11-04 21:13:28 +01:00
packages.scm derivations: Raise an error for references to non-existent outputs. 2015-01-24 22:57:49 +01:00
pk-crypto.scm authenticate: Allow signatures with binary data to be written to stdout. 2014-04-22 11:30:58 +02:00
pki.scm pki: Add 'signature-case' macro. 2014-03-31 23:34:20 +02:00
profiles.scm tests: Use 'test-assertm' for profiles. 2014-12-15 23:01:56 +01:00
pypi.scm tests: import: Factorize utility function. 2015-01-09 10:38:25 -06:00
records.scm records: Add support for delayed fields. 2015-01-19 23:30:42 +01:00
sets.scm Add (guix sets). 2015-01-11 23:50:01 +01:00
signing-key.pub daemon: Implement signed archive import/export. 2013-12-20 17:17:42 +01:00
signing-key.sec daemon: Implement signed archive import/export. 2013-12-20 17:17:42 +01:00
snix.scm import: Add PyPI importer. 2014-09-29 19:30:28 -04:00
store.scm store: Add #:recursive? parameter to 'export-paths'. 2015-01-17 15:59:00 +01:00
substitute-binary.scm Break module cycle involving (guix store) and (guix ui). 2014-10-09 23:51:19 +02:00
syscalls.scm tests: Adjust syscall tests for 2.6ish Linux. 2015-01-19 15:44:12 +01:00
test.drv Add unit test for derivation parsing and output. 2012-04-19 23:09:55 +02:00
ui.scm ui: Move 'show-manifest-transaction' from (guix profiles). 2014-10-10 00:06:35 +02:00
union.scm Factorize test suite support in (guix tests). 2014-08-23 22:33:04 +02:00
utils.scm utils: Add 'strip-keyword-arguments'. 2014-10-05 21:57:19 +02:00