mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
tests: Factorize the 'dummy-package' macro.
* guix/tests.scm (dummy-package): New macro. * tests/lint.scm (dummy-package): Remove. * tests/packages.scm (dummy-package): Remove.
This commit is contained in:
parent
907c98acbb
commit
8b385969cf
3 changed files with 12 additions and 14 deletions
|
@ -27,7 +27,8 @@
|
|||
#:export (open-connection-for-tests
|
||||
random-text
|
||||
random-bytevector
|
||||
with-derivation-narinfo))
|
||||
with-derivation-narinfo
|
||||
dummy-package))
|
||||
|
||||
;;; Commentary:
|
||||
;;;
|
||||
|
@ -120,6 +121,15 @@ substituter's viewpoint."
|
|||
(lambda ()
|
||||
body ...)))
|
||||
|
||||
(define-syntax-rule (dummy-package name* extra-fields ...)
|
||||
"Return a \"dummy\" package called NAME*, with all its compulsory fields
|
||||
initialized with default values, and with EXTRA-FIELDS set as specified."
|
||||
(package extra-fields ...
|
||||
(name name*) (version "0") (source #f)
|
||||
(build-system gnu-build-system)
|
||||
(synopsis #f) (description #f)
|
||||
(home-page #f) (license #f)))
|
||||
|
||||
;; Local Variables:
|
||||
;; eval: (put 'call-with-derivation-narinfo 'scheme-indent-function 1)
|
||||
;; End:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue