diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-08-28 01:53:01 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-18 22:04:29 +0200 |
commit | 3f3c9c532929fac8e6f6587094c361ecb4b9180f (patch) | |
tree | 827527d5defd0eafc37ae8f5855fd1fe0a22413d | |
parent | ee90ce74e8b585b210ab5df3709444db269b875d (diff) | |
download | meson-3f3c9c532929fac8e6f6587094c361ecb4b9180f.zip meson-3f3c9c532929fac8e6f6587094c361ecb4b9180f.tar.gz meson-3f3c9c532929fac8e6f6587094c361ecb4b9180f.tar.bz2 |
Add option to run under gdb.
-rwxr-xr-x | mesontest.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesontest.py b/mesontest.py index aa7a3b6..b43852a 100755 --- a/mesontest.py +++ b/mesontest.py @@ -48,6 +48,12 @@ def run(args): return 0 for t in tests: if t.name in options.tests: + if options.gdb: + # On success will exit cleanly. On failure gdb will ask user + # if they really want to exit. + wrap = ['gdb', '--quiet', '-ex', 'run', '-ex', 'quit'] + # FIXME a ton of stuff. run_single_test grabs stdout & co, + # which we do not want to do when running under gdb. for i in range(options.repeat): print('Running: %s %d/%d' % (t.name, i+1, options.repeat)) res = meson_test.run_single_test(wrap, t) |