From: Jeff King Date: Mon, 14 Jan 2008 12:16:15 GMT Subject: valgrind test scripts (was Re: [PATCH] Teach remote...) Message-ID: <20080114121615.GC12723@coredump.intra.peff.net> In-Reply-To: On Mon, Jan 14, 2008 at 12:18:13PM +0100, Johannes Schindelin wrote: > > * test scripts to use valgrind (Jeff King, but there was another > > one in the past -- can their efforts compared and coordinated > > better?). > > Yes, that was written in Perl by Christian Couder: > > http://article.gmane.org/gmane.comp.version-control.git/69236 > > Peff's version does not need Perl, and is better integrated with the > testsuite (via the new option -m). Christian's version parses the output, > and might therefore be nicer to look at. I don't think parsing is necessary. Christian's version counts the errors, whereas I just barf if valgrind has mentioned any errors. And using the '-q' output of valgrind means the output is fairly cleaned up. But of course the main difference is that I tried to integrate into the test scripts, and stop running as soon as any errors are found. > However, I think that both versions do not account for scripts, and I > imagine that going through Git.pm and git-sh-setup is necessary for that. Both versions use the 'alias' approach. A more comprehensive approach would be something like: mkdir wrapper-bin cat >wrapper-bin/git < Also, it might be a good idea to be able to provide extra arguments, such > as "--attach-db=yes". Yes. I suspect some people will need to add custom suppression files depending on their platform, as well. > Post 1.5.4, definitely. Agreed. -Peff