valgrind test scripts (was Re: [PATCH] Teach remote...)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff King
Date: Monday, January 14, 2008 - 5:16 am

On Mon, Jan 14, 2008 at 12:18:13PM +0100, Johannes Schindelin wrote:


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.


Both versions use the 'alias' approach. A more comprehensive approach
would be something like:

  mkdir wrapper-bin
  cat >wrapper-bin/git <<EOF
  ...
  EOF
  chmod 755 wrapper-bin/git
  for i in $GIT_PROGRAMS; do
    ln -s git wrapper-bin/git-$i
  done
  PATH=$PWD/wrapper-bin:$PATH

which should get all git calls (though we should probably not wrap
"git-foo" if git-foo is a script (or we should convert it to "git
foo") since I have no desire to valgrind bash or perl).


Yes. I suspect some people will need to add custom suppression files
depending on their platform, as well.


Agreed.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] git-clone - Set remotes.origin config variable, Mark Levedahl, (Sun Jan 13, 9:27 am)
Re: [PATCH] Teach remote machinery about remotes.default c ..., Johannes Schindelin, (Sun Jan 13, 2:27 pm)
safecrlf not in 1.5.4 (was Re: [PATCH] Teach remote machin ..., Steffen Prohaska, (Sun Jan 13, 11:49 pm)
Re: safecrlf not in 1.5.4, Junio C Hamano, (Mon Jan 14, 12:30 am)
Re: [msysGit] Re: safecrlf not in 1.5.4, Steffen Prohaska, (Mon Jan 14, 1:29 am)
Re: safecrlf not in 1.5.4, Dmitry Potapov, (Mon Jan 14, 2:04 am)
Re: [PATCH] Teach remote machinery about remotes.default c ..., Johannes Schindelin, (Mon Jan 14, 4:18 am)
valgrind test scripts (was Re: [PATCH] Teach remote...), Jeff King, (Mon Jan 14, 5:16 am)
Re: safecrlf not in 1.5.4, Pierre Habouzit, (Mon Jan 14, 10:35 am)
Re: [msysGit] Re: safecrlf not in 1.5.4, Junio C Hamano, (Mon Jan 14, 12:41 pm)
What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 2:41 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 3:15 am)
Re: What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 3:24 am)
What's not in 'master', and likely not to be until 1.5.4, Junio C Hamano, (Fri Jan 18, 3:40 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 3:53 am)
Re: What's not in 'master' but should be, Junio C Hamano, (Fri Jan 18, 4:09 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 4:54 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 5:34 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 5:53 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 6:04 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 6:09 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 6:11 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Fri Jan 18, 6:23 am)
Re: What's not in 'master' but should be, Lars Hjemli, (Fri Jan 18, 7:19 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 11:28 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Fri Jan 18, 11:36 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 1:36 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Fri Jan 18, 1:58 pm)
Re: What's not in 'master' but should be, Mike Hommey, (Fri Jan 18, 11:14 pm)
Re: [PATCH] http-push: fix webdav lock leak., Grégoire Barbier, (Sat Jan 19, 8:21 am)
Re: [PATCH] http-push: fix webdav lock leak., Johannes Schindelin, (Sat Jan 19, 4:38 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Shawn O. Pearce, (Sun Jan 20, 9:46 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Imran M Yousuf, (Sun Jan 20, 10:55 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Junio C Hamano, (Sun Jan 20, 11:29 pm)
[PATCH] submodule: Document the details of the command lin ..., Steffen Prohaska, (Sun Jan 20, 11:41 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Steffen Prohaska, (Sun Jan 20, 11:42 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Mon Jan 21, 3:37 am)
Re: What's not in 'master', and likely not to be until 1.5.4, Shawn O. Pearce, (Tue Jan 22, 9:44 pm)
Re: What's not in 'master', and likely not to be until 1.5.4, Johannes Schindelin, (Wed Jan 23, 4:12 am)
Re: What's not in 'master' but should be, Johannes Schindelin, (Mon Feb 18, 12:57 pm)