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