mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: packages: Set system for expected result of package->bag.
* tests/packages.scm ("package->bag"): Parameterize the expected result by the system used to lower the package to a bag. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
560cb51e7b
commit
f8dd637756
1 changed files with 3 additions and 2 deletions
|
@ -1277,8 +1277,9 @@ (define right-system?
|
|||
;; #:guile guile))))
|
||||
|
||||
(test-equal "package->bag"
|
||||
(parameterize ((%current-system "foo86-hurd"))
|
||||
`("foo86-hurd" #f (,(package-source gnu-make))
|
||||
(,(canonical-package glibc)) (,(canonical-package coreutils)))
|
||||
(,(canonical-package glibc)) (,(canonical-package coreutils))))
|
||||
(let ((bag (package->bag gnu-make "foo86-hurd")))
|
||||
(list (bag-system bag) (bag-target bag)
|
||||
(assoc-ref (bag-build-inputs bag) "source")
|
||||
|
|
Loading…
Reference in a new issue