Thibault Jouan
2894783b57
Configure travis CI to send email notifications
2015-04-18 18:05:04 +00:00
Thibault Jouan
a9466a49f0
Refactor env logging common usages with a module
2015-04-18 18:04:46 +00:00
Thibault Jouan
5a102e7739
Improve CLI usage cucumber feature
...
Change a step definition to communicate intent more clearly.
2015-04-18 17:19:15 +00:00
Thibault Jouan
6ce237f8f3
Rename cucumber feature for CLI require option
2015-04-18 17:19:11 +00:00
Thibault Jouan
7d011dad60
Improve CLI usage output
...
* Move -h option at tail;
* Add separator between standard and tail options.
2015-04-18 17:08:18 +00:00
Thibault Jouan
0f2d658986
Rename CLI ruby feature require cucumber feature
2015-04-18 17:05:27 +00:00
Thibault Jouan
71caf160be
Add version CLI option
2015-04-18 17:03:25 +00:00
Thibault Jouan
dcc41006d0
Delegate Env#puts to the output
2015-04-18 17:02:24 +00:00
Thibault Jouan
e91ec5c36c
Accept uhwm arguments after --' in rake run' task
2015-04-18 16:32:36 +00:00
Thibault Jouan
f94f9e2aed
Remove class_eval usage in Workers::Base
2015-04-18 14:40:12 +00:00
Thibault Jouan
1cb7086713
Add cucumber scenario for layout CLI option
2015-04-18 03:26:24 +00:00
Thibault Jouan
1e2d423552
Fix verbose CLI option description
2015-04-18 03:15:08 +00:00
Thibault Jouan
65a3159f1a
Extract workers callback names in a constant
2015-04-18 03:13:13 +00:00
Thibault Jouan
416951dcc2
Remove comments left in Workers::Blocking
2015-04-18 03:10:26 +00:00
Thibault Jouan
4015a301cc
Refactor Workers::Base callback definitions
2015-04-18 03:09:46 +00:00
Thibault Jouan
41b99957fb
Refactor manager#handle_pending_events
2015-04-18 02:59:22 +00:00
Thibault Jouan
54e1cb8012
Fix coding standards
2015-04-18 02:59:13 +00:00
Thibault Jouan
c21600f500
Merge branch 'workers'
2015-04-18 02:27:35 +00:00
Thibault Jouan
17de52f8af
Modify test helpers to quit gracefully in cucumber
2015-04-18 02:03:37 +00:00
Thibault Jouan
5ab463cde5
Allow worker configuration with run control file
2015-04-18 02:03:37 +00:00
Thibault Jouan
9ea43ee69a
Integrate blocking and multiplexing workers usage
2015-04-18 02:03:32 +00:00
Thibault Jouan
fa03cd736a
Implement Runner#worker
2015-04-18 00:46:50 +00:00
Thibault Jouan
887c66a6f7
Implement Manager#handle_next_event
2015-04-18 00:46:50 +00:00
Thibault Jouan
231e7cd67a
Configure default worker settings
2015-04-18 00:46:50 +00:00
Thibault Jouan
cb0c5f6ca2
Add Env#worker attribute accessor
2015-04-18 00:46:50 +00:00
Thibault Jouan
0176ab0010
Prototype two workers: blocking and multiplexing
2015-04-18 00:46:50 +00:00
Thibault Jouan
0164b52465
Implement Manager#flush
2015-04-17 15:14:48 +00:00
Thibault Jouan
18667e2492
Implement Manager#to_io
2015-04-17 15:13:18 +00:00
Thibault Jouan
799cb3f5d9
Remove specs testing for log messages
2015-04-16 21:40:05 +00:00
Thibault Jouan
fbfc6089a3
Use a custom, more compact, logger formatter
2015-04-16 21:36:01 +00:00
Thibault Jouan
d6b23994e9
Add some logging in layout hooks
2015-04-16 21:33:12 +00:00
Thibault Jouan
042805b3a2
Merge branch 'client-visibility-handling'
...
Add client methods needed to manage visibility.
2015-04-16 21:11:24 +00:00
Thibault Jouan
b4240a8b4f
Implement Client#focus
2015-04-16 21:09:59 +00:00
Thibault Jouan
3cf62cc07d
Implement Client#hide
2015-04-16 21:09:59 +00:00
Thibault Jouan
870e11a702
Implement Client#show
2015-04-16 21:09:59 +00:00
Thibault Jouan
15f966654b
Implement client visibility state
2015-04-16 21:09:55 +00:00
Thibault Jouan
1a1f181313
Rename Client#wname as Client#name
2015-04-16 18:46:07 +00:00
Thibault Jouan
5351307cdc
Implement Client#moveresize
2015-04-16 18:16:49 +00:00
Thibault Jouan
417eaecad9
Merge branch 'fix-ci-cucumber_output_wait'
2015-04-16 18:03:47 +00:00
Thibault Jouan
078254ae6d
Simplify and refactor uhwm_wait_output helper
2015-04-16 18:02:13 +00:00
Thibault Jouan
e899240d70
Increase output check timeout to 8" under CI
2015-04-16 17:33:22 +00:00
Thibault Jouan
c7f3743949
Configure uhwm_wait_output test helper via the env
...
The `timeout' keyword argument was never used, replace it with a test
for UHWMTEST_OUTPUT_TIMEOUT environment variable and use the value when
set.
2015-04-16 17:31:56 +00:00
Thibault Jouan
1e1645107c
Implement `execute' action keyword
2015-04-16 17:12:00 +00:00
Thibault Jouan
43e90dafce
Add Env#log_error to log messages at ERROR level
2015-04-16 17:11:21 +00:00
Thibault Jouan
1903ba166b
Use uh to fake windows in cucumber test suite
2015-04-16 16:13:54 +00:00
Thibault Jouan
0ef0e47036
Update uh version requirement
2015-04-16 16:13:54 +00:00
Thibault Jouan
9dc4a75b3a
Fix travis CI build (xev is in x11-utils package)
2015-04-16 13:21:00 +00:00
Thibault Jouan
d781a48837
Log X events received by the manager
2015-04-16 13:19:29 +00:00
Thibault Jouan
6ad1735775
Add Client#geo= attribute accessor
2015-04-16 13:18:28 +00:00
Thibault Jouan
dc39f5b0c2
Fix travis CI build (xev install was missing)
2015-04-16 12:52:26 +00:00
Thibault Jouan
360b1583bf
Fix AcceptanceHelpers#with_other_wm
2015-04-16 12:27:21 +00:00
Thibault Jouan
36e105bb42
Ensure test windows are closed after cucumber run
2015-04-16 12:26:29 +00:00
Thibault Jouan
0a8a6bc5fb
Refactor Manager#handle
2015-04-16 12:10:49 +00:00
Thibault Jouan
d46a332218
Extract code from Manager#connect as private method
2015-04-16 12:05:51 +00:00
Thibault Jouan
65d103d70b
Merge branch 'manage-clients'
2015-04-16 12:02:50 +00:00
Thibault Jouan
c718ac4020
Manage clients with the Layout
2015-04-16 12:01:15 +00:00
Thibault Jouan
a0dcca07f9
Register clients in manager on map requests
2015-04-16 12:01:15 +00:00
Thibault Jouan
6e90225c9d
Add basic Client class
2015-04-16 12:01:15 +00:00
Thibault Jouan
fe47e27d98
Prototype clients management with windows
2015-04-16 12:01:15 +00:00
Thibault Jouan
8bcb31ddc2
Forward :manage events to the Layout in Runner
2015-04-16 12:01:15 +00:00
Thibault Jouan
4e65d46730
Handle map_request events in the Manager
2015-04-16 12:01:15 +00:00
Thibault Jouan
3f39b90269
Listen events for window management in Manager
2015-04-16 12:01:15 +00:00
Thibault Jouan
d501bb9b35
Accept options in uhwm_run_wait_ready UAT helper
2015-04-15 17:54:19 +00:00
Thibault Jouan
1575a2d369
Handle termination properly
...
* Tell the manager to close the display before terminating;
* Log about quit request and process termination.
2015-04-15 12:49:04 +00:00
Thibault Jouan
d3f1fe6d34
Refactor Runner#register_event_hooks
2015-04-15 12:05:33 +00:00
Thibault Jouan
e12510713c
Fix coding standards
2015-04-15 12:05:28 +00:00
Thibault Jouan
712dde4718
Freeze Env::LOGGER_LEVEL_STRINGS
2015-04-15 11:52:08 +00:00
Thibault Jouan
57a7e104ce
Extract default env key bindings in a constant
2015-04-15 09:34:30 +00:00
Thibault Jouan
6ac26c370e
Implement `modifier' run control keyword
2015-04-15 09:31:32 +00:00
Thibault Jouan
620150b6d8
Remove context for constructor specs
2015-04-15 09:31:32 +00:00
Thibault Jouan
c50345af8b
Merge branch 'action-handler'
...
* Introduce a DSL to evaluate code associated to key bindings
(ActionsHandler class);
* Provides default key bindings (quit) in the env, and remove hard coded
handling in Runner;
* Handle quit with an event.
2015-04-15 04:45:48 +00:00
Thibault Jouan
49f85bee35
Implement `quit' action keyword
2015-04-15 04:20:26 +00:00
Thibault Jouan
0a83563cad
Improve error reporting on run control evaluation
2015-04-15 04:13:24 +00:00
Thibault Jouan
747573c52e
Fix cucumber steps description (s/should/must/)
2015-04-15 03:28:16 +00:00
Thibault Jouan
773db4c8eb
Reorganize cucumber features
2015-04-15 03:23:27 +00:00
Thibault Jouan
71b88b29c3
Add `run' rake task to experiment uhwm in Xephyr
2015-04-15 02:28:29 +00:00
Thibault Jouan
75cd101739
Refactor cucumber scenarios
2015-04-15 01:17:35 +00:00
Thibault Jouan
9c9aa1dabb
Configure upcased key as combination with shift mod
2015-04-15 01:09:18 +00:00
Thibault Jouan
56197c85f8
Translate common key names in `key' RC keyword
2015-04-14 22:14:10 +00:00
Thibault Jouan
f53ad53806
Refactor `spec' rake task declaration
2015-04-14 21:54:43 +00:00
Thibault Jouan
2d26ce0b81
Merge branch 'key_binding-definition'
2015-04-14 21:43:07 +00:00
Thibault Jouan
08fe5a6994
Implement `key' run control keyword
2015-04-14 21:42:47 +00:00
Thibault Jouan
2a1a1f1185
Register key bindings in the env with RunControl
2015-04-14 21:42:47 +00:00
Thibault Jouan
b1aa430ef3
Add a new class for run control file evaluation
2015-04-14 21:42:47 +00:00
Thibault Jouan
66c1b78740
Fix a description in Manager#handle specs
2015-04-14 21:42:33 +00:00
Thibault Jouan
193180fe6d
Add a cucumber step to handle run control file
2015-04-14 03:23:12 +00:00
Thibault Jouan
e81cf3a52f
Clean up tests
...
* Remove deprecated tags;
* Improve scenarios, steps and specs descriptions.
2015-04-14 02:59:48 +00:00
Thibault Jouan
bceeae01ac
Update documentation
2015-04-14 02:35:40 +00:00
Thibault Jouan
4049bf255d
Merge branch 'runcontrol-file'
2015-04-14 02:32:35 +00:00
Thibault Jouan
62c824cd7d
Specify alternate run control file path from CLI
2015-04-14 02:28:37 +00:00
Thibault Jouan
7493ab3284
Evaluate run control file when present
2015-04-14 02:28:33 +00:00
Thibault Jouan
8165a1d4f5
Mock home directory in all cucumber scenarios
2015-04-14 02:27:36 +00:00
Thibault Jouan
d6ae5d9446
Add rspec helpers for filesystem
2015-04-14 02:07:57 +00:00
Thibault Jouan
e9de59b37b
Manage run control file path in Env
2015-04-14 02:03:59 +00:00
Thibault Jouan
6cafd2ea37
Remove Runner.run factory specs
2015-04-14 02:02:43 +00:00
Thibault Jouan
d1cc294b67
Fix coding standards (unused vars in cucumber env)
2015-04-14 01:41:39 +00:00
Thibault Jouan
5e80648525
Fix error message in uhwm_wait_output UAT helper
2015-04-14 01:41:05 +00:00
Thibault Jouan
8a97f3c8b8
Move OtherWMRunningError message in the class
2015-04-13 21:39:01 +00:00
Thibault Jouan
53d83d5f08
Extract user acceptance test helpers in a module
2015-04-13 01:56:08 +00:00
Thibault Jouan
10591d0646
Fail when another window manager is already running
2015-04-13 01:29:35 +00:00