diff options
Diffstat (limited to 'tests/transformations.scm')
| -rw-r--r-- | tests/transformations.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/transformations.scm b/tests/transformations.scm index 8db85b4305b..dbfe5235188 100644 --- a/tests/transformations.scm +++ b/tests/transformations.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016, 2017, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016-2017, 2019-2022 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2021 Marius Bakke <marius@gnu.org> | 3 | ;;; Copyright © 2021 Marius Bakke <marius@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| @@ -451,6 +451,18 @@ | |||
| 451 | (string=? (local-file-file input) patch))) | 451 | (string=? (local-file-file input) patch))) |
| 452 | inputs)))))))) | 452 | inputs)))))))) |
| 453 | 453 | ||
| 454 | (test-equal "options->transformation, property order" | ||
| 455 | ;; See <https://issues.guix.gnu.org/54942>. | ||
| 456 | '((with-debug-info . "does-not-exist") | ||
| 457 | (with-commit . "does-not-exist=aaaaaaa") | ||
| 458 | (without-tests . "does-not-exist")) | ||
| 459 | (let* ((t (options->transformation | ||
| 460 | '((with-debug-info . "does-not-exist") | ||
| 461 | (with-commit . "does-not-exist=aaaaaaa") | ||
| 462 | (without-tests . "does-not-exist"))))) | ||
| 463 | (let ((new (t coreutils))) | ||
| 464 | (assq-ref (package-properties new) 'transformations)))) | ||
| 465 | |||
| 454 | (test-equal "options->transformation, with-latest" | 466 | (test-equal "options->transformation, with-latest" |
| 455 | "42.0" | 467 | "42.0" |
| 456 | (mock ((guix upstream) %updaters | 468 | (mock ((guix upstream) %updaters |
