aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2017 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-bournish)
  #:use-module (guix build bournish)
  #:use-module (system base compile)
  #:use-module (system base language)
  #:use-module (srfi srfi-64))


(test-begin "bournish")

(test-equal "single statement"
  '(chdir "/foo")
  (read-and-compile (open-input-string "cd /foo")
                    #:from %bournish-language #:to 'scheme))

(test-equal "multiple statements"
  '(begin
     (chdir "/foo")
     (getcwd)
     ((@@ (guix build bournish) ls-command-implementation)))
  (read-and-compile (open-input-string "cd /foo\npwd\nls")
                    #:from %bournish-language #:to 'scheme))

(test-equal "rm"
  '(for-each delete-file (list "foo" "bar"))
  (read-and-compile (open-input-string "rm foo bar\n")
                    #:from %bournish-language #:to 'scheme))

(test-equal "rm -r"
  '(for-each (@ (guix build utils) delete-file-recursively)
             (list "/foo" "/bar"))
  (read-and-compile (open-input-string "rm -r /foo /bar\n")
                    #:from %bournish-language #:to 'scheme))

(test-end "bournish")

33dec8976714b5e1e8dd970680c8756387b0cdd'>gnu: hwdata: Update to 0.365....* gnu/packages/pciutils.scm (hwdata): Update to 0.365. Tobias Geerinckx-Rice 2022-06-26gnu: pciutils: Update to 3.8.0....* gnu/packages/pciutils.scm (pciutils): Update to 3.8.0. [source](patches): Remove. [arguments]: Don't apply patch. Add CC in #:make-flags. Marius Bakke 2022-06-26gnu: hwdata: Update to 0.360....* gnu/packages/pciutils.scm (hwdata): Update to 0.360. Marius Bakke 2022-06-08Merge branch 'master' into core-updatesLudovic Courtès 2022-03-22gnu: pciutils: Use newer pci.ids file from hwdata....* gnu/packages/pciutils.scm (pciutils)[phases]{unbundle-pci.ids}: New phase. [configure]: Adjust Makefile to not install the update script and its man page. [native-inputs]{hwdata:pci}: New native input. Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Brendan Tildesley 2022-03-22gnu: hwdata: Update to 0.357....* gnu/packages/pciutils.scm (hwdata): Update to 0.357. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Brendan Tildesley 2022-03-22gnu: hwdata: Remove unused gzip native input....* gnu/packages/pciutils.scm (hwdata)[native-inputs]: Remove gzip. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Brendan Tildesley 2022-03-22gnu: hwdata: Set #:target #f....* gnu/packages/pciutils.scm (hwdata): Set #:target #f. Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Brendan Tildesley 2022-02-26gnu: Add hwdata....* gnu/packages/pciutils.scm (hwdata): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Brendan Tildesley 2022-01-10gnu: pciutils: Fix the conditional for the kmod input....Fixes <https://issues.guix.gnu.org/52411>. Thanks to Maxime Devos for suggesting the solution. * gnu/packages/pciutils.scm (pciutils): Delete trailing #t. [inputs]{kmod}: Use the hurd-target? procedure in the condition, which correctly handles the Nix system of %current-system and GNU triplet of %current-target-system. Maxim Cournoyer 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2020-12-09gnu: pciutils: Fix compilation error on GNU/Hurd....* gnu/packages/patches/pciutils-hurd-fix.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/pciutils.scm (pciutils)[arguments]: Add 'apply-hurd-patch' phase when (hurd-target?) is true. [inputs]: Add "hurd-patch" entry when (hurd-target?) is true. Ludovic Courtès 2020-07-25gnu: pciutils: Update to 3.7.0....* gnu/packages/pciutils.scm (pciutils): Update to 3.7.0. Marius Bakke 2020-03-26gnu: pciutils: Build fixes for the Hurd....* gnu/packages/linux.scm (kmod)[supported-systems]: Remove the Hurd. * gnu/packages/patches/pciutils-hurd-configure.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/pciutils.scm (pciutils): Use it. [inputs]: Include kmod only for supported systems. Jan Nieuwenhuizen 2020-02-03gnu: pciutils: Update to 3.6.4....* gnu/packages/pciutils.scm (pciutils): Update to 3.6.4. Marius Bakke 2020-01-24gnu: pciutils: Update to 3.6.3....* gnu/packages/pciutils.scm (pciutils): Update to 3.6.3. Marius Bakke 2019-12-16gnu: pciutils: Fix cross-compilation....* gnu/packages/pciutils.scm (pciutils)[arguments]: Set CROSS_COMPILE, HOST and STRIP variables correctly in Makefile to fix cross-compilation. Mathieu Othacehe 2019-03-01gnu: pciutils: Update to 3.6.2....* gnu/packages/pciutils.scm (pciutils): Update to 3.6.2. Marius Bakke 2018-07-13gnu: pciutils: Update to 3.6.1....* gnu/packages/pciutils.scm (pciutils): Update to 3.6.1. Marius Bakke 2018-03-23gnu: pciutils: Use invoke....* gnu/packages/pciutils.scm (pciutils)[arguments]: Use invoke in the custom install phase. Mark H Weaver 2018-02-20Merge branch 'master' into stagingMarius Bakke 2018-02-20gnu: pciutils: Update to 3.5.6....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.6. Tobias Geerinckx-Rice 2018-02-19gnu: pciutils: Use HTTPS home page....* gnu/packages/pciutils.scm (pciutils)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2017-07-10gnu: pciutils: Tweak description....* gnu/packages/pciutils.scm (pciutils)[description]: Use @command. Ludovic Courtès 2017-07-10gnu: pciutils: Move 'pci.ids.gz' to 'share/hwdata'....* gnu/packages/pciutils.scm (pciutils)[arguments] <configure>: Set 'IDSDIR' such that 'pci.ids.gz' goes to share/hwdata. Ludovic Courtès 2017-07-10gnu: pciutils: Update to 3.5.5....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.5. Ludovic Courtès 2017-02-27gnu: pciutils: Update to 3.5.4....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.4. Marius Bakke 2016-11-30gnu: pciutils: Update to 3.5.2....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.2. Ludovic Courtès 2016-05-29gnu: pciutils: Add kmod support....* gnu/packages/pciutils.scm (pciutils)[inputs]: Add kmod. Efraim Flashner 2016-05-29gnu: pciutils: Use 'modify-phases'....* gnu/packages/pciutils.scm (pciutils)[arguments]: Use 'modify-phases'. Efraim Flashner 2016-05-29gnu: pciutils: Update to 3.5.1....* gnu/packages/pciutils.scm (pciutils): Update to 3.5.1. Efraim Flashner 2015-09-14gnu: pciutils: Update to 3.3.1....* gnu/packages/pciutils.scm (pciutils): Update to 3.3.1. 宋文武 2015-03-04gnu: Move 'which' to (gnu packages base)....* gnu/packages/which.scm: Remove. * gnu-system.am (GNU_SYSTEM_MODULES): Remove it. * gnu/packages/base.scm (which): New variable. * gnu/packages/aspell.scm, gnu/packages/audio.scm, gnu/packages/autogen.scm, gnu/packages/cdrom.scm, gnu/packages/compression.scm, gnu/packages/datamash.scm, gnu/packages/games.scm, gnu/packages/glib.scm, gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm, gnu/packages/gps.scm, gnu/packages/guile.scm, gnu/packages/java.scm, gnu/packages/libevent.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/node.scm, gnu/packages/ntp.scm, gnu/packages/orpheus.scm, gnu/packages/pciutils.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/rsync.scm, gnu/packages/sawfish.scm, gnu/packages/scheme.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/texlive.scm, gnu/packages/wdiff.scm: Adjust accordingly. Ludovic Courtès 2014-09-23Use #:prefix instead of #:renamer with 'symbol-prefix-proc'....* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/backup.scm, gnu/packages/bittorrent.scm, gnu/packages/boost.scm, gnu/packages/compression.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm, gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm, gnu/packages/gimp.scm, gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm, gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm, gnu/packages/indent.scm, gnu/packages/inkscape.scm, gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm, gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm, gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm, gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm, gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm, gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/yasm.scm, gnu/packages/zip.scm, guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm, guix/build/python-build-system.scm, guix/download.scm: Replaces uses of #:renamer and 'symbol-prefix-proc' with #:prefix. Mark H Weaver