Thread: [java-gnome-hackers] Tests on the 4.1 branch
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2011-05-08 04:40:02
|
I have a system that is now Ubuntu Natty (and therefore GTK 3 available) + GNOME 3 (from gnome 3 developers' PPA), and so I'm now able to finish getting our 4.1 release ready. Our test suite has two problems: 1. libnotify Our test connects to Nautilus. This made the assumption that Nautilus is always running, which it was on a GNOME 2 system since it draws the Desktop. But for some time now the Ubuntu Netbook Edition users have complained that they only have Nautilus running on-demand when they pull up a file browser. And since Canonical's Netbook code became Unity, I can only expect this to get worse. Meanwhile, it would seem based on my few days experience that GNOME 3 behaves the same way; Nautilus only available on demand. So I'm going to have to deactivate ValidateUniqueApplications.testIsNautilusRunning() ValidateUniqueApplications.testSendToNautilus() 2. Compose sequences The test ValidateInputMethods.testNormalKeystrokes() is failing. This pisses me off; it works fine in GTK 2; and meanwhile, actual live Compose key handling works fine in my large text editing application. So it's not the java-gnome binding at fault, but rather something about our test case and/or Xvfb that's not working. So I'll have to deactivate this one too. ++ I'm sure most of you don't care about any of this; but removing tests to make the test suite pass is not a very good approach to problem solving. The methods have been renamed s/test/fails/ so that the test code is still there but not run. I hope that someday someone will try and make these tests work again. AfC Sydney |
From: Guillaume M. <res...@gm...> - 2011-05-08 09:31:49
|
> 1. libnotify I suppose that you mean libunique and not libnotify. > Our test connects to Nautilus. This made the assumption that Nautilus is > always running, which it was on a GNOME 2 system since it draws the > Desktop. But for some time now the Ubuntu Netbook Edition users have > complained that they only have Nautilus running on-demand when they pull > up a file browser. And since Canonical's Netbook code became Unity, I > can only expect this to get worse. I don't know about Gnome-Shell but with Unity it looks like Nautilus is still used like it was with GNOME 2 and GNOME panel. > So I'm going to have to deactivate > > ValidateUniqueApplications.testIsNautilusRunning() > ValidateUniqueApplications.testSendToNautilus() Maybe we can find another application that runs all the time and use it to replace Nautilus in our tests. What about this bug we found with Ubuntu running Unity and appmenu? https://bugzilla.gnome.org/show_bug.cgi?id=647772 Should we use the workaround to ensure that it will work for Ubuntu users? |
From: Mat B. <mb...@fe...> - 2011-05-08 12:09:47
|
On 8 May 2011 05:24, Andrew Cowie <an...@op...> wrote: > I have a system that is now Ubuntu Natty (and therefore GTK 3 available) > + GNOME 3 (from gnome 3 developers' PPA), and so I'm now able to finish > getting our 4.1 release ready. > > Our test suite has two problems: > > 1. libnotify > > Our test connects to Nautilus. This made the assumption that Nautilus is > always running, which it was on a GNOME 2 system since it draws the > Desktop. But for some time now the Ubuntu Netbook Edition users have > complained that they only have Nautilus running on-demand when they pull > up a file browser. And since Canonical's Netbook code became Unity, I > can only expect this to get worse. > > Meanwhile, it would seem based on my few days experience that GNOME 3 > behaves the same way; Nautilus only available on demand. > > So I'm going to have to deactivate > > ValidateUniqueApplications.testIsNautilusRunning() > ValidateUniqueApplications.testSendToNautilus() > There is a setting in Gnome 3 called "Have file manager handle the desktop" which you can turn on in gnome-tweak-tool. Would that solve the problem? -- Mat Booth http://fedoraproject.org/get-fedora |
From: Andrew C. <an...@op...> - 2011-05-08 23:08:47
|
On Sun, 2011-05-08 at 13:09 +0100, Mat Booth wrote: > There is a setting in Gnome 3 called "Have file manager handle the > desktop" which you can turn on in gnome-tweak-tool. Would that solve > the problem? I imagine it would, except that setting that would be a fairly invasive change to impose on the user's configuration - especially by a test suite! :) The only reason we tested against Nautilus was simply because it was a libunique process that we *knew* would be running, regardless. We just need to find something else. Incidentally, I remember someone looked into starting a second Java process with libnotify there. There's nothing intrinically wrong with that, but firing up additional processes from within a test suite is tricky engineering. Oh well. I suspect this whole thing is on the wrong track anyway; in a DBus + services on demand + GtkApplication world there are probably better things to test. Of course, testing GtkApplication will probably amount to the same thing, so suggestions welcome. AfC Sydney |