diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-06-23 11:46:17 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-27 11:14:41 +0200 |
| commit | c89985d91d2b44704fbcaebd7a097dee0c0e3e4a (patch) | |
| tree | e4526f0321de2b397eaad258ce8a7be5e28c6362 /tests | |
| parent | 4311cf965c978c7865c03349c82110b241f8ff23 (diff) | |
derivations: Add 'derivation-input'.
* guix/derivations.scm (derivation-input): New procedure.
* tests/grafts.scm (make-derivation-input): Remove.
("graft-derivation, unused outputs not depended on"): Use
'derivation-input'.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/grafts.scm | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/grafts.scm b/tests/grafts.scm index f85f3c6913c..6fd3d5e1718 100644 --- a/tests/grafts.scm +++ b/tests/grafts.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 5 | ;;; |
| @@ -45,9 +45,6 @@ | |||
| 45 | (define %mkdir | 45 | (define %mkdir |
| 46 | (bootstrap-binary "mkdir")) | 46 | (bootstrap-binary "mkdir")) |
| 47 | 47 | ||
| 48 | (define make-derivation-input | ||
| 49 | (@@ (guix derivations) make-derivation-input)) | ||
| 50 | |||
| 51 | 48 | ||
| 52 | (test-begin "grafts") | 49 | (test-begin "grafts") |
| 53 | 50 | ||
| @@ -356,16 +353,11 @@ | |||
| 356 | (p1r-inputs (filter (match-input p1r) inputs)) | 353 | (p1r-inputs (filter (match-input p1r) inputs)) |
| 357 | (p2-inputs (filter (match-input p2) inputs))) | 354 | (p2-inputs (filter (match-input p2) inputs))) |
| 358 | (and (equal? p1-inputs | 355 | (and (equal? p1-inputs |
| 359 | (list (make-derivation-input (derivation-file-name p1) | 356 | (list (derivation-input p1 '("one")))) |
| 360 | '("one")))) | ||
| 361 | (equal? p1r-inputs | 357 | (equal? p1r-inputs |
| 362 | (list | 358 | (list (derivation-input p1r '("ONE")))) |
| 363 | (make-derivation-input (derivation-file-name p1r) | ||
| 364 | '("ONE")))) | ||
| 365 | (equal? p2-inputs | 359 | (equal? p2-inputs |
| 366 | (list | 360 | (list (derivation-input p2 '("aaa")))) |
| 367 | (make-derivation-input (derivation-file-name p2) | ||
| 368 | '("aaa")))) | ||
| 369 | (derivation-output-names p2g)))))) | 361 | (derivation-output-names p2g)))))) |
| 370 | 362 | ||
| 371 | (test-assert "graft-derivation, renaming" ;<http://bugs.gnu.org/23132> | 363 | (test-assert "graft-derivation, renaming" ;<http://bugs.gnu.org/23132> |
