Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id AEE7E429E54 for ; Mon, 23 Jan 2012 11:09:04 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.463 X-Spam-Level: * X-Spam-Status: No, score=1.463 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, RDNS_DYNAMIC=0.363, TO_NO_BRKTS_DYNIP=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 AuYHTjpjT6Ev for ; Mon, 23 Jan 2012 11:09:04 -0800 (PST) Received: from xhlj.maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) by olra.theworths.org (Postfix) with ESMTP id ED34C429E21 for ; Mon, 23 Jan 2012 11:09:03 -0800 (PST) Received: from xhlj.maillard.im (xhlj.maillard.im [127.0.0.1]) by xhlj.maillard.im (Postfix) with ESMTP id 9CA4A20640; Mon, 23 Jan 2012 20:08:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; s=postfix; bh=deRSc7y3N3auj7kYbY4ZrH eaB1A=; b=qi5CATyeGHnFcv7cKk4LmaTTDA5wwdW9oI0BlSHlH6LjMKhR/WzoSk I1nlp9Het4Fc9V4Ggoqvi2XcaWExTHhJ6VhTPhK4WqphdzVBhGGRVP33z5PwtyQ7 znrpD1AV2E36i2olWJxD6PC7k5P7Q86LwD/qP87TCMbfckP2Zopp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=maillard.im; h=from:to :subject:in-reply-to:references:reply-to:date:message-id :mime-version:content-type; q=dns; s=postfix; b=zlaEHU7Vnd97yf7w I9vPORpC8pHYIfO6PwxyWb/C/6ia9KTNk5ot1yEgIIWxH6YKdjZ9aQFqWssLcnrl 9I/6/Vp31s+HNxHHgp2JGy8Laqy6dorViGa9JzXGCQnKS2ea0O7IvjpQroisZUM8 dpVRvGM0yhk6GnsXhpGJVBZUx4U= Received: from maillard.im (cha51-3-88-164-105-66.fbx.proxad.net [88.164.105.66]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by xhlj.maillard.im (Postfix) with ESMTPSA; Mon, 23 Jan 2012 20:08:59 +0100 (CET) From: Xavier Maillard To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 10/10] test: use emacsclient(1) for Emacs tests In-Reply-To: <1309236311-2162-10-git-send-email-dmitry.kurochkin@gmail.com> References: <1309236311-2162-1-git-send-email-dmitry.kurochkin@gmail.com> <1309236311-2162-10-git-send-email-dmitry.kurochkin@gmail.com> User-Agent: Notmuch/0.11 (http://notmuchmail.org) Emacs/23.2.1 (i486-slackware-linux-gnu) Date: Mon, 23 Jan 2012 20:08:59 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Xavier Maillard List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2012 19:09:04 -0000 On Tue, 28 Jun 2011 08:45:11 +0400, Dmitry Kurochkin wrote: > Before the change, every Emacs test ran in a separate Emacs > instance. Starting Emacs many times wastes considerable time and > it gets worse as the test suite grows. The patch solves this by > using a single Emacs server and emacsclient(1) to run multiple > tests. Emacs server is started on the first test_emacs call and > stopped when test_done is called. We take care not to leave > orphan Emacs processes behind when test is terminated by whatever > reason: Emacs server runs a watchdog that periodically checks > that the test is still running. > > Some tests need to provide user input. Before the change, this > was done using echo(1) to Emacs stdin. This no longer works and > instead `standard-input' variable is set accordingly to make > `read' return the appropriate string. I really like this too. +1 /Xavier