From unknown Sat Jun 14 05:31:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33738] Add emacs-buttercup Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Dec 2018 07:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33738 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 33738@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154477093112912 (code B ref -1); Fri, 14 Dec 2018 07:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2018 07:02:11 +0000 Received: from localhost ([127.0.0.1]:47224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXhUA-0003MB-M1 for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXhU8-0003Lw-SR for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXhU1-0008Ts-C4 for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_WEB autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXhU1-0008Tm-7V for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXhTz-00050i-VY for guix-patches@gnu.org; Fri, 14 Dec 2018 02:02:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXhTu-0008Qc-3J for guix-patches@gnu.org; Fri, 14 Dec 2018 02:01:59 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:54380) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXhTt-0008Ob-Fe for guix-patches@gnu.org; Fri, 14 Dec 2018 02:01:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7EeAUN2KY2qY5/3gfuyqauWgbk3n9EvJxpQIHEd3bzw=; b=bjM7zwVSL8fyCxCTyxWmgjWhYe yXKdlp010oIu55Q/+LrSZKq9vWOyVWsV7KpamCqT+amQQW2+2XRmiCVzp2afK1f532KKGIN7spsWa t78+5R1L7U2zv7qp67JAIGIdD5R6sB2pjNEioSvkIDlI+sI2K8w9ae9+we5hGmqUfoqI=; Received: from [103.5.134.173] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gXhTn-0006UK-2r for guix-patches@gnu.org; Fri, 14 Dec 2018 12:31:48 +0530 From: Arun Isaac Date: Fri, 14 Dec 2018 12:31:41 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) --=-=-= Content-Type: text/plain This patchset adds emacs-buttercup, and enables tests for emacs-circe and emacs-tracking, two packages that require emacs-buttercup to run tests. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-buttercup.patch >From c3640218f58363c645afec59d402cd4b73a9a448 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 00:47:01 +0530 Subject: [PATCH 1/3] gnu: Add emacs-buttercup. * gnu/packages/emacs.scm (emacs-buttercup): New variable. --- gnu/packages/emacs.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 358f32cab..74a9bb79d 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -12757,3 +12757,36 @@ interactive session association with the current contexts (project, directory, buffers). While sesman can be used to manage arbitrary sessions, it primary targets the Emacs based IDEs (CIDER, ESS, Geiser, Robe, SLIME etc.)") (license license:gpl3+))) + +(define-public emacs-buttercup + (package + (name "emacs-buttercup") + (version "1.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jorgenschaefer/emacs-buttercup.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0dckgcyzsav6ld78bcyrrygy1cz1jvqgav6vy8f6klpmk3r8xrl1")))) + (build-system emacs-build-system) + (arguments + `(#:tests? #t + #:test-command '("make" "test") + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-bin + (lambda* (#:key outputs #:allow-other-keys) + (install-file "bin/buttercup" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://github.com/jorgenschaefer/emacs-buttercup") + (synopsis "Behavior driven emacs lisp testing framework") + (description "Buttercup is a behavior-driven development framework for +testing Emacs Lisp code. It allows to group related tests so they can share +common set-up and tear-down code, and allows the programmer to \"spy\" on +functions to ensure they are called with the right arguments during testing.") + (license license:gpl3+))) -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-emacs-circe-Enable-tests.patch >From 75553dd0bd5e7e0549aa003f006b719f5502b1cb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 00:59:15 +0530 Subject: [PATCH 2/3] gnu: emacs-circe: Enable tests. * gnu/packages/emacs.scm (emacs-circe)[arguments]: Enable tests. Set test-command. Add set-home phase. [native-inputs]: Add emacs-buttercup. --- gnu/packages/emacs.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 74a9bb79d..0575338ee 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7835,6 +7835,19 @@ value of the access token.") (base32 "10gi14kwxd81blddpvqh95lgmpbfgp0m955naxix3bs3r6a75n4s")))) (build-system emacs-build-system) + (arguments + `(#:tests? #t + #:test-command '("buttercup" "-L" ".") + #:phases + (modify-phases %standard-phases + ;; The HOME environment variable should be set to an existing + ;; directory for the tests to succeed. + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp") + #t))))) + (native-inputs + `(("emacs-buttercup" ,emacs-buttercup))) ;; In order to securely connect to an IRC server using TLS, Circe requires ;; the GnuTLS binary. (propagated-inputs -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0003-gnu-emacs-tracking-Enable-tests.patch >From e17724b3e59a7784aac391e5be7e450ffcf2a67d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 01:00:26 +0530 Subject: [PATCH 3/3] gnu: emacs-tracking: Enable tests. * gnu/packages/emacs.scm (emacs-tracking)[arguments]: Append to arguments inherited from emacs-circe, instead of overwriting them. --- gnu/packages/emacs.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 0575338ee..df56612c3 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7868,7 +7868,7 @@ want to use it.") ;; "tracking.el" is a library extracted from Circe package. It requires ;; "shorten.el". `(#:include '("^shorten.el$" "^tracking.el$") - #:tests? #f)) ;tests require buttercup + ,@(package-arguments emacs-circe))) (home-page "https://github.com/jorgenschaefer/circe/wiki/Tracking") (synopsis "Buffer tracking library") (description "@code{tracking.el} provides a way for different modes to -- 2.19.2 --=-=-=-- From unknown Sat Jun 14 05:31:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#33738] Add emacs-buttercup Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Dec 2018 15:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33738 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Arun Isaac Cc: 33738@debbugs.gnu.org Received: via spool by 33738-submit@debbugs.gnu.org id=B33738.154497298421452 (code B ref 33738); Sun, 16 Dec 2018 15:10:03 +0000 Received: (at 33738) by debbugs.gnu.org; 16 Dec 2018 15:09:44 +0000 Received: from localhost ([127.0.0.1]:50485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYY35-0005Zw-Rx for submit@debbugs.gnu.org; Sun, 16 Dec 2018 10:09:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYY35-0005Zg-8M for 33738@debbugs.gnu.org; Sun, 16 Dec 2018 10:09:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYY2z-00051h-F0 for 33738@debbugs.gnu.org; Sun, 16 Dec 2018 10:09:38 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYY2z-00051b-B9; Sun, 16 Dec 2018 10:09:37 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59704 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gYY2y-0003k3-WE; Sun, 16 Dec 2018 10:09:37 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sun, 16 Dec 2018 16:09:35 +0100 In-Reply-To: (Arun Isaac's message of "Fri, 14 Dec 2018 12:31:41 +0530") Message-ID: <87mup5v780.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Hello Arun, Arun Isaac skribis: > This patchset adds emacs-buttercup, and enables tests for emacs-circe > and emacs-tracking, two packages that require emacs-buttercup to run > tests. All 3 patches LGTM, thank you! Ludo=E2=80=99. From unknown Sat Jun 14 05:31:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Arun Isaac Subject: bug#33738: closed (Re: [bug#33738] Add emacs-buttercup) Message-ID: References: X-Gnu-PR-Message: they-closed 33738 X-Gnu-PR-Package: guix-patches Reply-To: 33738@debbugs.gnu.org Date: Sun, 16 Dec 2018 18:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1544984942-7929-1" This is a multi-part message in MIME format... ------------=_1544984942-7929-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #33738: Add emacs-buttercup which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 33738@debbugs.gnu.org. --=20 33738: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33738 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1544984942-7929-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 33738-done) by debbugs.gnu.org; 16 Dec 2018 18:28:52 +0000 Received: from localhost ([127.0.0.1]:50554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYb9o-00023Y-Kv for submit@debbugs.gnu.org; Sun, 16 Dec 2018 13:28:52 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:51556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYb9l-00023O-VA for 33738-done@debbugs.gnu.org; Sun, 16 Dec 2018 13:28:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BY7L/2SeNlNgpW7QyV6kZblThN5yKjubvEVedwUbepM=; b=ikZVimXTWEQaKHVCeoYIH7tVZ x9n92t8RgQ0pJNaUAonrkCH0T3gtGColrmXqdB+V1++KaGzQ9jl9/y0Ti/Rc4w/fGeAN0j1ywtWqT iBs6Xa9xwGxdsMxJ3Vrf4XmUgjWteEFf1U1tmsNi7bTvT+eZ5bDdmUfHjjAY1QGmxGxYg=; Received: from [103.5.134.173] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gYb9h-0005w6-G4; Sun, 16 Dec 2018 23:58:46 +0530 From: Arun Isaac To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#33738] Add emacs-buttercup In-Reply-To: <87mup5v780.fsf@gnu.org> References: <87mup5v780.fsf@gnu.org> Date: Sun, 16 Dec 2018 23:58:37 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > All 3 patches LGTM, thank you! Pushed to master, thanks for the review! Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [103.5.134.173 listed in dnsbl.sorbs.net] X-Debbugs-Envelope-To: 33738-done Cc: 33738-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) > All 3 patches LGTM, thank you! Pushed to master, thanks for the review! ------------=_1544984942-7929-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Dec 2018 07:02:11 +0000 Received: from localhost ([127.0.0.1]:47224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXhUA-0003MB-M1 for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gXhU8-0003Lw-SR for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXhU1-0008Ts-C4 for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=5.0 tests=BAYES_50,RCVD_IN_SORBS_WEB autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXhU1-0008Tm-7V for submit@debbugs.gnu.org; Fri, 14 Dec 2018 02:02:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXhTz-00050i-VY for guix-patches@gnu.org; Fri, 14 Dec 2018 02:02:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXhTu-0008Qc-3J for guix-patches@gnu.org; Fri, 14 Dec 2018 02:01:59 -0500 Received: from vultr.systemreboot.net ([45.77.148.100]:54380) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXhTt-0008Ob-Fe for guix-patches@gnu.org; Fri, 14 Dec 2018 02:01:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7EeAUN2KY2qY5/3gfuyqauWgbk3n9EvJxpQIHEd3bzw=; b=bjM7zwVSL8fyCxCTyxWmgjWhYe yXKdlp010oIu55Q/+LrSZKq9vWOyVWsV7KpamCqT+amQQW2+2XRmiCVzp2afK1f532KKGIN7spsWa t78+5R1L7U2zv7qp67JAIGIdD5R6sB2pjNEioSvkIDlI+sI2K8w9ae9+we5hGmqUfoqI=; Received: from [103.5.134.173] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gXhTn-0006UK-2r for guix-patches@gnu.org; Fri, 14 Dec 2018 12:31:48 +0530 From: Arun Isaac To: guix-patches@gnu.org Subject: Add emacs-buttercup Date: Fri, 14 Dec 2018 12:31:41 +0530 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) --=-=-= Content-Type: text/plain This patchset adds emacs-buttercup, and enables tests for emacs-circe and emacs-tracking, two packages that require emacs-buttercup to run tests. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-emacs-buttercup.patch >From c3640218f58363c645afec59d402cd4b73a9a448 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 00:47:01 +0530 Subject: [PATCH 1/3] gnu: Add emacs-buttercup. * gnu/packages/emacs.scm (emacs-buttercup): New variable. --- gnu/packages/emacs.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 358f32cab..74a9bb79d 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -12757,3 +12757,36 @@ interactive session association with the current contexts (project, directory, buffers). While sesman can be used to manage arbitrary sessions, it primary targets the Emacs based IDEs (CIDER, ESS, Geiser, Robe, SLIME etc.)") (license license:gpl3+))) + +(define-public emacs-buttercup + (package + (name "emacs-buttercup") + (version "1.16") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jorgenschaefer/emacs-buttercup.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0dckgcyzsav6ld78bcyrrygy1cz1jvqgav6vy8f6klpmk3r8xrl1")))) + (build-system emacs-build-system) + (arguments + `(#:tests? #t + #:test-command '("make" "test") + #:phases + (modify-phases %standard-phases + (add-after 'install 'install-bin + (lambda* (#:key outputs #:allow-other-keys) + (install-file "bin/buttercup" + (string-append (assoc-ref outputs "out") "/bin")) + #t))))) + (home-page "https://github.com/jorgenschaefer/emacs-buttercup") + (synopsis "Behavior driven emacs lisp testing framework") + (description "Buttercup is a behavior-driven development framework for +testing Emacs Lisp code. It allows to group related tests so they can share +common set-up and tear-down code, and allows the programmer to \"spy\" on +functions to ensure they are called with the right arguments during testing.") + (license license:gpl3+))) -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0002-gnu-emacs-circe-Enable-tests.patch >From 75553dd0bd5e7e0549aa003f006b719f5502b1cb Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 00:59:15 +0530 Subject: [PATCH 2/3] gnu: emacs-circe: Enable tests. * gnu/packages/emacs.scm (emacs-circe)[arguments]: Enable tests. Set test-command. Add set-home phase. [native-inputs]: Add emacs-buttercup. --- gnu/packages/emacs.scm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 74a9bb79d..0575338ee 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7835,6 +7835,19 @@ value of the access token.") (base32 "10gi14kwxd81blddpvqh95lgmpbfgp0m955naxix3bs3r6a75n4s")))) (build-system emacs-build-system) + (arguments + `(#:tests? #t + #:test-command '("buttercup" "-L" ".") + #:phases + (modify-phases %standard-phases + ;; The HOME environment variable should be set to an existing + ;; directory for the tests to succeed. + (add-before 'check 'set-home + (lambda _ + (setenv "HOME" "/tmp") + #t))))) + (native-inputs + `(("emacs-buttercup" ,emacs-buttercup))) ;; In order to securely connect to an IRC server using TLS, Circe requires ;; the GnuTLS binary. (propagated-inputs -- 2.19.2 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0003-gnu-emacs-tracking-Enable-tests.patch >From e17724b3e59a7784aac391e5be7e450ffcf2a67d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 12 Dec 2018 01:00:26 +0530 Subject: [PATCH 3/3] gnu: emacs-tracking: Enable tests. * gnu/packages/emacs.scm (emacs-tracking)[arguments]: Append to arguments inherited from emacs-circe, instead of overwriting them. --- gnu/packages/emacs.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index 0575338ee..df56612c3 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -7868,7 +7868,7 @@ want to use it.") ;; "tracking.el" is a library extracted from Circe package. It requires ;; "shorten.el". `(#:include '("^shorten.el$" "^tracking.el$") - #:tests? #f)) ;tests require buttercup + ,@(package-arguments emacs-circe))) (home-page "https://github.com/jorgenschaefer/circe/wiki/Tracking") (synopsis "Buffer tracking library") (description "@code{tracking.el} provides a way for different modes to -- 2.19.2 --=-=-=-- ------------=_1544984942-7929-1--