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")

class='msg-tooltip'>* gnu/packages/guile.scm (guile-2.0): Add libxcrypt dependency, and include it in the pkg-config file's flags. * gnu/packages/commencement.scm (guile-final): Explicitely exclude libxcrypt dependency. Change-Id: Ie01913971b225c4dd23dcfdb96348d4e11042da8 Josselin Poiret 2024-08-31gnu: guile-1.8: Add libxcrypt dependency....* gnu/packages/guile.scm (guile-1.8): Add libxcrypt dependency, and include it in the pkg-config file's flags. Change-Id: I050e8d2bee0b6195a6a854338d39a9594b0088b9 Josselin Poiret 2024-08-28gnu: guile-git: Switch to libgit2 1.8....* gnu/packages/guile.scm (guile-git)[inputs]: Replace ‘libgit2-1.7’ by ‘libgit2-1.8’. Change-Id: I0b9c6f9efb813c2af589ebf291c6f66ff81b87d9 Ludovic Courtès 2024-08-28gnu: guile-git: Update to 0.8.0....* gnu/packages/guile.scm (guile-git): Update to 0.8.0. Change-Id: I97ed6c88402e53935d7f1cec335a7982f3e33417 Ludovic Courtès 2024-08-21gnu: guile-zlib: Update to 0.2.1....* gnu/packages/guile.scm (guile-zlib): Update to 0.2.1. [arguments]: Remove. Change-Id: Id19309dfcaece713ad2a56294d18bf91ddcdc6e9 Ludovic Courtès 2024-07-19Revert "gnu: guile: Update to 3.0.10."...This reverts commit e31299010f6b8ccb3ccd1cc34a0d03483387ea36 and 24163eea584663568b68e19f364256fc7396b61f. The upgrade causes build failures, as noticeably by running ‘guix pull’, that are being investigated at <https://issues.guix.gnu.org/72183>. Change-Id: I946b43d938666d9dcddf1e5d856b02462bd8e453 Ludovic Courtès 2024-07-19gnu: guile: Update to 3.0.10....* gnu/packages/guile.scm (guile-3.0-latest): Update to 3.0.10. Change-Id: Id9d58199f1fa3307c94f442c185307d2f4a9ce6f David Thompson 2024-05-01gnu: guile-git: Update to 0.7.0....* gnu/packages/guile.scm (guile-git): Update to 0.7.0. Change-Id: I7a0a9d50a0f8a788963b05029a37ac9450ffa185 Ludovic Courtès 2024-04-30gnu: guile-next: Update to commit 3b76a30....* gnu/packages/guile.scm (guile-next): Update to commit 3b76a30. Change-Id: I9af6593f6a7f2babdac19201bd1be541ea78e8e5 David Thompson 2024-04-30gnu: guile-lzlib: Switch to ‘url-fetch’....Fixes <https://issues.guix.gnu.org/70659>. Fixes a regression introduced in 7cef6b7ba555a9dfaf6d09cb7e112b0df77d5141, which would create a circular dependency on systems lacking “builtin:git-download”. * gnu/packages/guile.scm (guile-lzlib)[source]: Switch to ‘git-fetch’. Reported-by: Peacememories <peacememories@posteo.net> Change-Id: Iad684564d0dc18f0a7a76e1c4c6464ba4f39f2e8 Ludovic Courtès 2024-04-28gnu: guile-lzlib: Update to 0.3.0....Fixes <https://issues.guix.gnu.org/69596>. * gnu/packages/guile.scm (guile-lzlib): Update to 0.3.0. [source]: Switch to ‘git-fetch’. Change-Id: Ic9f8fe2d0ab24b66cfba618840773a3e89aea48c Ludovic Courtès 2024-04-08gnu: guile-next: Update to commit db7efa5....* gnu/packages/guile.scm (guile-next): Update to commit db7efa5. Change-Id: Ia9629b4494b9d8968d9caa1b6c6ce362ee24a24d David Thompson