mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
graph: Adjust test for glibc:static among the implicit inputs.
Fixes <https://bugs.gnu.org/29612>.
Reported by Chris Marusich <cmmarusich@gmail.com>.
This is a followup to 6dff905e51
.
* tests/graph.scm ("bag-emerged DAG"): Adjust for glibc:static among
IMPLICIT.
This commit is contained in:
parent
6ac46bfa41
commit
cafc97e2f3
1 changed files with 7 additions and 3 deletions
|
@ -110,19 +110,23 @@ (define (edge->tuple source target)
|
|||
(text-file "foo" "bar")))))
|
||||
(p (dummy-package "p" (source o)))
|
||||
(implicit (map (match-lambda
|
||||
((label package) package))
|
||||
((label package) package)
|
||||
((label package output) package))
|
||||
(standard-packages))))
|
||||
(run-with-store %store
|
||||
(export-graph (list p) 'port
|
||||
#:node-type %bag-emerged-node-type
|
||||
#:backend backend))
|
||||
;; We should see exactly P and IMPLICIT, with one edge from P to each
|
||||
;; element of IMPLICIT. O must not appear among NODES.
|
||||
;; element of IMPLICIT. O must not appear among NODES. Note: IMPLICIT
|
||||
;; contains "glibc" twice, once for "out" and a second time for
|
||||
;; "static", hence the 'delete-duplicates' call below.
|
||||
(let-values (((nodes edges) (nodes+edges)))
|
||||
(and (equal? (match nodes
|
||||
(((labels names) ...)
|
||||
names))
|
||||
(map package-full-name (cons p implicit)))
|
||||
(map package-full-name
|
||||
(cons p (delete-duplicates implicit))))
|
||||
(equal? (match edges
|
||||
(((sources destinations) ...)
|
||||
(zip (map store-path-package-name sources)
|
||||
|
|
Loading…
Reference in a new issue