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>
parent
560cb51e7b
commit
f8dd637756
|
@ -1277,8 +1277,9 @@
|
||||||
;; #:guile guile))))
|
;; #:guile guile))))
|
||||||
|
|
||||||
(test-equal "package->bag"
|
(test-equal "package->bag"
|
||||||
`("foo86-hurd" #f (,(package-source gnu-make))
|
(parameterize ((%current-system "foo86-hurd"))
|
||||||
(,(canonical-package glibc)) (,(canonical-package coreutils)))
|
`("foo86-hurd" #f (,(package-source gnu-make))
|
||||||
|
(,(canonical-package glibc)) (,(canonical-package coreutils))))
|
||||||
(let ((bag (package->bag gnu-make "foo86-hurd")))
|
(let ((bag (package->bag gnu-make "foo86-hurd")))
|
||||||
(list (bag-system bag) (bag-target bag)
|
(list (bag-system bag) (bag-target bag)
|
||||||
(assoc-ref (bag-build-inputs bag) "source")
|
(assoc-ref (bag-build-inputs bag) "source")
|
||||||
|
|
Reference in New Issue