From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: valgrind patches, was Re: What's cooking in git.git (Jan 2009, #04; Mon, 19) Date: Tue, 20 Jan 2009 09:19:32 -0500 Message-ID: <20090120141932.GB10688@sigill.intra.peff.net> References: <7vbpu3r745.fsf@gitster.siamese.dyndns.org> <20090120044447.GF30714@sigill.intra.peff.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Junio C Hamano , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Tue Jan 20 15:22:00 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPHTn-0007C2-Oy for gcvg-git-2@gmane.org; Tue, 20 Jan 2009 15:21:24 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756599AbZATOTj (ORCPT ); Tue, 20 Jan 2009 09:19:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756304AbZATOTi (ORCPT ); Tue, 20 Jan 2009 09:19:38 -0500 Received: from peff.net ([208.65.91.99]:60247 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755772AbZATOTi (ORCPT ); Tue, 20 Jan 2009 09:19:38 -0500 Received: (qmail 1862 invoked by uid 107); 20 Jan 2009 14:19:42 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.40) with ESMTPA; Tue, 20 Jan 2009 09:19:42 -0500 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Tue, 20 Jan 2009 09:19:32 -0500 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Tue, Jan 20, 2009 at 02:51:49PM +0100, Johannes Schindelin wrote: > > I think creating it inside the trash directory for each test run that > > wants to use valgrind makes more sense (probably as .git/valgrind, which > > is unlikely to hurt anything but will stay out of the way of most of the > > tests). > > Here I disagree. But I think that test-lib.sh should create it on-demand, > and it should traverse all executables in all paths listed in $PATH, > replacing the ones that start with "git-" ("git" itself should be the > first one) that are no scripts by symlinks to the valgrind script (which > should therefore live in t/), and those that _are_ scripts by symlinks to > $GIT_ROOT/$NAME. How will you deal with race conditions between two simultaneously running scripts? I.e., where are you going to put it? > I'll work on it. Great. -Peff