richelbilderbeek / testing_cpp_gui_applications_tutorial

Tutorial about testing C++ GUI applications
GNU General Public License v3.0
3 stars 0 forks source link

Launch window manager on Travis CI #3

Open richelbilderbeek opened 8 years ago

richelbilderbeek commented 8 years ago

To solve this issue.

List of X window managers

xfwm4: fails i3: fails, gives Cannot read temperature infinitely when starting it wmaker: fails, cannot get it to start awesome: TODO matchbox: TODO xpra: sudo apt-get install xpra then xpra start 1

richelbilderbeek commented 8 years ago

My StackOverflow question on this issue

richelbilderbeek commented 8 years ago

Here is something to try.

richelbilderbeek commented 8 years ago

With aa6f1573694ed397252f11e3ab55264b32ebc361 I got this:

This looks like an improvement:

$ wmctrl -m

Name: Metacity
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: N/A
The command "wmctrl -m" exited with 0.

Also these:

$ DISPLAY=:99; wmctrl -l

0x00800003  0 testing-gce-5c0b2b54-b2df-4391-91d0-765ef5ac7787 (Untitled)
The command "DISPLAY=:99; wmctrl -l" exited with 0.
0.01s$ DISPLAY=:99.0; wmctrl -l

0x00800003  0 testing-gce-5c0b2b54-b2df-4391-91d0-765ef5ac7787 (Untitled)
** (gedit:20340): WARNING **: Could not load theme icon gtk-home: Icon 'gtk-home' not present in theme
The command "DISPLAY=:99.0; wmctrl -l" exited with 0.```
richelbilderbeek commented 8 years ago

I am willing to offer a bounty to solve this problem.

richelbilderbeek commented 8 years ago

This is a reproduction of the problem:

Build the testing application:

cd minimal_project
qmake
make

Running the tests:

./minimal_project.sh 

On my local computer this is:

Starting the application
Check if the dialog can be found
Close the dialog using ALT-F4
0
Starting the application again
Close the dialog by setting the mouse at the closing glyph and clicking

On Travis CI this is:

Starting the application
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x800004 specified for 0x800002 (Dialog).
Check if the dialog can be found
Close the dialog using ALT-F4
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Starting the application again
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x800004 specified for 0x800002 (Dialog).
Close the dialog by setting the mouse at the closing glyph and clicking
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Starting the application
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x800004 specified for 0x800002 (Dialog).
Check if the dialog can be found
Close the dialog using ALT-F4
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
0
Starting the application again
Window manager warning: Invalid WM_TRANSIENT_FOR window 0x800004 specified for 0x800002 (Dialog).
Close the dialog by setting the mouse at the closing glyph and clicking
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
Window manager warning: Received a NET_CURRENT_DESKTOP message from a broken (outdated) client who sent a 0 timestamp
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800002 (Dialog)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.

The problem is that minimal_application is not closed by the mouse button. I will add a better test to detect this more clearly for my collaborators.

JornPrengerFormeel commented 8 years ago

Could you add Jan?

richelbilderbeek commented 8 years ago

Added @janderkkotlarski :sunglasses:

JornPrengerFormeel commented 8 years ago

Vet cool

On Tue, Nov 8, 2016, 10:12 AM Richel Bilderbeek notifications@github.com wrote:

Added @janderkkotlarski https://github.com/janderkkotlarski 😎

— You are receiving this because you were assigned.

Reply to this email directly, view it on GitHub https://github.com/richelbilderbeek/testing_cpp_gui_applications_tutorial/issues/3#issuecomment-259083957, or mute the thread https://github.com/notifications/unsubscribe-auth/AP5CgSd5x6Vkmg5bfkvk_v-CFotoZ9xnks5q8DzxgaJpZM4IYxN3 .

richelbilderbeek commented 7 years ago

Solution provided by @jorn600 and Thijs at showing-open-windows-in-travis.

richelbilderbeek commented 7 years ago

Too bad, clicking and sending key presses does not work :frowning_face: