diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-07-18 12:19:34 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2024-07-18 17:31:18 +0200 |
| commit | 0553c4447115f7be208fe3e7e29e365ecb74a564 (patch) | |
| tree | 17b0baa38c54f16750f098a330c8a20b1719d5f6 /tests/guix-build.sh | |
| parent | c2ba8b9e66bab3f9196b9811a432da6a90018718 (diff) | |
guix build: Take ‘--system’ into account together with ‘-S’.
* guix/scripts/build.scm (options->derivations)[compute-derivation]:
Pass ‘system’ to ‘package-source-derivation’.
* tests/guix-build.sh: Test ‘-S’ together with ‘-s’.
Change-Id: If35f116285dd9caaf939221163ad0ba831eea993
Diffstat (limited to 'tests/guix-build.sh')
| -rw-r--r-- | tests/guix-build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh index 4eab0e38b60..36eac2b7e0d 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2012-2014, 2016-2023 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2012-2014, 2016-2024 Ludovic Courtès <ludo@gnu.org> |
| 3 | # Copyright © 2020 Marius Bakke <mbakke@fastmail.com> | 3 | # Copyright © 2020 Marius Bakke <mbakke@fastmail.com> |
| 4 | # Copyright © 2021 Chris Marusich <cmmarusich@gmail.com> | 4 | # Copyright © 2021 Chris Marusich <cmmarusich@gmail.com> |
| 5 | # | 5 | # |
| @@ -161,6 +161,10 @@ export GUIX_PACKAGE_PATH | |||
| 161 | guix build -d -S foo | 161 | guix build -d -S foo |
| 162 | guix build -d -S foo | grep -e 'foo\.tar\.gz' | 162 | guix build -d -S foo | grep -e 'foo\.tar\.gz' |
| 163 | 163 | ||
| 164 | # Make sure '-s' has an effect together with '-S'. | ||
| 165 | test "$(guix build -Sd coreutils -s x86_64-linux)" \ | ||
| 166 | != "$(guix build -Sd coreutils -s aarch64-linux)" | ||
| 167 | |||
| 164 | # 'baz' has a replacement so we should be getting the replacement's source. | 168 | # 'baz' has a replacement so we should be getting the replacement's source. |
| 165 | (unset GUIX_BUILD_OPTIONS; | 169 | (unset GUIX_BUILD_OPTIONS; |
| 166 | test "`guix build -d -S baz`" = "`guix build -d -S foo`") | 170 | test "`guix build -d -S baz`" = "`guix build -d -S foo`") |
