From 3c646ec516434c99e8faae1ff2ea3e6b445ccfcc Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 19 Sep 2009 21:27:01 -0400 Subject: [PATCH] run-test.sh: support running tests under gdb As with the 'gnome-shell' -g/--debug can be passed to run under the debugger. https://bugzilla.gnome.org/show_bug.cgi?id=595987 --- tests/run-test.sh.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/run-test.sh.in b/tests/run-test.sh.in index 4436187d8..1ee197eb2 100644 --- a/tests/run-test.sh.in +++ b/tests/run-test.sh.in @@ -7,8 +7,12 @@ usage() { tests= verbose=false +debug= for arg in $@ ; do case $arg in + -g|--debug) + debug="gdb --args" + ;; -v|--verbose) verbose=true ;; @@ -40,5 +44,5 @@ for i in $srcdir $srcdir/../js @GJS_JS_DIR@ @GJS_JS_NATIVE_DIR@ ; do done for test in $tests ; do - gjs-console $gjs_args $test || exit $? + $debug gjs-console $gjs_args $test || exit $? done