Daniel Hahler
6e53143401
tests/themes/run.sh: whitespace: sw=4
2017-08-24 23:16:53 +02:00
Daniel Hahler
e1da4b030f
tests/themes/run.sh: use themes from build dir
2017-08-24 23:16:53 +02:00
actionless
0a75f09d1d
fix(menubar: utils: parse_dir): print to log the current failed directory instead of the root one
2017-08-24 23:06:16 +02:00
actionless
960f59b228
fix(menubar: utils: parse_dir): print warning instead of error if directory can't be opened
2017-08-24 23:06:16 +02:00
Uli Schlachter
98e762e5f7
fix(tests: menubar): ignore warning about opening applications dir in /dev/null
2017-08-24 23:06:15 +02:00
Emmanuel Lepage Vallée
25dea5bd2a
drawin: add a `get()` function. ( #2013 )
...
Identical to `client.get()`. Same use cases.
2017-08-21 21:15:18 +02:00
Daniel Hahler
aa1ff23b19
Merge pull request #1992 from Veratil/string-funcs
...
Add two new gears.string functions: startswith, endswith.
2017-08-21 21:11:25 +02:00
Emmanuel Lepage Vallée
fd2307afd0
grid: fix an unavoidable assert ( #2017 )
...
`:add()` was called with the optional `...` arguments, but the
function required at least one argument.
2017-08-21 21:10:43 +02:00
Uli Schlachter
e7bf8de081
Add tests for gears.string.startswith and endswith
...
Signed-off-by: Uli Schlachter <uli.schlachter@informatik.uni-oldenburg.de>
2017-08-21 09:05:37 +02:00
Daniel Hahler
cdd58cc355
luacheck: enable cache ( #2004 )
...
* luacheck: enable cache
* Cleanup .gitignore: remove .build* and awesome
We only use the "build" dir by now, where also the "awesome" binary gets
created.
2017-08-20 22:50:30 +02:00
Daniel Hahler
784472f212
doc: improve/fix doc for awful.rules ( #2005 )
2017-08-20 13:37:03 -04:00
Emmanuel Lepage Vallée
a1911b5a23
Merge pull request #2014 from Elv13/doc_tests_and_notif_p1_4
...
mouse: Fix a bad refactoring
2017-08-20 13:35:09 -04:00
Emmanuel Lepage Vallee
ce3be7ca1b
object: Add support for signal forwarding
...
The CAPI signal system already has this mechanism.
2017-08-19 22:52:08 -04:00
Emmanuel Lepage Vallee
2303e31355
mouse: Fix a bad refactoring
...
The `wibox_under_mouse` property was renamed `current_wibox` but
a call wasn't updated.
2017-08-19 22:50:17 -04:00
Emmanuel Lepage Vallee
7e8f3e9b9b
widget: Add a flexible generic constructor
...
This avoid copy pasting this kind of code in many places.
2017-08-19 22:45:54 -04:00
SpiritCroc
a20dd4ad61
KeyboardLayout widget: add EurKey ( #2003 )
2017-08-17 17:21:40 +02:00
Uli Schlachter
202be62157
Automatically make LuaRocks modules available in awesome ( #1999 )
...
Running eval $(luarocks path --bin) before running awesome is not all
that easy. It's a lot easier to do the equivalent for this in rc.lua.
Plus, if LuaRocks is not installed, this will silently do nothing.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 23:32:04 +02:00
Luke Bonham
4fc3108e0f
Fix doc typos and optimised PNGs ( #2000 )
2017-08-16 20:07:08 +02:00
Daniel Hahler
2c741f8e1d
build: use --fatalwarnings with ldoc, remove check-ldoc-warnings ( #1963 )
...
Instead of having a custom target with redirection magic, just use
`--fatalwarnings` with ldoc. This requires ldoc 1.4.5.
2017-08-16 19:23:10 +02:00
Daniel Hahler
4604ce705d
Merge pull request #1979 from psychon/spawn_env
...
Allow setting environment vars for spawned processes
2017-08-16 13:37:57 +02:00
Uli Schlachter
12bb7f5a9e
Improve docs for emit_signal_recursive ( #1998 )
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:37:14 +02:00
Daniel Hahler
ef04fa688e
tests/themes/run.sh: use themes from source dir ( #1994 )
...
This makes it easier to track their coverage.
2017-08-16 13:27:49 +02:00
Uli Schlachter
a222e5c0af
spawn: Fix some comments and messages
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:23:19 +02:00
Uli Schlachter
9f8ff76079
awesome.spawn: Add a new argument for env
...
This adds a new argument to awesome.spawn that can be used to specify
the environment of the spawned process.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:23:19 +02:00
Uli Schlachter
aac519b946
Refactor spawn.c
...
This moves some code of parse_command() out into a new helper function.
No functional changes intended.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:23:19 +02:00
Uli Schlachter
cc0871498c
Make awesome.spawn() live up to its documentation
...
This function is documented to return "an error string if an error
occurred". However, the function actually threw a Lua error instead.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:23:19 +02:00
Uli Schlachter
2b6350009e
Fix a typo in spawn.c
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-16 13:23:19 +02:00
Daniel Hahler
cdaf0dd294
tests/run.sh: fix verbose mode ( #1997 )
...
Fixes https://github.com/awesomeWM/awesome/issues/1996 .
Also improves usage information.
2017-08-16 11:27:32 +02:00
Daniel Hahler
b8ad56ad81
Travis: build luarocks in /tmp also ( #1995 )
2017-08-16 10:57:23 +02:00
Daniel Hahler
e9adb28af6
Merge pull request #1973 from blueyed/tests-error-on-warnings
...
Tests: check-integration: error on warnings
2017-08-15 17:59:30 +02:00
Daniel Hahler
30df31509e
Travis: update luarocks: 2.3.0 => 2.4.2 ( #1977 )
2017-08-15 17:58:22 +02:00
Daniel Hahler
52548a2bee
tests/run.sh: add -v option, replacing/using VERBOSE
2017-08-15 16:58:24 +02:00
Kevin Zander
5d0e9fd9e3
Add startswith and endswith function to gears.string, change awful.completion to use startswith over local function
2017-08-14 10:48:12 -05:00
Daniel Hahler
934ad741a7
tests: keep check-themes separate from check-integration ( #1991 )
...
Ref: https://github.com/awesomeWM/awesome/pull/1973#issuecomment-322183782
2017-08-14 17:18:46 +02:00
Nick Diego Yamane
bfe58d65f1
docs: fix some typos/leftovers ( #1989 )
...
Signed-off-by: Nick Yamane <nick.diego@gmail.com>
2017-08-14 16:06:44 +02:00
Daniel Hahler
f8d1e46eaa
CMakeLists.txt: pass TEST_RUN_ARGS to tests/run.sh, default to -W
2017-08-14 16:00:35 +02:00
Daniel Hahler
062f9d6a15
tests/themes/run.sh: distinguish header from tests/run.sh
2017-08-14 13:42:13 +02:00
Daniel Hahler
730b706217
check-integration: fail on warnings
...
Those are most likely deprecation warnings, but the tests should be free
of warnings (from awesome) anyway.
The "Last main loop iteration took X seconds!" warning is filtered out.
2017-08-14 13:42:13 +02:00
Daniel Hahler
e852455308
tests/run.sh: add support for -W to turn warnings into errors
2017-08-14 13:42:13 +02:00
Uli Schlachter
eb7ee7072c
Fix an old todo in the docs ( #1981 )
...
This new paragraph might not be great and it certainly is less
informative than what the wiki said here (it suggested to use some
library for widgets and explained how to use it). However, this new
paragraph is definitely better than the todo that was here for far too
long.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-13 22:26:07 +02:00
Daniel Hahler
c33d85c195
Travis: update Lua/luajit; build in /tmp ( #1985 )
...
Building in /tmp avoids files to be looked at / searched for e.g. with
luacov.
2017-08-13 22:10:29 +02:00
Uli Schlachter
8166e2ff8b
Fix the example in the tooltip docs ( #1980 )
...
Reference: https://github.com/awesomeWM/awesome/pull/1978
Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-08-13 12:23:40 +02:00
Daniel Hahler
26f32f5ce4
tests/run.sh: cleanup: wait for process(es) to finish ( #1982 )
...
Ref: https://github.com/awesomeWM/awesome/pull/1967#issuecomment-321978955
2017-08-13 11:57:59 +02:00
Emmanuel Lepage Vallée
2900ea6f01
Merge pull request #1842 from psychon/lgi-check
...
Port lgi-check.sh to C
2017-08-12 15:59:18 -04:00
Daniel Hahler
4f0c71c737
Merge pull request #1967 from blueyed/test-themes
...
Test all themes
2017-08-12 14:16:31 +02:00
Daniel Hahler
1193007d34
Travis: remove custom AWESOME_THEME
...
It causes different code coverage paths, and loading for all themes is
tested by now.
2017-08-11 20:02:01 +02:00
Daniel Hahler
f698a17138
Add check-themes, which tests themes via tests/themes/
...
It relies on tests/run.sh to handle failures.
2017-08-11 20:01:37 +02:00
Daniel Hahler
f36738f115
tests/run.sh: allow to provide RC_FILE and theme/icon paths
2017-08-11 20:01:37 +02:00
Daniel Hahler
fbea595f60
tests/_runner.lua: write "Running step …" to stderr
2017-08-11 20:01:37 +02:00
Daniel Hahler
afb81640b5
Travis: use check-integration instead of tests/run.sh (coverage builds)
2017-08-11 20:01:37 +02:00