| 1 |
#!/bin/sh
|
| 2 |
|
| 3 |
# Simple script to run valgrind in the make demo chroot.
|
| 4 |
#
|
| 5 |
# Author: Martin Sjögren <sjogren@debian.org>
|
| 6 |
#
|
| 7 |
# Usage: Put 'valgrind' in one of the pkglists, create the demo root
|
| 8 |
# as usual, but change e.g. the Makefile or some program's postinst to
|
| 9 |
# run a program through run-valgrind. Remember to redirect the output
|
| 10 |
# to a smart place. For example,
|
| 11 |
# run-valgrind /usr/bin/main-menu 9> /tmp/VALGRIND.LOG
|
| 12 |
|
| 13 |
cd /etc/default
|
| 14 |
[ -e valgrind.dpkg-new ] && mv valgrind.dpkg-new valgrind
|
| 15 |
cd /
|
| 16 |
/usr/bin/valgrind -v --show-reachable=yes --leak-check=yes --logfile-fd=9 "$@"
|