guix/tests
Ludovic Courtès e85d4cecbe
gnu: commencement: Memoize packages as a function of the system.
Previous, things like 'ld-wrapper-boot0' would be memoized with
(mlambda () …).  However, the definition of 'ld-wrapper-boot0' depends
on the result of (%boot0-inputs), which is itself a function
of (%current-system).  Thus, if one first calls:

  (parameterize ((%current-system "x86_64-linux"))
    (ld-wrapper-boot0))

then, in all subsequent calls to 'ld-wrapper-boot0', the value
of (%current-system) would be ignored because the result is already
memoized.  Concretely, 'ld-wrapper-boot0' would always have the
dependencies it has on x86_64-linux, even though they are different than
those on armhf-linux, say ("bash-mesboot" vs. "bootstrap-binaries").

Fixes <https://bugs.gnu.org/40482>.
Reported by Marius Bakke <mbakke@fastmail.com>.

* gnu/packages/commencement.scm (define/system-dependent): New macro.
(linux-libre-headers-boot0, hurd-core-headers-boot0, ld-wrapper-boot0)
(gcc-boot0-intermediate-wrapped, gcc-boot0-wrapped, ld-wrapper-boot3):
Define using 'define/system-dependent' instead of 'define' + 'mlambda'.
Adjust users so they no longer look like procedure calls.
* tests/guix-build.sh: Add test.
2020-04-11 00:32:41 +02:00
..
services gnu: Add earlyoom-service-type. 2020-01-31 23:37:13 -05:00
accounts.scm accounts: Delete duplicate entries. 2019-08-28 00:27:14 +02:00
base16.scm
base32.scm
base64.scm
bournish.scm
build-utils.scm tests: Avoid unnecessary use of 'mock'. 2019-11-26 00:16:35 +01:00
builders.scm
cache.scm Remove workaround for 'time-monotonic' in Guile 2.2.2. 2020-03-22 16:49:47 +01:00
challenge.scm challenge: Support "--diff=diffoscope". 2019-12-12 17:56:58 +01:00
channels.scm channels: Allow news entries to refer to a tag. 2019-09-23 10:38:44 +02:00
combinators.scm
containers.scm tests: Skip container test when lacking kernel support. 2019-10-15 10:21:41 +02:00
cpan.scm import: cpan: Rewrite tests to use an HTTP server instead of mocking. 2020-01-15 18:40:43 +01:00
cpio.scm
cran.scm import: cran: Avoid uses of '@@' in the tests. 2020-01-16 23:14:05 +01:00
crate.scm import: crate: Export 'string->license'. 2020-01-16 23:14:05 +01:00
cve-sample.json cve: Rewrite to read the JSON feed instead of the XML feed. 2019-10-23 16:40:17 +02:00
cve.scm cve: Rewrite to read the JSON feed instead of the XML feed. 2019-10-23 16:40:17 +02:00
debug-link.scm
derivations.scm derivations: Add 'derivation-input-fold'. 2019-12-07 00:29:41 +01:00
discovery.scm
elpa.scm import: elpa: Rewrite test to use an HTTP server instead of mocking. 2020-01-16 23:14:05 +01:00
file-systems.scm
gem.scm import: gem: Deal with unavailable licensing info. 2020-02-05 16:18:58 +01:00
gexp.scm gexp: Add 'with-parameters'. 2020-03-12 18:32:15 +01:00
git.scm git: 'commit-difference' takes a list of excluded commits. 2019-12-27 13:52:49 +01:00
glob.scm
gnu-maintenance.scm
grafts.scm
graph.scm tests: Adjust reverse-bag graph test to recent OCaml changes. 2020-02-05 16:18:58 +01:00
gremlin.scm
guix-archive.sh guix archive: Add '--list'. 2019-12-12 17:56:58 +01:00
guix-authenticate.sh
guix-build-branch.sh tests: Adjust '--with-commit' test for tags. 2020-04-04 18:52:36 +02:00
guix-build.sh gnu: commencement: Memoize packages as a function of the system. 2020-04-11 00:32:41 +02:00
guix-daemon.sh daemon: Make 'profiles/per-user' non-world-writable. 2019-10-16 22:53:40 +02:00
guix-describe.sh
guix-download.sh
guix-environment-container.sh environment: '--container' honors '--preserve'. 2019-10-03 23:48:59 +02:00
guix-environment.sh environment: Document that '--manifest' can be repeated. 2019-11-22 15:07:58 +01:00
guix-gc.sh
guix-graph.sh graph: Add '--load-path' option. 2020-01-16 15:27:20 +01:00
guix-hash.sh
guix-lint.sh lint: Add '--load-path' option. 2019-12-08 23:14:03 +01:00
guix-pack-localstatedir.sh
guix-pack-relocatable.sh pack: '-R' honors the requested output. 2019-08-23 18:41:49 +02:00
guix-pack.sh pack: Adjust test to '--dry-run' changes. 2020-03-31 00:06:36 +02:00
guix-package-aliases.sh guix package: '--show' ignores deprecated packages. 2019-09-21 16:48:36 +02:00
guix-package-net.sh
guix-package.sh tests: Adjust to 'show-manifest-transaction' changes. 2020-03-25 16:02:53 +01:00
guix-system.sh guix system: Add workaround in test for Guile 3.0.0. 2020-01-17 17:12:44 +01:00
hackage.scm
import-utils.scm import: utils: 'recursive-import' returns a list rather than a stream. 2019-12-11 12:13:03 +01:00
inferior.scm Merge branch 'master' into core-updates 2020-03-21 22:16:02 +01:00
lint.scm lint: vulnerabilities: Avoid 'mock' in test. 2020-01-17 14:22:07 +01:00
lzlib.scm lzlib: Define 'dictionary-size+match-length-limit'. 2020-01-16 23:14:05 +01:00
modules.scm
monads.scm
nar.scm serialization: Add 'fold-archive'. 2019-12-12 17:56:57 +01:00
networking.scm services: ntp: Ensure no double quotes are output to config file. 2019-10-30 18:15:54 -04:00
opam.scm import: opam: Avoid uses of '@@' in tests. 2020-01-17 14:22:07 +01:00
pack.scm gnu: Remove squashfs-tools-next. 2019-12-26 12:29:44 +01:00
packages.scm guix package: Do not misdiagnose upgrades when there are propagated inputs. 2020-03-31 00:06:36 +02:00
pki.scm
print.scm
processes.scm tests: processes: Skip tests if running with binfmt. 2019-12-10 10:49:42 +01:00
profiles.scm profiles: Add 'concatenate-manifests'. 2019-11-22 15:07:58 +01:00
publish.scm publish: Export 'signed-string'. 2020-01-16 18:30:57 +01:00
pypi.scm import: pypi: Rewrite to use 'define-json-mapping'. 2020-03-12 11:52:37 +01:00
records.scm records: Improve reporting of "invalid field specifier" errors. 2020-01-16 18:30:57 +01:00
scripts-build.scm
scripts.scm
search-paths.scm
services.scm
sets.scm
signing-key.pub
signing-key.sec
size.scm
snix.scm
status.scm
store-database.scm
store-deduplication.scm
store-roots.scm
store.scm store: 'with-store' doesn't close the store upon abort. 2020-04-04 18:52:35 +02:00
substitute.scm substitute: Make '%allow-unauthenticated-substitutes?' public. 2019-11-27 00:03:03 +01:00
swh.scm swh: Adjust 'origin' test. 2020-02-27 23:29:30 +01:00
syscalls.scm syscalls: Re-enable 'pivot-root' test. 2020-02-11 12:33:35 +01:00
system.scm
test.drv
texlive.scm import: texlive: Avoid uses of '@@' in tests. 2020-01-17 14:22:08 +01:00
ui.scm tests: Adjust to 'show-manifest-transaction' changes. 2020-03-25 16:02:53 +01:00
union.scm
upstream.scm
utils.scm
uuid.scm
workers.scm
zlib.scm