aboutsummaryrefslogtreecommitdiff
path: root/tests/bournish.scm
blob: 0f529ce42f121dc790fb2b73a2f25aed0fd6f2d8 (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
;;;
;;; 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-end "bournish")

an Hellseher 2024-02-05gnu: phantomsocks: Update to 0.0.0-20240125140126-2576269ca69a....Hilton Chain 2024-02-05gnu: mbedtls-apache: Rename to mbedtls-lts....Hilton Chain 2024-02-03gnu: ngtcp2: Update to 1.2.0....Tomas Volf 2024-01-31gnu: dhtnet: Update to 0.0.1-1.41848a2....Maxim Cournoyer 2024-01-30gnu: yggdrasil: Update to 0.5.5....Artyom V. Poptsov 2024-01-21gnu: Add enet-moonlight....Petr Hodina 2024-01-17gnu: ngtcp2: Build libngtcp2_crypto_gnutls....Tomas Volf 2024-01-17gnu: ngtcp2: Update to 1.1.0....Tomas Volf 2024-01-15gnu: yggdrasil: Update to 0.5.4....Artyom V. Poptsov 2024-01-13gnu: iwd: Patch resolvconf path....Hilton Chain 2024-01-13gnu: iwd: Use gexps....Hilton Chain 2024-01-13gnu: iwd: Update to 2.12....Hilton Chain 2024-01-09gnu: Add dhtnet....Maxim Cournoyer 2024-01-09gnu: opendht: Update to 3.1.7....Maxim Cournoyer 2024-01-09gnu: msgpack: Deprecate with msgpack-c....Maxim Cournoyer 2024-01-09gnu: libnatpmp: Update to 20230423-0.6a850fd....Maxim Cournoyer 2024-01-09gnu: restinio: Update to 0.7.1....Maxim Cournoyer 2024-01-09gnu: asio: Update to 1.28.0....Maxim Cournoyer 2024-01-09gnu: libnatpmp: Update home page....Maxim Cournoyer 2024-01-09gnu: libnatpmp: Use gexps and simplify....Maxim Cournoyer 2024-01-07gnu: go-golang-org-x-sys: Update to 0.8.0....Artyom V. Poptsov 2024-01-06gnu: yggdrasil: Remove duplicated input....Sharlatan Hellseher 2024-01-06gnu: yggdrasil: Sort inputs alphabetically....Sharlatan Hellseher 2024-01-03gnu: go-github-com-hjson-hjson-go: Move to (gnu packages golang-web)....Sharlatan Hellseher 2023-12-22gnu: dante: Enable preloading support....Nguyễn Gia Phong 2023-12-19gnu: traceroute: Update to 2.1.5....Timotej Lazar 2023-12-10gnu: iperf: Update to 3.16....Tobias Geerinckx-Rice 2023-11-25gnu: yggdrasil: Update to 0.5.2....Artyom V. Poptsov 2023-11-24gnu: lcsync: Update to 0.3.0....Vagrant Cascadian 2023-11-24gnu: librecast: Update to 0.8.0....Vagrant Cascadian 2023-11-12gnu: Add ngtcp2....mason1920 2023-11-08gnu: nanomsg: Don't build html documentation....Efraim Flashner 2023-11-05gnu: phantomsocks: Update to 0.0.0-20231031033204-8b0ac27fc450....Hilton Chain