;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016, 2019 Ludovic Courtès ;;; ;;; 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-zlib) #:use-module (guix zlib) #:use-module (guix tests) #:use-module (srfi srfi-64) #:use-module (rnrs bytevectors) #:use-module (rnrs io ports) #:use-module (ice-9 match)) ;; Test the (guix zlib) module. (test-begin "zlib") (unless (zlib-available?) (test-skip 1)) (test-assert "compression/decompression pipe" (let ((data (random-bytevector (+ (random 10000) (* 20 1024))))) (match (pipe) ((parent . child) (match (primitive-fork) (0 ;compress (dynamic-wind (const #t) (lambda () (close-port parent) (call-with-gzip-output-port child (lambda (port) (put-bytevector port data)))) (lambda () (primitive-exit 0)))) (pid ;decompress (begin (close-port child) (let ((received (call-with-gzip-input-port parent (lambda (port) (get-bytevector-all port)) #:buffer-size (* 64 1024)))) (match (waitpid pid) ((_ . status) (and (zero? status) (port-closed? parent) (bytevector=? received data)))))))))))) (test-end) b930a7e99f472f5f98f05bbb3f324e4b'>gnu/packages/kodi.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-03-14 13:12:01 +0100
committerRicardo Wurmus <rekado@elephly.net>2022-03-15 20:18:54 +0100
commit231841f9b930a7e99f472f5f98f05bbb3f324e4b (patch)
treebfb6cc47b5c771261427b741c697ee0a48574a10 /gnu/packages/kodi.scm
parent5b325ab18ddf64daa3a9e7348617e3ce7b6c1fae (diff)
downloadguix-231841f9b930a7e99f472f5f98f05bbb3f324e4b.tar.gz
guix-231841f9b930a7e99f472f5f98f05bbb3f324e4b.zip
gnu: r-afex: Add vignette builder.
* gnu/packages/cran.scm (r-afex)[native-inputs]: Add r-r-rsp. [arguments]: Add build phase to set HOME variable.
Diffstat (limited to 'gnu/packages/kodi.scm')
0 files changed, 0 insertions, 0 deletions