aboutsummaryrefslogtreecommitdiff
path: root/tests/print.scm
blob: 3386590d3a2262aa8ad36692564687d37e4b0776 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017, 2020 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (test-print)
  #:use-module (guix import print)
  #:use-module (guix build-system gnu)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (srfi srfi-64))

(define-syntax-rule (define-with-source object source expr)
  (begin
    (define object expr)
    (define source 'expr)))

(test-begin "print")

(define-with-source pkg pkg-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(define-with-source pkg-with-inputs pkg-with-inputs-source
  (package
    (name "test")
    (version "1.2.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "file:///tmp/test-"
                                  version ".tar.gz"))
              (sha256
               (base32
                "070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
    (build-system (@ (guix build-system gnu) gnu-build-system))
    (inputs `(("coreutils" ,(@ (gnu packages base) coreutils))
              ("glibc" ,(@ (gnu packages base) glibc) "debug")))
    (home-page "http://gnu.org")
    (synopsis "Dummy")
    (description "This is a dummy package.")
    (license license:gpl3+)))

(test-equal "simple package"
  `(define-public test ,pkg-source)
  (package->code pkg))

(test-equal "package with inputs"
  `(define-public test ,pkg-with-inputs-source)
  (package->code pkg-with-inputs))

(test-end "print")
a class='button' href='/guix/log/gnu/packages/algebra.scm?id=97ef6df5ecec825712c1253551d5be1ab7d89b06'>logplainabout -rw-r--r--android.scm36747logplainabout -rw-r--r--animation.scm10937logplainabout -rw-r--r--anthy.scm2821logplainabout -rw-r--r--antivirus.scm7177logplainabout -rw-r--r--apl.scm2132logplainabout -rw-r--r--apr.scm4303logplainabout -rw-r--r--aspell.scm13445logplainabout -rw-r--r--assembly.scm5073logplainabout -rw-r--r--astronomy.scm6682logplainabout -rw-r--r--attr.scm3169logplainabout -rw-r--r--audio.scm139627logplainabout -rw-r--r--augeas.scm2588logplainabout -rw-r--r--authentication.scm3368logplainabout -rw-r--r--autogen.scm2762logplainabout -rw-r--r--autotools.scm18617logplainabout d---------aux-files116logplain -rw-r--r--avahi.scm4243logplainabout -rw-r--r--avr.scm7071logplainabout -rw-r--r--axoloti.scm16276logplainabout -rw-r--r--backup.scm41906logplainabout -rw-r--r--base.scm57976logplainabout -rw-r--r--bash.scm15667logplainabout -rw-r--r--batik.scm8837logplainabout -rw-r--r--bdw-gc.scm4712logplainabout -rw-r--r--benchmark.scm7380logplainabout -rw-r--r--bioconductor.scm40984logplainabout -rw-r--r--bioinformatics.scm582268logplainabout -rw-r--r--bison.scm2398logplainabout -rw-r--r--bittorrent.scm20267logplainabout -rw-r--r--boost.scm7527logplainabout -rw-r--r--bootloaders.scm34860logplainabout -rw-r--r--bootstrap.scm25179logplainabout d---------bootstrap195logplain -rw-r--r--build-tools.scm11655logplainabout -rw-r--r--busybox.scm4417logplainabout -rw-r--r--c.scm9400logplainabout -rw-r--r--calcurse.scm2978logplainabout -rw-r--r--calendar.scm8406logplainabout -rw-r--r--ccache.scm2448logplainabout -rw-r--r--cdrom.scm33036logplainabout -rw-r--r--certs.scm8919logplainabout -rw-r--r--check.scm78467logplainabout -rw-r--r--chemistry.scm13749logplainabout -rw-r--r--chez.scm26143logplainabout -rw-r--r--ci.scm13473logplainabout -rw-r--r--cinnamon.scm3246logplainabout -rw-r--r--clojure.scm11956logplainabout -rw-r--r--cluster.scm3502logplainabout -rw-r--r--cmake.scm7501logplainabout -rw-r--r--cobol.scm3003logplainabout -rw-r--r--code.scm29298logplainabout -rw-r--r--commencement.scm45878logplainabout -rw-r--r--compression.scm95326logplainabout -rw-r--r--compton.scm4097logplainabout -rw-r--r--conkeror.scm3730logplainabout -rw-r--r--conky.scm3210logplainabout -rw-r--r--connman.scm6893logplainabout -rw-r--r--cook.scm3594logplainabout -rw-r--r--cpio.scm2038logplainabout -rw-r--r--cpp.scm10805logplainabout -rw-r--r--cppi.scm1775logplainabout -rw-r--r--cran.scm273618logplainabout -rw-r--r--cross-base.scm21515logplainabout -rw-r--r--crypto.scm37097logplainabout -rw-r--r--cryptsetup.scm5257logplainabout -rw-r--r--cups.scm31180logplainabout -rw-r--r--curl.scm10826logplainabout -rw-r--r--cyrus-sasl.scm3023logplainabout -rw-r--r--databases.scm121235logplainabout -rw-r--r--datamash.scm2011logplainabout -rw-r--r--datastructures.scm8520logplainabout -rw-r--r--dav.scm4598logplainabout -rw-r--r--dc.scm2236logplainabout -rw-r--r--debian.scm7685logplainabout -rw-r--r--debug.scm15979logplainabout -rw-r--r--dejagnu.scm3510logplainabout -rw-r--r--dico.scm3527logplainabout -rw-r--r--dictionaries.scm11987logplainabout -rw-r--r--digest.scm2346logplainabout -rw-r--r--direct-connect.scm2606logplainabout -rw-r--r--disk.scm29307logplainabout -rw-r--r--display-managers.scm14888logplainabout -rw-r--r--django.scm35880logplainabout -rw-r--r--djvu.scm2064logplainabout -rw-r--r--dlang.scm15099logplainabout -rw-r--r--dns.scm29623logplainabout -rw-r--r--docbook.scm11743logplainabout -rw-r--r--docker.scm5368logplainabout -rw-r--r--documentation.scm10592logplainabout -rw-r--r--dunst.scm3159logplainabout -rw-r--r--dvtm.scm2311logplainabout -rw-r--r--ebook.scm11872logplainabout -rw-r--r--ed.scm2374logplainabout -rw-r--r--education.scm12661logplainabout -rw-r--r--electronics.scm10325logplainabout -rw-r--r--elf.scm9800logplainabout -rw-r--r--elixir.scm4143logplainabout -rw-r--r--emacs.scm499911logplainabout -rw-r--r--embedded.scm49235logplainabout -rw-r--r--emulators.scm54912logplainabout -rw-r--r--enchant.scm3655logplainabout -rw-r--r--engineering.scm77331logplainabout -rw-r--r--enlightenment.scm19798logplainabout -rw-r--r--entr.scm2854logplainabout -rw-r--r--erlang.scm9477logplainabout -rw-r--r--fabric-management.scm7029logplainabout -rw-r--r--fcitx.scm5006logplainabout -rw-r--r--figlet.scm1797logplainabout -rw-r--r--file-systems.scm11757logplainabout -rw-r--r--file.scm2056logplainabout -rw-r--r--finance.scm36403logplainabout -rw-r--r--firmware.scm21656logplainabout -rw-r--r--flashing-tools.scm18628logplainabout -rw-r--r--flex.scm4199logplainabout -rw-r--r--fltk.scm5769logplainabout -rw-r--r--fonts.scm57555logplainabout -rw-r--r--fontutils.scm29703logplainabout -rw-r--r--forth.scm2434logplainabout -rw-r--r--fpga.scm13912logplainabout -rw-r--r--freedesktop.scm51212logplainabout -rw-r--r--freeipmi.scm2013logplainabout -rw-r--r--fribidi.scm2002logplainabout -rw-r--r--ftp.scm10938logplainabout -rw-r--r--fvwm.scm3296logplainabout -rw-r--r--game-development.scm51326logplainabout -rw-r--r--games.scm244790logplainabout -rw-r--r--gawk.scm3785logplainabout -rw-r--r--gcal.scm1980logplainabout -rw-r--r--gcc.scm43760logplainabout -rw-r--r--gd.scm6687logplainabout -rw-r--r--gdb.scm4600logplainabout -rw-r--r--geo.scm38302logplainabout -rw-r--r--gettext.scm8824logplainabout -rw-r--r--ghostscript.scm16752logplainabout -rw-r--r--gimp.scm15309logplainabout -rw-r--r--gkrellm.scm2451logplainabout -rw-r--r--gl.scm31087logplainabout -rw-r--r--glib.scm35498logplainabout -rw-r--r--gnome.scm288227logplainabout -rw-r--r--gnu-doc.scm4109logplainabout -rw-r--r--gnu-pw-mgr.scm2378logplainabout -rw-r--r--gnucash.scm12513logplainabout -rw-r--r--gnunet.scm14716logplainabout -rw-r--r--gnupg.scm43110logplainabout -rw-r--r--gnustep.scm11910logplainabout -rw-r--r--gnuzilla.scm38209logplainabout -rw-r--r--gobby.scm7921logplainabout -rw-r--r--golang.scm141812logplainabout -rw-r--r--gperf.scm2354logplainabout -rw-r--r--gprolog.scm2742logplainabout -rw-r--r--gps.scm8997logplainabout -rw-r--r--graph.scm8531logplainabout -rw-r--r--graphics.scm33871logplainabout -rw-r--r--graphviz.scm10571logplainabout -rw-r--r--groff.scm6571logplainabout -rw-r--r--groovy.scm47175logplainabout -rw-r--r--gsasl.scm4640logplainabout -rw-r--r--gstreamer.scm18319logplainabout -rw-r--r--gtk.scm68005logplainabout -rw-r--r--guile-wm.scm6927logplainabout -rw-r--r--guile.scm97432logplainabout -rw-r--r--gv.scm3247logplainabout -rw-r--r--gxmessage.scm2352logplainabout -rw-r--r--ham-radio.scm2063logplainabout -rw-r--r--hardware.scm11656logplainabout -rw-r--r--haskell-check.scm30571logplainabout -rw-r--r--haskell-crypto.scm28868logplainabout -rw-r--r--haskell-web.scm46883logplainabout -rw-r--r--haskell.scm429152logplainabout -rw-r--r--hexedit.scm3222logplainabout -rw-r--r--hugs.scm3688logplainabout -rw-r--r--hurd.scm10722logplainabout -rw-r--r--ibus.scm26196logplainabout -rw-r--r--icu4c.scm3691logplainabout -rw-r--r--idris.scm11486logplainabout -rw-r--r--idutils.scm2089logplainabout -rw-r--r--image-processing.scm16852logplainabout -rw-r--r--image-viewers.scm17369logplainabout -rw-r--r--image.scm62480logplainabout -rw-r--r--imagemagick.scm9406logplainabout -rw-r--r--inklingreader.scm2239logplainabout -rw-r--r--inkscape.scm3468logplainabout -rw-r--r--ipfs.scm11245logplainabout -rw-r--r--irc.scm17781logplainabout -rw-r--r--iso-codes.scm4107logplainabout -rw-r--r--java.scm448830logplainabout -rw-r--r--javascript.scm19434logplainabout -rw-r--r--jemalloc.scm3293logplainabout -rw-r--r--jrnl.scm2353logplainabout -rw-r--r--julia.scm17050logplainabout -rw-r--r--kde-frameworks.scm140151logplainabout -rw-r--r--kde.scm24240logplainabout -rw-r--r--kerberos.scm8550logplainabout -rw-r--r--key-mon.scm2079logplainabout -rw-r--r--kodi.scm20644logplainabout -rw-r--r--language.scm16415logplainabout -rw-r--r--ld-wrapper.in11660logplainabout -rw-r--r--lego.scm5400logplainabout -rw-r--r--less.scm1883logplainabout -rw-r--r--lesstif.scm1817logplainabout -rw-r--r--libbsd.scm2092logplainabout -rw-r--r--libcanberra.scm6088logplainabout -rw-r--r--libdaemon.scm2903logplainabout -rw-r--r--libedit.scm1943logplainabout -rw-r--r--libevent.scm9790logplainabout -rw-r--r--libffcall.scm1813logplainabout -rw-r--r--libffi.scm7376logplainabout -rw-r--r--libftdi.scm1943logplainabout -rw-r--r--libidn.scm3851logplainabout -rw-r--r--libphidget.scm1635logplainabout -rw-r--r--libreoffice.scm43302logplainabout -rw-r--r--libsigsegv.scm2554logplainabout -rw-r--r--libunistring.scm2898logplainabout -rw-r--r--libunwind.scm2259logplainabout -rw-r--r--libusb.scm17837logplainabout -rw-r--r--license.scm6378logplainabout -rw-r--r--lighting.scm3418logplainabout -rw-r--r--linux.scm208600logplainabout -rw-r--r--lirc.scm6284logplainabout -rw-r--r--lisp.scm142339logplainabout -rw-r--r--llvm.scm21027logplainabout -rw-r--r--logging.scm7519logplainabout -rw-r--r--lolcode.scm2406logplainabout -rw-r--r--lout.scm5633logplainabout -rw-r--r--lsof.scm4621logplainabout -rw-r--r--lua.scm20382logplainabout -rw-r--r--lxde.scm20258logplainabout -rw-r--r--lxqt.scm42510logplainabout -rw-r--r--m4.scm2637logplainabout -rw-r--r--machine-learning.scm36668logplainabout -rw-r--r--mail.scm106790logplainabout -rw-r--r--make-bootstrap.scm30674logplainabout -rw-r--r--man.scm10171logplainabout -rw-r--r--markup.scm10100logplainabout -rw-r--r--marst.scm1763logplainabout -rw-r--r--mate.scm57084logplainabout -rw-r--r--maths.scm173666logplainabout -rw-r--r--maven.scm77238logplainabout -rw-r--r--mc.scm4262logplainabout -rw-r--r--mcrypt.scm4576logplainabout -rw-r--r--medical.scm2416logplainabout -rw-r--r--mes.scm5486logplainabout -rw-r--r--messaging.scm73904logplainabout -rw-r--r--microcom.scm2163logplainabout -rw-r--r--mingw.scm4006logplainabout -rw-r--r--moe.scm2216logplainabout -rw-r--r--monitoring.scm17008logplainabout -rw-r--r--mono.scm4681logplainabout -rw-r--r--moreutils.scm3212logplainabout -rw-r--r--motti.scm1669logplainabout -rw-r--r--mp3.scm20838logplainabout -rw-r--r--mpd.scm13885logplainabout -rw-r--r--mpi.scm13569logplainabout -rw-r--r--mtools.scm2673logplainabout -rw-r--r--multiprecision.scm12614logplainabout -rw-r--r--music.scm173852logplainabout -rw-r--r--musl.scm2182logplainabout -rw-r--r--nano.scm2156logplainabout -rw-r--r--ncdu.scm2109logplainabout -rw-r--r--ncurses.scm15320logplainabout -rw-r--r--netpbm.scm7853logplainabout -rw-r--r--nettle.scm3244logplainabout -rw-r--r--networking.scm90042logplainabout -rw-r--r--nfs.scm5043logplainabout -rw-r--r--nickle.scm2481logplainabout -rw-r--r--nim.scm3020logplainabout -rw-r--r--ninja.scm3111logplainabout -rw-r--r--node.scm9597logplainabout -rw-r--r--noweb.scm4392logplainabout -rw-r--r--ntp.scm7800logplainabout -rw-r--r--nutrition.scm3126logplainabout -rw-r--r--nvi.scm2913logplainabout -rw-r--r--ocaml.scm200200logplainabout -rw-r--r--ocr.scm3097logplainabout -rw-r--r--onc-rpc.scm5156logplainabout -rw-r--r--openbox.scm3936logplainabout -rw-r--r--opencl.scm13187logplainabout -rw-r--r--openldap.scm14058logplainabout -rw-r--r--openstack.scm32874logplainabout -rw-r--r--orpheus.scm4287logplainabout -rw-r--r--ots.scm3497logplainabout -rw-r--r--package-management.scm42198logplainabout -rw-r--r--parallel.scm8088logplainabout -rw-r--r--password-utils.scm32531logplainabout d---------patches40636logplain -rw-r--r--patchutils.scm9996logplainabout -rw-r--r--pciutils.scm3933logplainabout -rw-r--r--pcre.scm4731logplainabout -rw-r--r--pdf.scm41302logplainabout -rw-r--r--pem.scm1795logplainabout -rw-r--r--perl-check.scm52669logplainabout -rw-r--r--perl-web.scm3019logplainabout -rw-r--r--perl.scm380743logplainabout -rw-r--r--phabricator.scm4962logplainabout -rw-r--r--photo.scm21089logplainabout -rw-r--r--php.scm18201logplainabout -rw-r--r--pkg-config.scm5117logplainabout -rw-r--r--plotutils.scm11455logplainabout