aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Nikita Karetnikov <nikita@karetnikov.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-base64)
  #:use-module (guix base64)
  #:use-module (rnrs bytevectors)
  #:use-module (srfi srfi-64))

(define (string->base64 str)
  (base64-encode (string->utf8 str)))

;;; Test vectors from <https://tools.ietf.org/rfc/rfc4648.txt>.

(test-begin "base64")

(test-equal "empty string"
  (string->base64 "")
  "")

(test-equal "f"
  (string->base64 "f")
  "Zg==")

(test-equal "fo"
  (string->base64 "fo")
  "Zm8=")

(test-equal "foo"
  (string->base64 "foo")
  "Zm9v")

(test-equal "foob"
  (string->base64 "foob")
  "Zm9vYg==")

(test-equal "fooba"
  (string->base64 "fooba")
  "Zm9vYmE=")

(test-equal "foobar"
  (string->base64 "foobar")
  "Zm9vYmFy")

(test-end "base64")
e Prikler * gnu/packages/gimp.scm (babl): Update to 0.1.110. Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> 2024-08-31gnu: gimp: Import the correct set of modules.Maxim Cournoyer * gnu/packages/gimp.scm (gimp) [arguments] <modules>: Replace %default-gnu-imported-modules with %default-gnu-modules. Change-Id: I6fbe2d8ee94c51673a527487ca6f83a6d17d1dd2 2024-08-31build-systems: gnu: Export %default-gnu-imported-modules and ↵Maxim Cournoyer %default-gnu-modules. 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 2024-08-18gnu: gimp: Update to 2.10.38.Tobias Geerinckx-Rice * gnu/packages/gimp.scm (gimp): Update to 2.10.38. Change-Id: I3288c989a5b70e04ddffc97c38c8f52c032f973e 2024-04-17gnu: babl: Disable failing test on aarch64.Roman Scherer The float-to-8bit test fails on an Apple M1 (aarch64) with the following message: 9/28 float-to-8bit FAIL 0.11s exit status 1 >>> LD_LIBRARY_PATH=/tmp/guix-build-babl-0.1.108.drv-0/build/babl BABL_PATH=/tmp/guix-build-babl-0.1.108.drv-0/build/extensions MALLOC_PERTURB_=94 /tmp/guix-build-babl-0.1.108.drv-0/build/tests/float-to-8bit stdout: float -> u8 1 failed #1[1] got 76 expected 77 stderr: " 0x43b9f0 0x4390b0 1" 1541377792 BablFishPath cost:146.000000 error:0.000000000000 "/tmp/guix-build-babl-0.1.108.drv-0/build/extensions/gggl.so 0: R'G'B'A float to R'G'B'A u8" 0 BablConversionLinear pixels:0 error: 0.000000 * gnu/packages/gimp.scm (babl): Disable failing test on aarch64. Change-Id: Icf2c2a9ea5986149902f741f96d1847d2403c1f4 Signed-off-by: Christopher Baines <mail@cbaines.net> 2024-03-10Merge branch 'master' into gnome-teamLiliana Marie Prikler 2024-03-09gnu: gnome-photos: Build against gegl-0.4.44.Liliana Marie Prikler On gnome-team, this dependency was already accounted for in commit 4beac7d95c84ea3be809030f942b8b71d155129e, but it was forgotten when updating gimp on master. * gnu/packages/gimp.scm (babl-0.1.96, gegl-0.4.44): New variables. * gnu/packages/gnome.scm (gnome-photos)[inputs]: Replace gegl with gegl-0.4.44. 2024-03-09gnu: Add gimp-next.Liliana Marie Prikler * gnu/packages/gimp.scm (gimp-next): New variable. 2024-03-09gnu: gimp: Update to 2.10.36.Liliana Marie Prikler * gnu/packages/gimp.scm (gimp): Update to 2.10.36. 2024-03-09gnu: gegl: Build with introspection.Liliana Marie Prikler * gnu/packages/gimp.scm (gegl)[arguments]: Remove #:configure-flags. 2024-03-09gnu: babl: Build with introspection.Liliana Marie Prikler * gnu/packages/gimp.scm (babl)[#:configure-flags]: Remove “-Denable-gir=false”. 2024-03-09gnu: gegl: Update to 0.4.48.Liliana Marie Prikler * gnu/packages/gimp.scm (gegl): Update to 0.4.48. 2024-03-09gnu: babl: Update to 0.1.108.Liliana Marie Prikler * gnu/packages/gimp.scm (babl): Update to 0.1.108.