From patchwork Fri Jan 3 01:34:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Milosavljevic X-Patchwork-Id: 19542 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7A0AB179E5; Fri, 3 Jan 2020 01:35:33 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 39813179E3 for ; Fri, 3 Jan 2020 01:35:33 +0000 (GMT) Received: from localhost ([::1]:47668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inBsC-0001rR-Pi for patchwork@mira.cbaines.net; Thu, 02 Jan 2020 20:35:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50975) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inBrk-0001cA-ME for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inBrj-0007Gf-Hu for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inBrj-0007GZ-Ee for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inBrj-0008F3-Bz for guix-patches@gnu.org; Thu, 02 Jan 2020 20:35:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38885] [WIP 3/4] gnu: Add gotestsum. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jan 2020 01:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 38885@debbugs.gnu.org Cc: Danny Milosavljevic Received: via spool by 38885-submit@debbugs.gnu.org id=B38885.157801528331572 (code B ref 38885); Fri, 03 Jan 2020 01:35:03 +0000 Received: (at 38885) by debbugs.gnu.org; 3 Jan 2020 01:34:43 +0000 Received: from localhost ([127.0.0.1]:40257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inBrP-0008D5-AR for submit@debbugs.gnu.org; Thu, 02 Jan 2020 20:34:43 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:56674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inBrO-0008Co-51 for 38885@debbugs.gnu.org; Thu, 02 Jan 2020 20:34:42 -0500 Received: from dayas.lan (80-110-118-191.cgn.dynamic.surfer.at [80.110.118.191]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 6845E336536F; Fri, 3 Jan 2020 02:34:41 +0100 (CET) From: Danny Milosavljevic Date: Fri, 3 Jan 2020 02:34:32 +0100 Message-Id: <20200103013433.14866-3-dannym@scratchpost.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200103013433.14866-1-dannym@scratchpost.org> References: <20200103013303.13336-1-dannym@scratchpost.org> <20200103013433.14866-1-dannym@scratchpost.org> MIME-Version: 1.0 Tags: patch X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (gotestsum): New variable. --- gnu/packages/golang.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 43102d9c1e..5a950be6bb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3143,3 +3143,40 @@ are semantically equal in Go (for writing tests).") test when a comparison fails.") (home-page "https://github.com/gotestyourself/gotest.tools") (license license:asl2.0))) + +(define-public gotestsum + (package + (name "gotestsum") + (version "0.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gotestyourself/gotestsum.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0y71qr3ss3hgc8c7nmvpwk946xy1jc5d8whsv6y77wb24ncla7n0")))) + (build-system go-build-system) + (arguments + '(#:tests? #f ; Tests fail (because of go-gotest-tools-assert). + #:import-path "gotest.tools/gotestsum")) + (native-inputs + `(("go-github-com-fatih-color" ,go-github-com-fatih-color) + ("go-golang.org-x-sync-errgroup" ,go-golang.org-x-sync-errgroup) + ("go-github-com-pkg-errors" ,go-github-com-pkg-errors) + ("go-github-com-sirupsen-logrus" + ,go-github-com-sirupsen-logrus) + ("go-github-com-spf13-pflag" ,go-github-com-spf13-pflag) + ("go-github-com-jonboulle-clockwork" + ,go-github-com-jonboulle-clockwork) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-gotest-tools-assert" ,go-gotest-tools-assert) + ("go-github-com-google-go-cmp-cmp" + ,go-github-com-google-go-cmp-cmp))) + (synopsis "Go test runner with output optimized for humans") + (description "This package provides a @code{go test} runner with output +optimized for humans, JUnit XML for CI integration, and a summary of the +test results.") + (home-page "https://github.com/gotestyourself/gotestsum") + (license license:asl2.0)))