run-test.sh: support running tests under gdb
As with the 'gnome-shell' -g/--debug can be passed to run under the debugger.
This commit is contained in:
parent
db0c2b5959
commit
9c3af62dc4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user