aboutsummaryrefslogtreecommitdiff
path: root/tests/bournish.scm
blob: 3b40ce26434c4d6744d3e22a035789c27dc1efea (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
;;; 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")

ip'>* gnu/packages/compression.scm (gzip): Update to 1.13. Efraim Flashner 2024-08-18gnu: unrar-free: Update to 0.3.1....* gnu/packages/compression.scm (unrar-free): Update to 0.3.1. [native-inputs, inputs]: Remove input labels. Change-Id: Ifa0d54ca22819e8e65a8a3140c94bc9063905873 Tobias Geerinckx-Rice 2024-08-23gnu: plzip: Fix cross-compilation....* gnu/packages/compression.scm (plzip)[arguments]<#:configure-flags>: Use CXX-FOR-TARGET. Change-Id: I03edf1a3758cbcf1254b8edc7f532e772a041fcb Zheng Junjie 2024-08-23gnu: plzip: Update to 1.11....* gnu/packages/compression.scm (plzip): Update to 1.11. Change-Id: Ia7901bc8b2989b2e63e73869fe851536efeddfef Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Artyom V. Poptsov 2024-08-12gnu: Add heatshrink....* gnu/packages/compression.scm (heatshrink): New variable. * gnu/packages/patches/heatshrink-add-cmake.patch: New file. * gnu/local.mk (dist_patch_DATA): Add "heatshrink-add-cmake.patch". Change-Id: I0beccdcaed22e47ac6bfe522497e0759a315813d Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Artyom V. Poptsov 2024-07-11gnu: xarchiver: Update to 0.5.4.23....* gnu/packages/compression.scm (xarchiver): Update to 0.5.4.23. Change-Id: I3675efc22b546810f7c5341c8f22be217cb69853 Signed-off-by: Andreas Enge <andreas@enge.fr> Artyom V. Poptsov 2024-06-18gnu: Add miniz-for-pytorch....* gnu/packages/compression.scm (miniz-for-pytorch): New variable. * gnu/packages/patches/miniz-for-pytorch.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. David Elsing 2024-06-18gnu: Add miniz....* gnu/packages/compression.scm (miniz): New variable. David Elsing 2024-05-15gnu: Add draco....* gnu/packages/compression.scm (draco): New variable. Change-Id: Ibba9180ac2ee176aa445684472fa7d34327f8ce5 Co-authored-by: Nicolas Graves <ngraves@ngraves.fr> Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Vinicius Monego 2024-04-22gnu: Add streambuf-shrinkwrap....* gnu/packages/compression.scm (streambuf-shrinkwrap): New variable. Change-Id: I3405b777e18cfd7b505f6de06019353d6c49a797 Ricardo Wurmus 2024-04-06gnu: Add minizip-ng....* gnu/packages/compression.scm (minizip-ng): New variable. Change-Id: I429dc542c1610383962c9971c2bef5a94c1f8bc6 Vinicius Monego 2024-02-09gnu: pigz: Update to 2.8....* gnu/packages/compression.scm (pigz): Update to 2.8. Change-Id: I058815637f2bbcd700c0f2b5f46aa0a307450d3f Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Greg Hogan