summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/transformations.scm19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/transformations.scm b/tests/transformations.scm
index 5c136e1d48e..1fa2c0bba82 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-2022 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2016-2017, 2019-2023 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.
@@ -497,6 +497,23 @@
497 `((with-latest . "foo"))))) 497 `((with-latest . "foo")))))
498 (package-version (t p))))) 498 (package-version (t p)))))
499 499
500(test-equal "options->transformation, with-version"
501 "1.0"
502 (mock ((guix upstream) %updaters
503 (delay (list (upstream-updater
504 (name 'dummy)
505 (pred (const #t))
506 (description "")
507 (import (const (upstream-source
508 (package "foo")
509 (version "1.0")
510 (urls '("http://example.org")))))))))
511 (let* ((p0 (dummy-package "foo" (version "7.7")))
512 (p1 (dummy-package "bar" (inputs (list p0))))
513 (t (options->transformation
514 `((with-version . "foo=1.0")))))
515 (package-version (lookup-package-input (t p1) "foo")))))
516
500(test-equal "options->transformation, tune" 517(test-equal "options->transformation, tune"
501 '(cpu-tuning . "superfast") 518 '(cpu-tuning . "superfast")
502 (let* ((p0 (dummy-package "p0")) 519 (let* ((p0 (dummy-package "p0"))