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

+0200'>2024-10-19gnu: font-ibm-plex: Split outputs....* gnu/packages/fonts.scm (font-ibm-plex)[outputs]: New field. Change-Id: Icc0792f81797829cd6235ecee7068da29be642f2 宋文武 2024-10-19gnu: font-ibm-plex: Update to 6.4.0....* gnu/packages/fonts.scm (font-ibm-plex): Update to 6.4.0. Change-Id: I2f8142ceefaacec8f21a09290cd5ad25a4703907 宋文武 2024-10-19gnu: font-chivo: Split outputs....* gnu/packages/fonts.scm (font-chivo)[outputs]: New field. Change-Id: I3034440f6d3d50fbd3e8e95e852596e2a42a1ba0 宋文武 2024-10-19gnu: font-artifika: Split outputs....* gnu/packages/fonts.scm (font-artifika): New field. Change-Id: I93d3ee3be92bfcd35d85063aaae70618b4a21038 宋文武 2024-09-11gnu: font-culmus: Update to 0.140....* gnu/packages/fonts.scm (font-culmus): Update to 0.140. [arguments]: Update 'build phase to use included scripts. Change-Id: I6dc1d3d06c57a7d6305467db23bcff220961c014 Efraim Flashner 2024-09-02gnu: font-chiron-sung-hk: Update to 1.014....* gnu/packages/fonts.scm (font-chiron-sung-hk): Update to 1.014. Change-Id: I13642e6aed326890925a9e0a50beaf50f7dcd4cf Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-lxgw-wenkai-tc: Update to 1.330....* gnu/packages/fonts.scm (font-lxgw-wenkai-tc): Update to 1.330. Change-Id: I0836dde94434550391b3e5b8aaf03e28e2164f60 Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-lxgw-wenkai: Update to 1.330....* gnu/packages/fonts.scm (font-lxgw-wenkai): Update to 1.330. Change-Id: Ib91d326d7a38c8acaa44d9d77c88c8eb3045089a Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-google-noto-serif-cjk: Update to 2.003....* gnu/packages/fonts.scm (font-google-noto-serif-cjk): Update to 2.003. Change-Id: If75e51b8fc6603221099554ccc4377c1526772ad Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-sarasa-gothic: Update to 1.0.20....* gnu/packages/fonts.scm (font-sarasa-gothic): Update to 1.0.20. Change-Id: I4f0b02a4cf71bfd2dc8c479cb04df0835b51948f Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-google-noto: Update to 24.8.1....* gnu/packages/fonts.scm (font-google-noto): Update to 24.8.1. Change-Id: Iafc36ccb3e9210ad6482675a7f93e3d9a12908c9 Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-09-02gnu: font-chiron-hei-hk: Update to 2.515....* gnu/packages/fonts.scm (font-chiron-hei-hk): Update to 2.515. Change-Id: Ibd3c2770968274a3f0069ef7251fbfafbb6d9def Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Hilton Chain 2024-08-31gnu: font-tuffy: Fix build....* gnu/packages/fonts.scm (font-tuffy)[native-inputs]: Add zstd. Change-Id: I661fe381745b17b7b8ac33aa42981a6bf97eddb9 宋文武 2024-08-31gnu: font-go: Update home page URL....* gnu/packages/fonts.scm (font-go) [home-page]: Update URL. Change-Id: I2d6962a015cb777c6daaed86490e8d01b1e40d2e Maxim Cournoyer 2024-08-31gnu: font-fontna-yasashisa-antique: Remove input labels....* gnu/packages/fonts.scm (font-fontna-yasashisa-antique) [phases]: Remove trailing #t. [native-inputs]: Remove labels. Change-Id: I4d0f113a9f3866c0a0d14de893d3cd03c7741393 Maxim Cournoyer 2024-08-31gnu: font-charter: Install license file....* gnu/packages/fonts.scm (font-charter)[arguments]<#:license-file-regexp>: Add. Simon South 2024-08-31gnu: font-fontna-yasashisa-antique: Install license file....* gnu/packages/fonts.scm (font-fontna-yasashisa-antique)[arguments]<#:phases>: Add "enter-license-directory" phase. Simon South 2024-08-31gnu: font-jetbrains-mono: Remove obsolete phase....* gnu/packages/fonts.scm (font-jetbrains-mono)[arguments]<#:phases>: Remove obsolete "install-license-files" phase. Simon South 2024-08-31gnu: font-dseg: Install license file....* gnu/packages/fonts.scm (font-dseg)[arguments]<#:license-file-regexp>: Add. Simon South 2024-08-31gnu: font-dseg: Simplify "install" phase....* gnu/packages/fonts.scm (font-dseg)[source]: Use url-fetch. [arguments]<#:phases>: Remove "with-directory-excursion" from "install" phase. Simon South 2024-08-31gnu: font-culmus: Install all license files....* gnu/packages/fonts.scm (font-culmus)[arguments]<#:license-file-regexp>: Add. Simon South 2024-08-31gnu: font-dosis: Remove extraneous files; install license file....* gnu/packages/fonts.scm (font-dosis)[source]: Use url-fetch. Simon South 2024-08-31gnu: font-go: Install license files....* gnu/packages/fonts.scm (font-go)[arguments]<#:license-file-regexp>: Add. <#:phases>: Add "enter-license-directory" phase. Simon South 2024-08-31gnu: font-space-grotesk: Remove obsolete phase....* gnu/packages/fonts.scm (font-space-grotesk)[arguments]: Remove along with obsolete "install-license-files" phase. Simon South 2024-08-31gnu: font-comic-neue: Install license file....* gnu/packages/fonts.scm (font-comic-neue)[arguments]<#:phases>: Add "enter-license-directory" phase. Simon South 2024-08-31gnu: font-fira-go: Install license file....* gnu/packages/fonts.scm (font-fira-go)[arguments]: Add with "enter-license-directory" phase. Simon South 2024-08-31gnu: font-fira-sans: Install license file....* gnu/packages/fonts.scm (font-fira-sans)[arguments]<#:phases>: Add "enter-license-directory" phase. Simon South 2024-08-31gnu: font-wqy-microhei: Install all license files....* gnu/packages/fonts.scm (font-wqy-microhei)[arguments]: Add with #:license-file-regexp. Simon South 2024-08-31gnu: font-wqy-zenhei: Install all license files....* gnu/packages/fonts.scm (font-wqy-zenhei)[arguments]: Add with #:license-file-regexp. Simon South 2024-08-31gnu: font-linuxlibertine: Install all license files....* gnu/packages/fonts.scm (font-linuxlibertine)[arguments] <#:license-file-regexp>: Add. Simon South 2024-08-31gnu: font-lato: Install license file....* gnu/packages/fonts.scm (font-lato)[source]: Use url-fetch. Simon South 2024-08-31gnu: font-canada1500: Install license file....* gnu/packages/fonts.scm (font-canada1500)[source]: Use url-fetch/zipbomb. [arguments]: Add with #:license-file-regexp. Simon South 2024-08-31gnu: font-amiri: Import the correct set of modules....* gnu/packages/fonts.scm (font-amiri) [arguments] <modules>: Replace %default-gnu-imported-modules with %default-gnu-modules. Change-Id: I12612a6257b626a0089798d9c1192cf2ef15d798 Maxim Cournoyer 2024-08-31build-systems: gnu: Export %default-gnu-imported-modules and %default-gnu-mod......Until now users would have to cargo cult or inspect the private %default-modules variable of (guix build-systems gnu) to discover which modules to include when extending the used modules via the #:modules argument. The renaming was automated via the command: $ git grep -l %gnu-build-system-modules | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i * guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to... (%default-gnu-imported-modules): ... this. (%default-modules): Rename to... (%default-gnu-modules): ... this. Export. (dist-package, gnu-build, gnu-cross-build): Adjust accordingly. Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee Maxim Cournoyer