From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B1FB3421166 for ; Wed, 16 Nov 2011 06:34:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9ikctf1fqzkT for ; Wed, 16 Nov 2011 06:34:48 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id 77473429E4D for ; Wed, 16 Nov 2011 06:34:25 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 2C1476A0026; Wed, 16 Nov 2011 15:34:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1321454064; bh=/ZNWro7qATxsymefFieqg3IY7a/zyDAXYr+3igzvYyw=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References; b=anpfOY/Czy0/jAwPi1OkTPCupxUMt/A2Lfidgs/ll/r9UDLtKIiw8gTxGVIQ25r73 RLFGvjI7kiZy4r52hYuPyhi9tCWbn1NrTE7LvMKLFnuizIO5YascRv+wSHWmJ8wqmC 2cDUohk26aleaq1So8F5PX+wtHMg+Z5hwSEpxDD8= From: Thomas Jost To: notmuch@notmuchmail.org Subject: [PATCH 0/6] Rebase of Pieter's "set test prereqs" Date: Wed, 16 Nov 2011 15:33:49 +0100 Message-Id: <1321454035-22023-1-git-send-email-schnouki@schnouki.net> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1320176954-4897-1-git-send-email-pieter@praet.org> References: <1320176954-4897-1-git-send-email-pieter@praet.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Nov 2011 14:34:50 -0000 Hello list, This is another rebased version of Pieter's series to add GPG and Emacs as test prereqs, plus some additions on my own. (Rebased and posted as requested by Pieter [1].) Changes as compared to Pieter's patches (including parts from [2]): - prereqs are not tested using test_expect_success as they were in Pieter's original patches, but using a new function called test_set_bin_prereq. I wrote this before the gdb prereq was added, hence the different way to set it. - some fixes in Pieter's patches so that it actually works when gpg is not installed. Can't exactly remember what (...but you can just check his original patches), but in the end it was working fine in a chroot without gpg. - since Emacs is now run using dtach, the emacs prereq also depends on dtach. The presence of emacs and dtach is also checked in the test_emacs() function of the test suite. - testing for prereqs is now done using the "hash" built-in instead of "which", as suggested in [3]. Tested with and without dtach. A previous version of this series was also without emacs/gpg in a chroot, but not this one :) [1] id:"874ny4fcdz.fsf@praet.org" [2] id:"1317660447-27520-1-git-send-email-schnouki@schnouki.net" [3] id:"87zkgemodd.fsf@praet.org" Pieter Praet (4): test: add 'GnuPG' prereq to dependent 'crypto' tests test: add 'Emacs' prereq to dependent 'crypto' tests test: add 'Emacs' prereq to dependent 'emacs' tests test: add 'Emacs' prereq to dependent 'emacs-large-search-buffer' tests Thomas Jost (2): test: define a helper function for defining prereqs on executables test: check if emacs and dtach are available in test_emacs() test/crypto | 46 +++++++++++++++------- test/emacs | 82 +++++++++++++++++++++------------------ test/emacs-large-search-buffer | 9 +++- test/test-lib.sh | 17 ++++++++ 4 files changed, 99 insertions(+), 55 deletions(-) -- 1.7.7.3