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
This commit is contained in:
parent
a9fd350396
commit
3c646ec516
@ -7,8 +7,12 @@ usage() {
|
|||||||
|
|
||||||
tests=
|
tests=
|
||||||
verbose=false
|
verbose=false
|
||||||
|
debug=
|
||||||
for arg in $@ ; do
|
for arg in $@ ; do
|
||||||
case $arg in
|
case $arg in
|
||||||
|
-g|--debug)
|
||||||
|
debug="gdb --args"
|
||||||
|
;;
|
||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
verbose=true
|
verbose=true
|
||||||
;;
|
;;
|
||||||
@ -40,5 +44,5 @@ for i in $srcdir $srcdir/../js @GJS_JS_DIR@ @GJS_JS_NATIVE_DIR@ ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
for test in $tests ; do
|
for test in $tests ; do
|
||||||
gjs-console $gjs_args $test || exit $?
|
$debug gjs-console $gjs_args $test || exit $?
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user