summaryrefslogtreecommitdiff
path: root/tests/vg
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@src.gnome.org>2003-02-27 19:11:25 +0000
committerDodji Seketeli <dodji@src.gnome.org>2003-02-27 19:11:25 +0000
commit1bab70f1eff9d282467d6b9188d6f4f22fdd4e1b (patch)
tree2e89ee75d71eb8ece979b1560c209a2438e06a25 /tests/vg
downloadlibcroco-1bab70f1eff9d282467d6b9188d6f4f22fdd4e1b.tar.gz
Initial revision
Diffstat (limited to 'tests/vg')
-rwxr-xr-xtests/vg15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/vg b/tests/vg
new file mode 100755
index 0000000..c7851b2
--- /dev/null
+++ b/tests/vg
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+OUTPUT_FILE=valgrind.log
+VG=`which valgrind`
+VG_OPTIONS="-v --num-callers=100 --leak-check=yes --show-reachable=yes"
+
+#Some sanity checks
+if test "empty$VG" = "empty" ; then
+ echo "You should install valgrind and set it binary into your"
+ echo "\$PATH env variable"
+ echo "go to http://developer.kde.org/~sewardj/ to dowload valgring"
+ exit
+fi
+
+exec $VG $VG_OPTIONS $@ 2>$OUTPUT_FILE \ No newline at end of file