;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020 Simon South ;;; ;;; 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 (tests services file-sharing) #:use-module (gnu services file-sharing) #:use-module (srfi srfi-64)) ;;; Tests for the (gnu services file-sharing) module. (test-begin "file-sharing") ;;; ;;; Transmission Daemon. ;;; (define %transmission-salt-length 8) (define (valid-transmission-salt? salt) (and (string? salt) (eqv? (string-length salt) %transmission-salt-length))) (test-assert "transmission-random-salt" (valid-transmission-salt? (transmission-random-salt))) (test-equal "transmission-password-hash, typical values" "{ef6fba106cdef3aac64d1410090cae353cbecde53ceVVQO2" (transmission-password-hash "transmission" "3ceVVQO2")) (test-equal "transmission-password-hash, empty password" "{820f816515d8969d058d07a1de018650619ee7ffCp.I5SWg" (transmission-password-hash "" "Cp.I5SWg")) (test-error "transmission-password-hash, salt value too short" (transmission-password-hash "transmission" (make-string (- %transmission-salt-length 1) #\a))) (test-error "transmission-password-hash, salt value too long" (transmission-password-hash "transmission" (make-string (+ %transmission-salt-length 1) #\a))) (test-end "file-sharing")
AgeCommit message (Expand)Author
2024-08-31gnu: enchant: Update to 2.6.9....* gnu/packages/enchant.scm (enchant): Update to 2.6.9. Change-Id: I7d5f229b0308e7a09101df0b8af344e03f2bbdbb Nicolas Goaziou
2024-08-31gnu: enchant: Add Nuspell support....* gnu/packages/enchant.scm (enchant)[inputs]: Add NUSPELL. Change-Id: I60d70e6b6e4952722559848f715fc68dcf3e11f4 Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Nicolas Goaziou
2024-08-31gnu: enchant: Improve package style....* gnu/packages/enchant.scm (enchant)[arguments]: Use G-expressions. [native-inputs]: Drop input labels. [description]: Be more informative and less technical. Change-Id: I908fbbfcdc9f21beb1d6e05eec2dbc154b429831 Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Nicolas Goaziou
2024-08-31gnu: enchant: Update to 2.6.8....* gnu/packages/enchant.scm (enchant): Update to 2.6.8. [native-inputs]: Add GROFF. Change-Id: I8c7d7e2b9124a55401c6623fd76eacc0878ad6e6 Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Nicolas Goaziou
2024-03-25gnu: nuspell: Add search path specification for DICPATH....* gnu/packages/enchant.scm (nuspell)[native-search-path]: Add DICPATH. This change is required to let Nuspell detect Hunspell dictionaries. Change-Id: I731752142afcae1fc2b91c01fb9dbe914d33244f Nicolas Goaziou
2024-03-25gnu: nuspell: Remove unnecessary inputs....* gnu/packages/enchant.scm (nuspell)[native-inputs]: Remove GIT-MINIMAL and PERL. [inputs]: remove BOOST. Change-Id: I1847e4c68a5c40c5ebae75a0bbe651384250d8a7 Nicolas Goaziou
2024-03-25gnu: nuspell: Update to 5.1.4....* gnu/packages/enchant.scm (nuspell): Update to 5.1.4. [native-inputs]: Use CATCH2-3. Remove comment about RONN, which is no longer used. Change-Id: I62fa0568dacde29bef5065b2ee23c060373727cf Nicolas Goaziou