guix/tests
Ludovic Courtès e4687a5e68 Use 'signature-case' in (guix nar) and 'substitute-binary'.
* guix/nar.scm (restore-file-set)[assert-valid-signature]: Rewrite in
  terms of 'signature-case'.
* guix/scripts/substitute-binary.scm (narinfo-signature->canonical-sexp):
  Call 'leave' instead of 'raise' when SIGNATURE is invalid.
  (&nar-signature-error, &nar-invalid-hash-error): Remove.
  (assert-valid-signature): Add 'narinfo' parameter; remove 'port'.
  Rewrite in terms of 'signature-case' and 'leave'.  Mention NARINFO's
  URI in error messages.  Adjust caller.
  (narinfo-sha256): New procedure.
  (assert-valid-narinfo): Use it.
  (valid-narinfo?): Rewrite using 'narinfo-sha256' and
  'signature-case'.
* tests/substitute-binary.scm (assert-valid-signature,
  test-error-condition): Remove.
  ("corrupt signature data", "unauthorized public key", "invalid
  signature"): Remove.
2014-03-31 23:47:02 +02:00
..
base32.scm
base64.scm substitute-binary: Support the Signature field of a narinfo file. 2014-03-30 12:02:10 +02:00
build-utils.scm
builders.scm derivations: 'derivation' and related procedures return a single value. 2013-09-18 18:49:53 +02:00
derivations.scm tests: Make sure substitutes are usable when we need them. 2014-03-22 22:57:10 +01:00
guix-archive.sh tests: Make sure 'guix archive --import' succeeds. 2014-03-29 22:59:46 +01:00
guix-authenticate.sh authenticate: Support reading the hash or key from stdin. 2014-03-22 22:57:10 +01:00
guix-build.sh derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
guix-daemon.sh daemon: Add tests for substitutes and --no-substitutes. 2014-03-27 23:56:47 +01:00
guix-download.sh
guix-gc.sh
guix-hash.sh guix hash: Add '--recursive'. 2014-02-21 23:49:52 +01:00
guix-package.sh tests: Adjust to recent Binutils change. 2014-01-25 17:23:23 +01:00
guix-register.sh build: Fix test failures due to the nix -> guix directory name change. 2014-03-17 23:30:42 +01:00
hash.scm hash: Add 'open-sha256-input-port', for Guile > 2.0.9. 2014-01-24 00:01:49 +01:00
monads.scm monads: Add 'text-file*'. 2014-02-03 23:20:49 +01:00
nar.scm nar: Produce archives with files sorted in C collation order. 2014-02-21 23:49:53 +01:00
packages.scm build: Skip one 'package-source-derivation' test when networking is missing. 2013-12-11 13:55:49 +01:00
pk-crypto.scm pk-crypto: Don't use Ed25519 when libgcrypt is older than 1.6.0. 2014-03-20 23:06:47 +01:00
pki.scm pki: Add 'signature-case' macro. 2014-03-31 23:34:20 +02:00
profiles.scm guix package: Allow removal of a specific package output. 2013-11-01 23:21:01 +01:00
records.scm records: define-record-type*: Field bindings are bound with 'let*'. 2013-10-15 23:31:22 +02: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
store.scm tests: Make sure the daemon reports substitute hash mismatches. 2014-03-30 22:32:16 +02:00
substitute-binary.scm Use 'signature-case' in (guix nar) and 'substitute-binary'. 2014-03-31 23:47:02 +02:00
test.drv
ui.scm ui: Factorize package specification parsing. 2013-11-01 23:21:00 +01:00
union.scm derivations: Use more keyword parameters for 'build-expression->derivation'. 2013-12-04 16:07:53 +01:00
utils.scm utils: Add 'call-with-decompressed-port' and 'call-with-compressed-output-port'. 2014-03-24 22:15:29 +01:00