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 D5AEB429E54 for ; Mon, 27 Jun 2011 23:36:26 -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 py1bc-MvX9pO for ; Mon, 27 Jun 2011 23:36:26 -0700 (PDT) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 46B7E429E51 for ; Mon, 27 Jun 2011 23:36:26 -0700 (PDT) Received: by wwj40 with SMTP id 40so4319725wwj.2 for ; Mon, 27 Jun 2011 23:36:25 -0700 (PDT) Received: by 10.227.28.200 with SMTP id n8mr6151638wbc.97.1309242983660; Mon, 27 Jun 2011 23:36:23 -0700 (PDT) Received: from localhost ([109.131.53.225]) by mx.google.com with ESMTPS id c17sm4601338wbh.29.2011.06.27.23.36.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Jun 2011 23:36:22 -0700 (PDT) From: Pieter Praet 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-243-g5a76944 (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Tue, 28 Jun 2011 08:36:20 +0200 Message-ID: <874o3atqcb.fsf@praet.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 28 Jun 2011 06:36:27 -0000 On Mon, 27 Jun 2011 16:50:47 -0400, 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? Something like this? Mind you, my grep-fu is non-existent. #+BEGIN_SRC sh dotdot=3D$(rgrep -nH -e "\.\.\/" . | grep -v -e "\$TEST_DIRECTORY") if [ -n "${dotdot}" ] ; then echo -e "Don't dot dot me! Use \$TEST_DIRECTORY as prefix instead.\n\nO= ffending lines:\n ${dotdot}" fi #+END_SRC > 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 Peace --=20 Pieter