From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ePG4I7mkYmJMYgAAbAwnHQ (envelope-from ) for ; Fri, 22 Apr 2022 14:51:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GOjRI7mkYmJd5gAAauVa8A (envelope-from ) for ; Fri, 22 Apr 2022 14:51:05 +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 37E25167CF for ; Fri, 22 Apr 2022 14:51:05 +0200 (CEST) Received: from localhost ([::1]:52398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhska-0004Nu-19 for larch@yhetil.org; Fri, 22 Apr 2022 08:51:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59042) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhrrO-00023g-Tv for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhrrO-0005JU-L4 for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nhrrO-0007Z9-KB for guix-patches@gnu.org; Fri, 22 Apr 2022 07:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54869] [PATCH v2 2/7] gnu: fenics: Honor #:tests? flag. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Apr 2022 11:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54869 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54869@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 54869-submit@debbugs.gnu.org id=B54869.165062840528947 (code B ref 54869); Fri, 22 Apr 2022 11:54:02 +0000 Received: (at 54869) by debbugs.gnu.org; 22 Apr 2022 11:53:25 +0000 Received: from localhost ([127.0.0.1]:51776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhrqn-0007Wp-6G for submit@debbugs.gnu.org; Fri, 22 Apr 2022 07:53:25 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]:12841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nhrqk-0007W9-41 for 54869@debbugs.gnu.org; Fri, 22 Apr 2022 07:53:22 -0400 Date: Fri, 22 Apr 2022 11:53:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1650628396; bh=iGhOR2/z0QqlI2pfplTQdsRDHas+rMjPxKEdw7RmeYM=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=VIdKm8wR9K3S+x+bTB9BowA0i78b5/Jql/G+5x1+t9RvIvwiNQvUGDUAeAK1gLBhR KKKmVr5Xac1TZRIJZeGIx6q7Uu2Hsk3wSYfd2frb00vL+nEthntPpa/FQA+XIddCMe Kqgd3ZLe4P99nvyFiWy5H5b3DiNdvHsYtFmDXaNk+RAfhx61ARriANDoCGMmwRuMsz iE1mAkv4uoKG7fiea4FUsDArxi+Ld1lSmb3ZFJqN2TK8dTV5GprGvxANTwxhbsauTG q7Zr6h2V3AKKnuLQJpqN0H0CJvTBtE05LhWAMIZZWKyivMvzDyZF4AAeeK640f9+Kx UPDfy5Jaj3AJA== From: "Paul A. Patience" Message-ID: <20220422115258.63649-3-paul@apatience.com> In-Reply-To: <20220422115258.63649-1-paul@apatience.com> References: <20220422115258.63649-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1650631865; 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=iGhOR2/z0QqlI2pfplTQdsRDHas+rMjPxKEdw7RmeYM=; b=IPZC3DOOdDJ51xoEZjZWBGWcIc5LqBr1P+58noFJ2bmn5pvo393CtoLgVFNJmlvZ5yCBQn +DieyWE3V5HqdBxoT1jl9Wr5UL0yJBSfFwIgY+W9Z1qNm0CvuPXqBwMattPoRkW5lFI0Al JX4httPbkWgVbUuf3+B6TdVi4/FjZEDi5UHPouFReh/9Rv88pN2zEpZglxb50r5o2lEuOK WlNxB+Q7p/9PIyA9pmoW4wbIurLNh2K1HlVPP0dYnZNx12iltqc6QwX4Tug61U4+UFGGWo erM5/IpwzLIo5yta5yMxTUlHWgi7zYKH1bdv7XhMp5WbGKYOfcBOIn4ROAmi3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650631865; a=rsa-sha256; cv=none; b=aVe2EDpi1plAImW+009I/maurI1rNQO90UCgpXg3E9+HeHGvAyU4+OeddiriwJpFVhHXXN PN/W6Pg8AWtVm6LLBZ8oI2vU9IUUbXjfj2AfmDn1iKXmAWpS5isdXLgZnvL8MvYDibOjTi qYtdI3NJ2EpX7QHYXa5OflHJyJXWXvq7dsPQ/eER23i7eKvMdK6rr9KlV9/uOwFEvba8qH scwK9XszPM41KhIQpv2oBJ6pJeDlg7dPoIgHirp2z+6+Y1EwON3davUub56zsLd/dz9AFw VhC0H3+AFjzz/U40c3ZCavQR+8XQE3k6bAQvE4uO1qtmpkArm7f3+y7L3ZVg9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=VIdKm8wR; 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: 3.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=VIdKm8wR; 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: 37E25167CF X-Spam-Score: 3.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: O+jGj2GJaH6r * 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