;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Ludovic Courtès ;;; Copyright © 2017 Ricardo Wurmus ;;; ;;; 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 . (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")
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-02-18 10:42:07 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2020-03-22 12:51:50 +0100
commit5c79f238634c5adb6657f1b4b1bb4ddb8bb73ef1 (patch)
tree9aa461be2cf3ede11048d3e7c4280b89de4ac73b /doc/guix.texi
parent66a198c8075f02d7075a555b48dd3adde88ebbbf (diff)
downloadguix-5c79f238634c5adb6657f1b4b1bb4ddb8bb73ef1.tar.gz
guix-5c79f238634c5adb6657f1b4b1bb4ddb8bb73ef1.zip
system: Add kernel-loadable-modules to operating-system.
* gnu/system.scm (<operating-system>): Add kernel-loadable-modules. (operating-system-directory-base-entries): Use it. * doc/guix.texi (operating-system Reference): Document KERNEL-LOADABLE-MODULES. * gnu/build/linux-modules.scm (depmod): New procedure. (make-linux-module-directory): New procedure. Export it. * guix/profiles.scm (linux-module-database): New procedure. Export it. * gnu/tests/linux-modules.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/linux.scm (make-linux-libre*)[arguments]<#:phases>[install]: Disable depmod. Remove "build" and "source" symlinks. [native-inputs]: Remove kmod.
Diffstat (limited to 'doc/guix.texi')