aboutsummaryrefslogtreecommitdiff
path: root/tests/base16.scm
blob: a64b650bec4f566abb79b5b3e39de59ef6d053e8 (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2017 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-base16)
  #:use-module (guix base16)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-64)
  #:use-module (rnrs bytevectors))

(test-begin "base16")

(test-assert "bytevector->base16-string->bytevector"
  (every (lambda (bv)
           (equal? (base16-string->bytevector
                    (bytevector->base16-string bv))
                   bv))
         (map string->utf8 '("" "f" "fo" "foo" "foob" "fooba" "foobar"))))

(test-end "base16")
tory. Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com> David Truby 2019-11-12gnu: clang-from-llvm: Fix set-glibc-file-names phase....* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Turn case on major version into a cond, so that newer versions of clang have the same behaviour as version 6 and 7. Signed-off-by: Carl Dong <contact@carldong.me> Mathieu Othacehe 2019-11-10gnu: Add 'file-name' where appropriate....* gnu/packages/admin.scm (detox, neofetch), gnu/packages/algebra.scm (python-fpylll), gnu/packages/bioinformatics.scm (tbsp, genrich), gnu/packages/crypto.scm (hpenc), gnu/packages/digest.scm (xxhash), gnu/packages/emacs-xyz.scm (emacs-tiny, emacs-ergoemacs-mode, emacs-make-it-so, emacs-poet-theme, emacs-deft, emacs-scribble-mode, emacs-helm-mu, emacs-unidecode, emacs-diff-hl, emacs-helm-exwm, emacs-gif-screencast, emacs-exec-path-from-shell), gnu/packages/engineering.scm (gpx), gnu/packages/freedesktop.scm (waylandpp), gnu/packages/golang.scm (go-github-com-sirupsen-logrus, go-github-com-shirou-gopsutil), gnu/packages/guile-xyz.scm (guile-studio, guile-picture-language, jupyter-guile-kernel), gnu/packages/image-viewers.scm (qview), gnu/packages/java-maths.scm (java-jblas), gnu/packages/llvm.scm (libclc), gnu/packages/logging.scm (spdlog), gnu/packages/ocaml.scm (ocaml-cstruct, ocaml-zarith), gnu/packages/terminals.scm (libtsm), gnu/packages/tigervnc.scm (tigervnc-client), gnu/packages/xdisorg.scm (xcalib, xbanish) [source]: Add file-name. Efraim Flashner 2019-09-23gnu: libomp: Fix test target....* gnu/packages/llvm.scm (libomp)[arguments]: Change #:test-target value. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Boris A. Dekshteyn 2019-09-22gnu: Add libcxx-6...* gnu/packages/llvm.scm (libcxx-6): New variable. John Soo 2019-07-24gnu: llvm: Add 'system->llvm-target' procedure....* gnu/packages/llvm.scm (system->llvm-target): New procedure. Ludovic Courtès 2019-07-08gnu: libomp: Download over HTTPS....* gnu/packages/llvm.scm (libomp)[source]: Use HTTPS. Tobias Geerinckx-Rice 2019-07-08gnu: libomp: Fix source hash....This is a follow-up to commit c5296e205b65a9b53553cf45be2ab223d5e82df5, which updated llvm. * gnu/packages/llvm.scm (libomp)[source]: Fix hash. Tobias Geerinckx-Rice 2019-06-28gnu: rust: use llvm@8...* gnu/packages/llvm.scm (llvm): Rename to... (llvm-8): ...this. (llvm): New variable. * gnu/packages/rust.scm (rust)[inputs]: Use llvm-8 Ivan Petkov 2019-06-28gnu: python-llvmlite: Build against LLVM 7....This is a follow-up to commit c5296e205b65a9b53553cf45be2ab223d5e82df5. * gnu/packages/llvm.scm (llvm-7, clang-runtime-7, clang-7): New public variables. (python-llvmlite)[inputs]: Inherit from LLVM-7 instead of LLVM. Marius Bakke 2019-06-26gnu: Add libclc....* gnu/packages/llvm.scm (libclc): New variable. Ricardo Wurmus 2019-06-26gnu: libcxx: Update hash....This is a follow-up to commit c5296e205b65a9b53553cf45be2ab223d5e82df5, which updated llvm. * gnu/packages/llvm.scm (libcxx): Update hash. Ricardo Wurmus 2019-05-06gnu: llvm: Update to 8.0.0....* gnu/packages/llvm.scm (llvm): Update to 8.0.0. * gnu/packages/llvm.scm (clang-runtime): Update hash. * gnu/packages/llvm.scm (clang): Update hash. Rutger Helling 2019-04-16gnu: Add libomp....* gnu/packages/llvm.scm (libomp): New variable. Ludovic Courtès 2019-03-18gnu: libcxx: Correct sha256 hash....* gnu/packages/llvm.scm (libcxx)[source]: Fix it. Tobias Geerinckx-Rice 2019-03-13gnu: python-llvmlite: Update to 0.27.1....* gnu/packages/llvm.scm (python-llvmlite): Update to 0.27.1. [inputs]: Update patch for custom LLVM variant. Ricardo Wurmus 2019-02-17gnu: Add libcxx....* gnu/packages/llvm.scm (libcxx): New variable. Ricardo Wurmus 2019-02-15gnu: LLVM, Clang: Update to 7.0.1....* gnu/packages/patches/clang-7.0-libc-search-path.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/llvm.scm (llvm, clang-runtime, clang): Update to 7.0.1. (llvm-7.0.1): Remove variable. (clang-from-llvm)[arguments]: Adjust phase to match Clang 7. (llvm-6, clang-runtime-6, clang-6): New public variables. * gnu/packages/dlang.scm (ldc)[native-inputs]: Change LLVM and CLANG to LLVM-6.0 and CLANG-6.0. * gnu/packages/gl.scm (mesa)[inputs]: Change from LLVM to LLVM-6. Marius Bakke 2019-02-15gnu: LLVM: Use HTTPS URLs....* gnu/packages/llvm.scm (llvm, clang-runtime-from-llvm, clang-from-llvm, llvm-3.9.1, llvm-3.7, llvm-3.6, llvm-3.5)[source](uri): Use HTTPS. (emacs-clang-format)[description]: Likewise. Marius Bakke 2019-01-31Merge branch 'master' into stagingMarius Bakke 2019-01-29gnu: clang-runtime@3.5: Fix compilation on glibc 2.28....Reported by zimoun <zimon.toutoune@gmail.com>. * gnu/packages/llvm.scm (clang-runtime-3.5): Add "clang-3.5-libsanitizer-ustat-fix.patch". Ludovic Courtès