Re: Some shortcomings in gtestutils

2013-02-25 Thread Stefan Sauer
On 21.02.2013 03:46, Federico Mena Quintero wrote: Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils provides. It is not bad, but

Re: Some shortcomings in gtestutils

2013-02-22 Thread Federico Mena Quintero
On Thu, 2013-02-21 at 11:12 +, Philip Withnall wrote: Add the following in your Makefile.am: TESTS_ENVIRONMENT = libtool --mode=execute gdb Then run `make check` as normal, and magically all of your tests will be run under gdb. If you just want to run a specific test binary

Re: Some shortcomings in gtestutils

2013-02-21 Thread Philip Withnall
On Wed, 2013-02-20 at 20:46 -0600, Federico Mena Quintero wrote: * It's hard to get a debugger up in the middle of make check. I can't think of a way to do it other than manually inserting code to sleep in the middle of the faulty test, and then attaching with a debugger manually. Maybe

Re: Some shortcomings in gtestutils

2013-02-21 Thread Emmanuele Bassi
hi Federico; On 21 February 2013 02:46, Federico Mena Quintero feder...@gnome.org wrote: So, I've been learning what gtestutils provides. It is not bad, but it seems pretty pedestrian on some counts. These are some things I'd like to change, or at least for someone to point me in the right

Re: Some shortcomings in gtestutils

2013-02-21 Thread Nicola Fontana
Il Thu, 21 Feb 2013 12:31:33 + Simon McVittie simon.mcvit...@collabora.co.uk scrisse: On 21/02/13 11:42, Nicola Fontana wrote: * There is no way to do a make check while cross-compiling, by using wine for example. If you're on a Linux distribution whose Wine packaging sets up

Some shortcomings in gtestutils

2013-02-20 Thread Federico Mena Quintero
Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils provides. It is not bad, but it seems pretty pedestrian on some counts. These are

Re: Some shortcomings in gtestutils

2013-02-20 Thread Sam Spilsbury
On Thu, Feb 21, 2013 at 10:46 AM, Federico Mena Quintero feder...@gnome.org wrote: Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils

Re: GUI Testing (was: Some shortcomings in gtestutils)

2013-02-20 Thread John Ralls
On Feb 20, 2013, at 6:46 PM, Federico Mena Quintero feder...@gnome.org wrote: * Now that the a11y infrastructure is included in-the-box with GTK+, it sounds like a good idea to start putting an a11y-based testing infrastructure in GTK+ itself. For the file chooser's tests, I had to do

Re: Some shortcomings in gtestutils

2013-02-20 Thread Sam Spilsbury
On Thu, Feb 21, 2013 at 1:17 PM, Peter Hutterer peter.hutte...@who-t.net wrote: Having worked with googletest and xorg-gtest [1] for X integration testing, I can say the most annoying bit is to get the whole thing to compile. The C++ ODR prevents us from building gtest and xorg-gtest as library

Re: Some shortcomings in gtestutils

2013-02-20 Thread Peter Hutterer
On Thu, Feb 21, 2013 at 02:39:21PM +0800, Sam Spilsbury wrote: On Thu, Feb 21, 2013 at 1:17 PM, Peter Hutterer peter.hutte...@who-t.net wrote: Having worked with googletest and xorg-gtest [1] for X integration testing, I can say the most annoying bit is to get the whole thing to compile. The