From patchwork Mon Oct 21 17:42:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 15801 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 4555217603; Mon, 21 Oct 2019 18:43:10 +0100 (BST) 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,UNPARSEABLE_RELAY 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 0AB40175FB for ; Mon, 21 Oct 2019 18:43:10 +0100 (BST) Received: from localhost ([::1]:46486 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMbi1-0004BB-EZ for patchwork@mira.cbaines.net; Mon, 21 Oct 2019 13:43:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48388) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMbhv-0004B4-S6 for guix-patches@gnu.org; Mon, 21 Oct 2019 13:43:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMbhu-0004Yg-Pm for guix-patches@gnu.org; Mon, 21 Oct 2019 13:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48977) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMbhu-0004Ya-Me for guix-patches@gnu.org; Mon, 21 Oct 2019 13:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMbhu-0000OK-IR for guix-patches@gnu.org; Mon, 21 Oct 2019 13:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#37855] [PATCH] gnu: guix-data-service: Enable build time tests. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Oct 2019 17:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37855 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 37855@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15716797521464 (code B ref -1); Mon, 21 Oct 2019 17:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2019 17:42:32 +0000 Received: from localhost ([127.0.0.1]:57798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMbhP-0000NY-VA for submit@debbugs.gnu.org; Mon, 21 Oct 2019 13:42:32 -0400 Received: from lists.gnu.org ([209.51.188.17]:38909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iMbhL-0000NK-PI for submit@debbugs.gnu.org; Mon, 21 Oct 2019 13:42:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48240) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMbhK-0003dK-JT for guix-patches@gnu.org; Mon, 21 Oct 2019 13:42:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMbhJ-00042E-FD for guix-patches@gnu.org; Mon, 21 Oct 2019 13:42:26 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:44860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iMbhJ-00041I-A2 for guix-patches@gnu.org; Mon, 21 Oct 2019 13:42:25 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 14216175F9 for ; Mon, 21 Oct 2019 18:42:24 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 5054e110 for ; Mon, 21 Oct 2019 17:42:23 +0000 (UTC) From: Christopher Baines Date: Mon, 21 Oct 2019 18:42:23 +0100 Message-Id: <20191021174223.28196-1-mail@cbaines.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 Previously the tests were not run, as PostgreSQL wasn't running at build time. Now there's a new target, check-with-tmp-database that uses ephemeralpg to run the tests without relying on an externally managed PostgreSQL service. * gnu/packages/web.scm (guix-data-service)[arguments]: Remove #:tests? #f, and set #:test-target to "check-with-tmp-database". [native-inputs]: Add ephemeralpg. --- gnu/packages/web.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 5487eb2e71..a91059f73d 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -4044,11 +4044,11 @@ CDF, Atom 0.3, and Atom 1.0 feeds.") "0awfvps7k9bpg3gpgc93y401g7pjabx7mr9960vigad8vddhixqi")))) (build-system gnu-build-system) (arguments - '(#:tests? #f ; TODO Tests require PostgreSQL - #:modules ((guix build utils) + '(#:modules ((guix build utils) (guix build gnu-build-system) (ice-9 rdelim) (ice-9 popen)) + #:test-target "check-with-tmp-database" #:phases (modify-phases %standard-phases (add-after 'set-paths 'set-GUIX_ENVIRONMENT @@ -4106,6 +4106,7 @@ CDF, Atom 0.3, and Atom 1.0 feeds.") `(("guile" ,guile-2.2) ("autoconf" ,autoconf) ("automake" ,automake) + ("ephemeralpg" ,ephemeralpg) ("emacs-with-modules" ,(directory-union "emacs-union" (list emacs-no-x