mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
guix package: Add 'transaction-upgrade-entry' test.
* tests/packages.scm ("transaction-upgrade-entry, zero upgrades, equivalent package"): New test.
This commit is contained in:
parent
1a9a373eb4
commit
b9c79cae53
1 changed files with 13 additions and 0 deletions
|
@ -109,6 +109,19 @@ (define %store
|
|||
(manifest-transaction)))))
|
||||
(manifest-transaction-null? tx)))
|
||||
|
||||
(test-assert "transaction-upgrade-entry, zero upgrades, equivalent package"
|
||||
(let* ((old (dummy-package "foo" (version "1")))
|
||||
(drv (package-derivation %store old))
|
||||
(tx (mock ((gnu packages) find-best-packages-by-name
|
||||
(const (list old)))
|
||||
(transaction-upgrade-entry
|
||||
%store
|
||||
(manifest-entry
|
||||
(inherit (package->manifest-entry old))
|
||||
(item (derivation->output-path drv)))
|
||||
(manifest-transaction)))))
|
||||
(manifest-transaction-null? tx)))
|
||||
|
||||
(test-assert "transaction-upgrade-entry, one upgrade"
|
||||
(let* ((old (dummy-package "foo" (version "1")))
|
||||
(new (dummy-package "foo" (version "2")))
|
||||
|
|
Loading…
Reference in a new issue