From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YIQRAKjUVGJ4qgAAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 03:23:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2JFxOKfUVGIAqQAAauVa8A (envelope-from ) for ; Tue, 12 Apr 2022 03:23:51 +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 993A511043 for ; Tue, 12 Apr 2022 03:23:51 +0200 (CEST) Received: from localhost ([::1]:45026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne5G2-00060z-RZ for larch@yhetil.org; Mon, 11 Apr 2022 21:23:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5FI-0005OP-82 for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ne5FH-0001et-W7 for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ne5FH-0003WR-SJ for guix-patches@gnu.org; Mon, 11 Apr 2022 21:23:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54871] [PATCH 2/5] gnu: fenics: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 12 Apr 2022 01:23:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54871 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54871@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164972653613389 (code B ref -1); Tue, 12 Apr 2022 01:23:03 +0000 Received: (at submit) by debbugs.gnu.org; 12 Apr 2022 01:22:16 +0000 Received: from localhost ([127.0.0.1]:46560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5EW-0003Ts-00 for submit@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:58352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ne5ET-0003Tf-LJ for submit@debbugs.gnu.org; Mon, 11 Apr 2022 21:22:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5ET-0003yJ-GW for guix-patches@gnu.org; Mon, 11 Apr 2022 21:22:13 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:52797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne5ER-0001We-TG for guix-patches@gnu.org; Mon, 11 Apr 2022 21:22:13 -0400 Date: Tue, 12 Apr 2022 01:22:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1649726527; bh=ve+xmzDstckFr1lR3VzRtQZ3PFsgmkUrVeUUn9x0FOg=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=Ru2I4SuAft/ODvgOSb9bpn0TuO6Xlgncieya3plqYwHJWYOmONSFTu8XkltQF34fL 1+CJ9xbuPacNaK8OpAITsJCuAUc8ZMFoiuFyz9vq4OTUg5nux/i/nXX4Kzveevsc2i uh5nsqjY/ZotI38u8IMwm3rHx6hKRQ6G6xCTebG5b7JKh8JtdJtuIOBj1X6xs85Hgz 1+9qAokSRIrgu/Y25G2rz2/b6V6jZsFqwi4WIkHxd2rwFw2tcP+u2zt1rY/bTM+/gf 9Q6N0ZYrOXK5WFNBKGpzxx44AgvPdrjMpexZEWVs/CkUrfHHdt6ou6TjY2lkQrBRe3 OXcTyd+srKeYA== From: "Paul A. Patience" Message-ID: <20220412012143.30573-3-paul@apatience.com> In-Reply-To: <20220412012143.30573-1-paul@apatience.com> References: <20220412012143.30573-1-paul@apatience.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=188.165.51.139; envelope-from=paul@apatience.com; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: "Paul A. Patience" Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649726631; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=ve+xmzDstckFr1lR3VzRtQZ3PFsgmkUrVeUUn9x0FOg=; b=cP0fhdjxmngbKXSHErHllwypIsLOnL6Hv8G6XmbUFeEL+algKh8BDX0otwy2wF4KVb06O5 85E5cRfFrvRctF7XJdgRVUe9kQy3tgHA/xbGMPm5d6q0iie1BKj9gPml0IRKT5iTcKzo0P Rf4MKbUK+hWg96xYYxGFp5HoLwmM+jb4Ag1YjeLJr46prMRzrdxc0CN7kOjoOhcEE5k4O7 rKxD5fgimKrviEbyJpAtvoAVpUqN7A1IH8lj48ATNpUGyjmoiTcvpV7MoGz0n/eUQxSBKs MN2kfcWzSvrx5uSlL5kdzg1sHTsf8Tvhie0FuM/YB+OCnjLxApsdAiR55a4z8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649726631; a=rsa-sha256; cv=none; b=RRIrI2P3cjxsTEUrX4sIVN2ontDJx06sVkrSxgi2ZIdrixoj0PN1U1XWKQKRP6lOymwr5z 8IL52OU3kvQpY+Oa1pmUkmBIcoqgi35+ufKpndbt9Ns/w3ho03YrVL+S9Ne3YVy8G3jAxi W9okxos/qE1nqyqgtfjIOIJW8yvXLwMC+sve4gGb7iCo5Wvl5H8FnIvg1pv+qPMvJc21IB P7V/LBeKTRKszz0PcPMRKnO+E4NqKYL5t1ZY6YnP6W6bmKa8PzrS5Jfrqya7VfYGz+JhiP RLIX3PyUaaEYUBRlC0Y+xw8g6Yx2JNol6He9DfYuFfjI29q6kY0SyVl5iLrdBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=Ru2I4SuA; dmarc=none; 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-Spam-Score: 2.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=Ru2I4SuA; dmarc=none; 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: 993A511043 X-Spam-Score: 2.73 X-Migadu-Scanner: scn0.migadu.com X-TUID: MJ2mVtblnxYC * gnu/packages/simulation.scm (fenics)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/simulation.scm | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index aebb6be15e..3260841608 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm @@ -660,17 +660,18 @@ (define-public fenics ;; Restrict OpenBLAS to MPI-only in preference to MPI+OpenMP. (setenv "OPENBLAS_NUM_THREADS" "1"))) (replace 'check - (lambda _ - (with-directory-excursion "test" - ;; Note: The test test_snes_set_from_options() in the file - ;; unit/nls/test_PETScSNES_solver.py fails and is ignored. - ;; Limit the number of jobs to 3 as 500 MiB of memory is us= ed - ;; per process. - (invoke "mpirun" "-np" (number->string - (min 3 (parallel-job-count))) - "python" "-B" "-m" - "pytest" "unit" "--ignore" - "unit/nls/test_PETScSNES_solver.py")))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + ;; Note: The test test_snes_set_from_options() in the fil= e + ;; unit/nls/test_PETScSNES_solver.py fails and is ignored= . + ;; Limit the number of jobs to 3 as 500 MiB of memory is = used + ;; per process. + (invoke "mpirun" "-np" (number->string + (min 3 (parallel-job-count))) + "python" "-B" "-m" + "pytest" "unit" "--ignore" + "unit/nls/test_PETScSNES_solver.py"))))) (add-after 'install 'install-demo-files (lambda* (#:key outputs #:allow-other-keys) (let* ((demos (string-append -- 2.35.1