summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoritd <itd@net.in.tum.de>2022-09-23 16:11:52 +0200
committerLudovic Courtès <ludo@gnu.org>2022-09-29 22:59:48 +0200
commit8b2119a5e4793cad1df1070d488a54ceea420840 (patch)
treedc9820c2197c9967ef3ed8c4f1ed299206d682a8 /tests
parent61bd7bf4690329a10e0a1d3fd1425a73d1823576 (diff)
import: print: Quasiquote properties
* guix/import/print.scm (package->code): Quasiquote properties. * tests/print.scm (pkg-with-properties, pkg-with-properties-source): New variables. ("package with properties"): New test Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/print.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/print.scm b/tests/print.scm
index d9710d1ed3c..b4f193b9053 100644
--- a/tests/print.scm
+++ b/tests/print.scm
@@ -139,6 +139,25 @@
139 (description "This is a dummy package.") 139 (description "This is a dummy package.")
140 (license license:gpl3+))) 140 (license license:gpl3+)))
141 141
142(define-with-source pkg-with-properties pkg-with-properties-source
143 (package
144 (name "test")
145 (version "1.2.3")
146 (source (origin
147 (method url-fetch)
148 (uri (string-append "file:///tmp/test-"
149 version ".tar.gz"))
150 (sha256
151 (base32
152 "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
153 (properties
154 `((hidden? . #t) (upstream-name "test-upstream")))
155 (build-system (@ (guix build-system gnu) gnu-build-system))
156 (home-page "http://gnu.org")
157 (synopsis "Dummy")
158 (description "This is a dummy package.")
159 (license license:gpl3+)))
160
142(test-equal "simple package" 161(test-equal "simple package"
143 `(define-public test ,pkg-source) 162 `(define-public test ,pkg-source)
144 (package->code pkg)) 163 (package->code pkg))
@@ -159,4 +178,8 @@
159 `(define-public test ,pkg-with-arguments-source) 178 `(define-public test ,pkg-with-arguments-source)
160 (package->code pkg-with-arguments)) 179 (package->code pkg-with-arguments))
161 180
181(test-equal "package with properties"
182 `(define-public test ,pkg-with-properties-source)
183 (package->code pkg-with-properties))
184
162(test-end "print") 185(test-end "print")