From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qMQnFq3NfGTsWAAASxT56A (envelope-from ) for ; Sun, 04 Jun 2023 19:45:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YFBsFa3NfGQhkAAAG6o9tA (envelope-from ) for ; Sun, 04 Jun 2023 19:45:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 15BBE26023 for ; Sun, 4 Jun 2023 19:45:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5rmM-0004sW-2U; Sun, 04 Jun 2023 13:44:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5rlx-0004ol-F7 for guix-patches@gnu.org; Sun, 04 Jun 2023 13:44:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5rlx-0002CN-3d for guix-patches@gnu.org; Sun, 04 Jun 2023 13:44:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5rlw-0000qi-WD for guix-patches@gnu.org; Sun, 04 Jun 2023 13:44:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63894] [PATCH 12/55] gnu: Add perl-test-mockrandom. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 04 Jun 2023 17:44:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63894 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63894@debbugs.gnu.org Received: via spool by 63894-submit@debbugs.gnu.org id=B63894.16859006092624 (code B ref 63894); Sun, 04 Jun 2023 17:44:08 +0000 Received: (at 63894) by debbugs.gnu.org; 4 Jun 2023 17:43:29 +0000 Received: from localhost ([127.0.0.1]:47139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5rlI-0000g9-R4 for submit@debbugs.gnu.org; Sun, 04 Jun 2023 13:43:29 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:60100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5rlC-0000de-Dy for 63894@debbugs.gnu.org; Sun, 04 Jun 2023 13:43:22 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4QZ3xH0ScHz9sT7 for <63894@debbugs.gnu.org>; Sun, 4 Jun 2023 19:43:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1685900595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gbs9dyY56RZN7uuDMob5oBOx0PrLj8WtMNmPSjNOnWA=; b=JgaueGTZRrD8YooliPUS4o6ZUBEzTnAR1AdnDU1aNL86TkjPUd8yjtD0nQuYjUadnkcBsA KS6wKirOtoqGXE1+VjqsVUHc7PwkPOu8wqzw9froY09nWbEx3PHWi1xI/fU3vsQQfami2V YOKOayyJTjreKUwd8UT1UEExYztGs9JOKP5KIJ9Tf2WI3vfXAUttaZgn0ro/eunGaYmXRX wq+ajJ94H359d3tVfFpxoR7XF7xkfTGg2aWsriXnpbSflOlhPbzI0OVQHXu8vRAvO43UQ9 fdvecUqqF2D39kEpMt4NtnBSft/4eBTBiQ/eeBeNeApMvFusdr194MNhyJPf3w== Date: Sun, 4 Jun 2023 17:42:06 +0000 Message-Id: <20230604174249.30044-12-antero@mailbox.org> In-Reply-To: <20230604174249.30044-1-antero@mailbox.org> References: <20230604174249.30044-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: a669abc1a79b0374c5c X-MBO-RS-META: umsxf4gm9m55db65bfz7p7nqyzim9qbp X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685900717; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gbs9dyY56RZN7uuDMob5oBOx0PrLj8WtMNmPSjNOnWA=; b=b5Dfd4pZvP86V4JBW8d9GJkR2qKELepJb5FYiYeIAsZ1WJHz1Qge9bkRG1zrOiwsk2zwuA FxaKm1Nt6b3KqgSXOxuFf5k9+HetTDnSVZa2lh4sOAbT5Rg4hYIOsb8pXu+64UC/WTbYzn cTVAFZjgg+CGa1iWluncVByosnbIZMKotwBEU2Do8RAhF5OyEpHispmF4/pI92oPOpet7L 0Ox6tzo9imzW3NBflalo5wBHp4Mh3NKp7ZCXVfA9U9XSQLA2wK5iAc7X7mewRDYiYyh+IA OLu4DiWgeaw+bcgtyCoRqv7GrIaN5o//Ifxkw2VntnBoT7nA68cREMRrHjY27g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=JgaueGTZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685900717; a=rsa-sha256; cv=none; b=F2T6xnjtG+YMKbjB51G30VowfVDnS8hSIDrnmOnHVATJU4Ma2+FgpHatRiChhIUZvZ0/iO ++30K1slhZg0DCpP0aS+kd4Ff+0AhUQkO4VCGUCOPpfilkrcts7IqunJ9shyG3qxeCp7zY VGPsMnp35B3cznehnGyqPGt2xzR/oM68OC+1Ey7+r14sYPBmjOQ7bH1qprqA5B75CBrhrx SlDogWkht3H1wH6528wyEeVPGI557pJMex4wE2jn5npIuH90WkyEyEh21sb3Ard8wRWBn0 KBz6X0J7me2ewBfez1qSdED/TqptYoPloGJ+n0yIi7AXmrqHw9pr/l1Vlv4Vzg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=JgaueGTZ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 15BBE26023 X-Spam-Score: -1.78 X-TUID: XM6e5ivLIE13 * gnu/packages/perl-check.scm (perl-test-mockrandom): New variable. --- gnu/packages/perl-check.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/perl-check.scm b/gnu/packages/perl-check.scm index 156562eaa3..5bc04a1cdd 100644 --- a/gnu/packages/perl-check.scm +++ b/gnu/packages/perl-check.scm @@ -939,6 +939,33 @@ (define-public perl-test-mockobject the behavior, just the input and the output.") (license perl-license))) +(define-public perl-test-mockrandom + (package + (name "perl-test-mockrandom") + (version "1.01") + (source (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/D/DA/DAGOLDEN/Test-MockRandom-" + version ".tar.gz")) + (sha256 + (base32 + "1q6c474ya9najgj4wzgj0waj56ykrj3fxhgvkb1ylpgwhh6r6516")))) + (build-system perl-build-system) + (home-page "https://metacpan.org/release/Test-MockRandom") + (synopsis + "Replaces random number generation with non-random number generation") + (description + "This module can test routines that manipulate random numbers by +providing a known output from @code{rand}. Given a list of seeds with +@code{srand}, it will return each in turn. After seeded random numbers are +exhausted, it will always return 0. Seed numbers must be of a form that +meets the expected output from @code{rand} as called with no arguments: they +must be between 0 (inclusive) and 1 (exclusive). In order to facilitate +generating and testing a nearly-one number, this module exports the function +@code{oneish}, which returns a number just fractionally less than one.") + (license asl2.0))) + (define-public perl-test-mocktime (package (name "perl-test-mocktime") -- 2.39.2