guix-devel/guix
Ludovic Courtès 4d8e95097e
challenge: Return comparison reports instead of just discrepancies.
This makes it easier to distinguish between matches, mismatches, and the
various cases of inconclusive reports.

* guix/scripts/challenge.scm (<discrepancy>): Rename to...
(<comparison-report>): ... this.  Add 'result' field.
(comparison-report): New macro.
(comparison-report-predicate, comparison-report-mismatch?)
(comparison-report-match?)
(comparison-report-inconclusive?): New procedures.
(discrepancies): Rename to...
(compare-contents): ... this.  Change to return a list of
<comparison-report>.  Remove calls to 'warning'.
(summarize-discrepancy): Rename to...
(summarize-report): ... this.  Adjust to <comparison-report>.
(guix-challenge): Likewise.
* tests/challenge.scm ("no discrepancies")
("one discrepancy"): Adjust to new API.
("inconclusive: no substitutes")
("inconclusive: no local build"): New tests.
2017-01-14 00:57:51 +01:00
..
build gnu: Add ocaml-build-system. 2017-01-04 16:03:39 +01:00
build-system gnu: Add ocaml-build-system. 2017-01-04 16:03:39 +01:00
import http-client: Provide 'User-Agent' header by default. 2017-01-13 18:24:19 +01:00
scripts challenge: Return comparison reports instead of just discrepancies. 2017-01-14 00:57:51 +01:00
tests tests: Move HTTP server to (guix tests http). 2016-11-16 18:00:41 +01:00
base32.scm
base64.scm
build-system.scm
combinators.scm
config.scm.in
cpio.scm
cve.scm
cvs-download.scm
derivations.scm derivations: Make <derivation> record datatype immutable. 2017-01-11 18:55:31 +01:00
docker.scm guix: Add Docker image export. 2017-01-06 16:44:00 +01:00
download.scm derivations: Add 'raw-derivation'. 2016-11-19 18:44:53 +01:00
elf.scm
ftp-client.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
gcrypt.scm
gexp.scm gexp: Support 'ungexp' forms in improper lists. 2017-01-01 23:30:30 +01:00
git-download.scm git download: Remove redundant argument in 'gexp->derivation' call. 2017-01-11 18:55:26 +01:00
gnu-maintenance.scm gnu-maintenance: Update ViewVC URLs. 2017-01-01 23:30:30 +01:00
gnupg.scm
grafts.scm grafts: Move caching to a new 'with-cache' macro. 2017-01-04 16:18:52 +01:00
graph.scm graph: Add d3js backend. 2016-12-14 21:58:32 +01:00
hash.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
hg-download.scm
http-client.scm http-client: Provide 'User-Agent' header by default. 2017-01-13 18:24:19 +01:00
licenses.scm licenses: Add wtfpl2. 2017-01-13 14:13:01 -05:00
modules.scm
monad-repl.scm
monads.scm
nar.scm
packages.scm Merge branch 'master' into core-updates 2016-10-17 16:47:12 -04:00
pk-crypto.scm
pki.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
profiles.scm profiles: Remove dependency on 'glibc-utf8-locales' for tests. 2016-12-17 14:46:42 +01:00
records.scm
scripts.scm
search-paths.scm
serialization.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
sets.scm
ssh.scm ssh: 'retrieve-files' detects remote export failures. 2016-12-31 18:35:29 +01:00
store.scm store: 'open-connection' no longer raises '&nar-error' for protocol errors. 2016-12-08 23:12:11 +01:00
svn-download.scm
tests.scm Use (ice-9 binary-ports) instead of (rnrs io ports). 2016-10-19 15:54:10 +02:00
ui.scm ui: Wrap 'canonicalize-path' for better error reporting. 2017-01-13 18:24:19 +01:00
upstream.scm upstream: Determine archive type correctly. 2016-12-15 05:57:03 +01:00
utils.scm guix package: Fix version and output for 'guix package -i /gnu/store/…'. 2017-01-11 11:58:21 +01:00
zlib.scm