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 431B7429E25 for ; Mon, 27 Jun 2011 16:19:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 g+oy+eeTz8Gy for ; Mon, 27 Jun 2011 16:19:44 -0700 (PDT) Received: from DB3EHSOBE005.bigfish.com (db3ehsobe005.messaging.microsoft.com [213.199.154.143]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D2974431FD0 for ; Mon, 27 Jun 2011 16:19:43 -0700 (PDT) Received: from mail75-db3-R.bigfish.com (10.3.81.242) by DB3EHSOBE005.bigfish.com (10.3.84.25) with Microsoft SMTP Server id 14.1.225.22; Mon, 27 Jun 2011 23:19:42 +0000 Received: from mail75-db3 (localhost.localdomain [127.0.0.1]) by mail75-db3-R.bigfish.com (Postfix) with ESMTP id 6784D678199; Mon, 27 Jun 2011 23:19:42 +0000 (UTC) X-SpamScore: -18 X-BigFish: VPS-18(zz9371M1521M1432N98dKzz1202hzz8275bh8275dhz32i668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:163.181.249.108; KIP:(null); UIP:(null); IPVD:NLI; H:ausb3twp01.amd.com; RD:none; EFVD:NLI Received: from mail75-db3 (localhost.localdomain [127.0.0.1]) by mail75-db3 (MessageSwitch) id 1309216782234571_19170; Mon, 27 Jun 2011 23:19:42 +0000 (UTC) Received: from DB3EHSMHS013.bigfish.com (unknown [10.3.81.252]) by mail75-db3.bigfish.com (Postfix) with ESMTP id 2CB2D73004B; Mon, 27 Jun 2011 23:19:42 +0000 (UTC) Received: from ausb3twp01.amd.com (163.181.249.108) by DB3EHSMHS013.bigfish.com (10.3.87.113) with Microsoft SMTP Server id 14.1.225.22; Mon, 27 Jun 2011 23:19:41 +0000 X-WSS-ID: 0LNH24N-01-EKD-02 X-M-MSG: Received: from sausexedgep02.amd.com (sausexedgep02-ext.amd.com [163.181.249.73]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ausb3twp01.amd.com (Axway MailGate 3.8.1) with ESMTP id 29F5310288DC; Mon, 27 Jun 2011 18:19:34 -0500 (CDT) Received: from sausexhtp02.amd.com (163.181.3.152) by sausexedgep02.amd.com (163.181.36.59) with Microsoft SMTP Server (TLS) id 8.3.106.1; Mon, 27 Jun 2011 18:19:42 -0500 Received: from optimon.amd.com (163.181.34.104) by sausexhtp02.amd.com (163.181.3.152) with Microsoft SMTP Server (TLS) id 8.3.83.0; Mon, 27 Jun 2011 18:19:37 -0500 Received: from mhdc-ns01.amd.com (mhdc-ns01.amd.com [165.204.35.147]) by optimon.amd.com (8.12.10/8.12.10) with ESMTP id p5RN34ap014486; Mon, 27 Jun 2011 18:03:15 -0500 Received: from testarossa.amd.com (testarossa.amd.com [165.204.147.44]) by mhdc-ns01.amd.com (8.13.8+Sun/8.13.8) with ESMTP id p5RN33va009184; Mon, 27 Jun 2011 17:03:03 -0600 (MDT) Received: (from manderso@localhost) by testarossa.amd.com (8.13.8/8.13.8/Submit) id p5RN33Ka012321; Mon, 27 Jun 2011 17:03:03 -0600 X-Authentication-Warning: testarossa.amd.com: manderso set sender to MarkR.Anderson@amd.com using -f From: Mark Anderson To: Austin Clements , Mark Anderson Subject: Re: [PATCH] test:Improve test behaviors when --root is used In-Reply-To: References: <87vcvrw91f.fsf@gmail.com> User-Agent: Notmuch/0.5-171-gcb84187 (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Mon, 27 Jun 2011 17:03:03 -0600 Message-ID: <3wd39iuubbs.fsf@testarossa.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-OriginatorOrg: amd.com Cc: "notmuch@notmuchmail.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: Mon, 27 Jun 2011 23:19:46 -0000 On Mon, 27 Jun 2011 15:50:47 -0500, Austin Clements wrot= e: > This looks great (modulo one bug, below). I've wanted to run the > tests on tmpfs before, but was too lazy to actually fix the tests. >=20 > Given how easy it is to accidentally use "..", I wonder if there's a > way to force people to use $TEST_DIRECTORY? I was thinking of a test of the test-suite running in this mode, but I didn't quite feel comfortable, since it feels a bit slow sometimes already. So an instruction to run 'make test', which would include a 'make test OPTIONS=3D"--root=3D/dev/shm/notmuch_test.$$"' or some such if that was acceptable. I didn't think about it very hard, but I was intrigued by the idea. -Mark > On Mon, Jun 27, 2011 at 12:09 PM, Mark Anderson wrot= e: > > --- a/test/symbol-hiding > > +++ b/test/symbol-hiding > > @@ -12,13 +12,13 @@ test_description=3D'exception symbol hiding' > > =C2=A0. ./test-lib.sh > > > > =C2=A0run_test(){ > > - =C2=A0 =C2=A0result=3D$(LD_LIBRARY_PATH=3D../../lib ./symbol-test 2>&= 1) > > + =C2=A0 =C2=A0result=3D$(LD_LIBRARY_PATH=3D$TEST_DIRECTORY/../../lib .= /symbol-test 2>&1) >=20 > Did you mean $TEST_DIRECTORY/../lib? > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch >=20