File: leaktest

package info (click to toggle)
listaller 0.5.9-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,096 kB
  • ctags: 1,611
  • sloc: xml: 11,195; ansic: 2,298; sh: 1,648; perl: 1,452; cpp: 1,289; java: 157; makefile: 134; cs: 48; python: 24
file content (27 lines) | stat: -rwxr-xr-x 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Script to launch Listaller module under valgrind for memory error/leak checking.
set -e

modpath=$1

function usage
{
  echo "Check memory leaks in Listaller toolset using Valgrind."
  echo "Usage:"
  echo " leaktest <listaller-module>"
}

eval set -- "$PARSED_OPTIONS"

if [ "$modpath" == "" ]; then
  usage;
  exit 1;
fi

sdir=$0
sdir=${sdir%/*}

echo "Running Valgrind..."

valgrind --log-file=valgrind.log --leak-check=full --suppressions="$sdir/listaller.supp" --gen-suppressions=all --num-callers=20 \
$modpath "$@"