GNOME Bugzilla – Bug 652434
Add ability to run any tests through gdb
Last modified: 2011-06-21 21:11:20 UTC
In case a test case crashes, there is a lot of environment variables, etc. to set to be able to run it in gdb. We should put that work into our build system, so it's trivial to run any test through gdb.
Created attachment 189813 [details] [review] Support running any test through gdb Patch from branch: http://cgit.collabora.com/git/user/treitter/folks.git/log/?h=bgo652434-gdb-tests
Review of attachment 189813 [details] [review]: Might want to add the instructions for using it to HACKING. ::: check.mk @@ +2,3 @@ +# gdb any given test by running make test.gdb +%.gdb: % + CK_FORK=no \ Some quick Googling shows that this is only relevant to Check (http://check.sourceforge.net/), which GStreamer uses but we don't. Is there some reason it's here?
(In reply to comment #2) > Review of attachment 189813 [details] [review]: > > Might want to add the instructions for using it to HACKING. > > ::: check.mk > @@ +2,3 @@ > +# gdb any given test by running make test.gdb > +%.gdb: % > + CK_FORK=no \ > > Some quick Googling shows that this is only relevant to Check > (http://check.sourceforge.net/), which GStreamer uses but we don't. Is there > some reason it's here? I googled it as well, but it looks like I misinterpreted it (I read some GStreamer docs that discussed it a little - it sounded like they were referring to 'make check'. Hooray, generic project names! Er.) Anyway, I addressed both issues and pushed: commit edb8daf44a810aaa3b9ca1ebfb701d6b9ff2cc7b Author: Travis Reitter <travis.reitter@collabora.co.uk> Date: Tue Jun 21 14:08:47 2011 -0700 Note closing of bgo#652434 — Add ability to run any tests through gdb Closes: bgo#652434 NEWS | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 506058011ec47ef14a03c9ce2fde35d82b7ba394 Author: Travis Reitter <travis.reitter@collabora.co.uk> Date: Fri Jun 10 10:39:27 2011 -0700 Add ability to run any of our tests through gdb Run a test through gdb with: make -C tests/<dir> <test name>.gdb HACKING | 11 +++++++++++ check.mk | 6 ++++++ tests/folks/Makefile.am | 1 + tests/key-file/Makefile.am | 1 + tests/libsocialweb/Makefile.am | 1 + tests/telepathy/Makefile.am | 1 + tests/tracker/Makefile.am | 1 + 7 files changed, 22 insertions(+), 0 deletions(-)