diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2022-02-17 16:06:39 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2022-02-18 14:14:38 +0100 |
| commit | 5a57313918a5c1bd5cf8238c2dcae64a03523952 (patch) | |
| tree | 3b3aaf86f1ec2bc06cc39548ee1d152e5fa27ebd /tests/guix-pack.sh | |
| parent | 0572737a6218d7390bac352011da47621e18d35b (diff) | |
profiles: 'profile-derivation' rejects unsupported packages.
Previously user-facing commands would happily start building packages
even if they do not support that system. With this change, all the
user-facing commands reject unsupported packages without going further.
* guix/profiles.scm (profile-derivation): Add #:allow-unsupported-packages?.
Define 'check-supported-packages' and honor #:allow-unsupported-packages?.
* tests/guix-pack.sh, tests/guix-package.sh, tests/guix-shell.sh: Ensure
that unsupported packages are rejected.
* tests/guix-system.sh: Pass "--system=armhf-linux" when attempting to
build gnu/system/examples/asus-c201.tmpl.
Diffstat (limited to 'tests/guix-pack.sh')
| -rw-r--r-- | tests/guix-pack.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/guix-pack.sh b/tests/guix-pack.sh index 0339221ac25..1356a740837 100644 --- a/tests/guix-pack.sh +++ b/tests/guix-pack.sh | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> | 2 | # Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> |
| 3 | # Copyright © 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> | 3 | # Copyright © 2018, 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org> |
| 4 | # | 4 | # |
| 5 | # This file is part of GNU Guix. | 5 | # This file is part of GNU Guix. |
| 6 | # | 6 | # |
| @@ -36,6 +36,9 @@ export GUIX_BUILD_OPTIONS | |||
| 36 | test_directory="`mktemp -d`" | 36 | test_directory="`mktemp -d`" |
| 37 | trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT | 37 | trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT |
| 38 | 38 | ||
| 39 | # Reject unsuppoted packages. | ||
| 40 | ! guix pack intelmetool -s armhf-linux -n | ||
| 41 | |||
| 39 | # Compute the derivation of a pack. | 42 | # Compute the derivation of a pack. |
| 40 | drv="`guix pack coreutils -d --no-grafts`" | 43 | drv="`guix pack coreutils -d --no-grafts`" |
| 41 | guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`" | 44 | guix gc -R "$drv" | grep "`guix build coreutils -d --no-grafts`" |
