From bb00507a1db3b015cc4fed1368acbff8acb2ce15 Mon Sep 17 00:00:00 2001 From: dhdfu Date: Sun, 27 Jan 2008 18:54:51 +0000 Subject: [PATCH] add debug and memcheck options git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@7652 94700074-3cef-4d97-a70e-9c8c206c02f5 --- test/regression/testfuncs.sh.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/regression/testfuncs.sh.in b/test/regression/testfuncs.sh.in index 0d693bd..529687c 100644 --- a/test/regression/testfuncs.sh.in +++ b/test/regression/testfuncs.sh.in @@ -16,6 +16,18 @@ run_program() { $builddir/libtool --mode=execute "$builddir/src/$program/$program" $@ } +debug_program() { + program="$1" + shift + $builddir/libtool --mode=execute gdb --args "$programs/$program" $@ +} + +memcheck_program() { + program="$1" + shift + $builddir/libtool --mode=execute valgrind --leak-check=full "$programs/$program" $@ +} + pass() { title="$1" echo "$title PASSED"