tests: Update expected values for package->code.

Reported by janneke on IRC.

* tests/print.scm: Update expected package definitions produced by package->code.
This commit is contained in:
Ricardo Wurmus 2020-04-20 10:56:23 +02:00
parent a8f01c45c6
commit 10af34cd7f
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017, 2020 Ricardo Wurmus <rekado@elephly.net>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -21,7 +21,7 @@ (define-module (test-print)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix licenses) #:use-module ((guix licenses) #:prefix license:)
#:use-module (srfi srfi-64)) #:use-module (srfi srfi-64))
(define-syntax-rule (define-with-source object source expr) (define-syntax-rule (define-with-source object source expr)
@ -42,11 +42,11 @@ (define-with-source pkg pkg-source
(sha256 (sha256
(base32 (base32
"070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah")))) "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
(build-system gnu-build-system) (build-system (@ (guix build-system gnu) gnu-build-system))
(home-page "http://gnu.org") (home-page "http://gnu.org")
(synopsis "Dummy") (synopsis "Dummy")
(description "This is a dummy package.") (description "This is a dummy package.")
(license gpl3+))) (license license:gpl3+)))
(define-with-source pkg-with-inputs pkg-with-inputs-source (define-with-source pkg-with-inputs pkg-with-inputs-source
(package (package
@ -59,20 +59,20 @@ (define-with-source pkg-with-inputs pkg-with-inputs-source
(sha256 (sha256
(base32 (base32
"070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah")))) "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
(build-system gnu-build-system) (build-system (@ (guix build-system gnu) gnu-build-system))
(inputs `(("coreutils" ,(@ (gnu packages base) coreutils)) (inputs `(("coreutils" ,(@ (gnu packages base) coreutils))
("glibc" ,(@ (gnu packages base) glibc) "debug"))) ("glibc" ,(@ (gnu packages base) glibc) "debug")))
(home-page "http://gnu.org") (home-page "http://gnu.org")
(synopsis "Dummy") (synopsis "Dummy")
(description "This is a dummy package.") (description "This is a dummy package.")
(license gpl3+))) (license license:gpl3+)))
(test-equal "simple package" (test-equal "simple package"
pkg-source `(define-public test ,pkg-source)
(package->code pkg)) (package->code pkg))
(test-equal "package with inputs" (test-equal "package with inputs"
pkg-with-inputs-source `(define-public test ,pkg-with-inputs-source)
(package->code pkg-with-inputs)) (package->code pkg-with-inputs))
(test-end "print") (test-end "print")