[Fedora-packaging] proposed "should" requirement: clean "make check" run w/valgrind

Jesse Keating jkeating at redhat.com
Sat Nov 4 13:24:35 UTC 2006


On Saturday 04 November 2006 07:49, Jim Meyering wrote:
> I've just realized there's a better way to write the script above.
> Just compute the name of the program under test from the name of
> the script:
>
>     #!/bin/sh
>     export PATH=@BUILD_DIR@:/sbin:/usr/sbin:/bin
>     prog=${0##*/}
>     exec /usr/bin/valgrind -v --suppressions=/tmp/cu-vg --log-fd=3 \
>       --leak-check=full --track-fds=yes --num-callers=15 -- "$prog" "$@"
>
> Now, the only variable is the part marked with @BUILD_DIR at .
> Oh.  Also the suppressions file name.

Wouldn't the reviewer/packager still have to know every binary name produced 
and write a script for each?  Is there no easier way?

-- 
Jesse Keating
Release Engineer: Fedora
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20061104/5cca58e3/attachment.sig>


More information about the Fedora-packaging mailing list