Commit Graph

670 Commits

Author SHA1 Message Date
Foo 36b9c966e0 Use absolute path for -S
It appears that using relative path for -S is not the best idea and yields tmux 
calls from powerline-config not working.
2017-04-30 05:05:26 +03:00
Foo 908d767ec0 Give a name to tmux default statusline color 2017-04-30 05:05:25 +03:00
Foo b7a46eb7a8 Give some colors names 2017-04-30 05:05:24 +03:00
Foo 4a3f098f22 Use powerline.conf as it is supposed to be used 2017-04-30 05:05:22 +03:00
Foo fb769d7297 Refactor environment and expected results 2017-04-30 05:04:35 +03:00
Foo 14982fc693 Make tmux tests more sane 2017-04-30 01:38:59 +03:00
Nikolai Aleksandrovich Pavlov 5fa504118e Merge pull request #1642 from ZyX-I/wm-daemon
Use powerline daemon for running awesome bindings
2017-04-01 15:31:42 +03:00
Nikolai Aleksandrovich Pavlov 3aad562087 Merge pull request #1720 from welwood08/feature/optional-outer-padding
Make length of `output_padding` in renderer controllable
2017-02-19 15:00:54 +03:00
William Elwood 063a45672f Make length of `output_padding` in renderer controllable
Defaults to previous behaviour (length 1).
2017-02-19 11:43:46 +00:00
Foo dd707cc0a6 Temporary disable tmux and shell tests so that do not fail CI 2017-02-14 11:03:42 +03:00
Foo 19659189da Add support for unknown modes in Vim
Closes #1715
2017-02-06 16:32:45 +03:00
Elliott Sales de Andrade 6f32ca001c Use hglib instead of mercurial directly.
This wrapper uses the command server without tying it to the mercurial
internals, which means it can support Python 3 and use a more liberal
license.
2016-11-01 15:22:24 -04:00
Foo 64d96c833e Fix shell tests 2016-10-29 19:00:59 +03:00
Foo 19f9885825 Fix python tests by abstracting away default theme name 2016-10-29 15:58:53 +03:00
Foo be762da476 Provide explicit scope information in powerline.zsh
Fixes #1647
2016-09-17 18:24:47 +03:00
Foo 5784c0cbc6 Use powerline daemon for running awesome bindings
Also adds functional tests for awesome bindings.

Replaces #1641
2016-08-20 21:03:24 +03:00
Foo 0fc01e07be Allow ipython tests to fail 2016-07-09 16:53:39 +03:00
Foo 66c6de34ee Slow down IPython tests 2016-07-09 16:53:39 +03:00
Foo d89e7909d9 Fix tests 2016-07-08 22:04:54 +03:00
Phil Thomas 41a50fe5b2 Use different query to retrieve weather
Also switches geoip service.

Credit for fix to @gsusrafael

Fixes #1571
2016-05-15 13:42:53 +03:00
XZS f4cbeaff9b test Vim variant of stash segment 2016-04-27 16:54:36 +02:00
XZS a8f3d016a7 test git stash backend 2016-04-27 16:54:36 +02:00
XZS 802791e979 test stash segment 2016-04-27 16:54:35 +02:00
Iblis Lin e3369f200f Add `short` param for system_load segment
Testing included
2016-04-09 03:52:34 +08:00
Nikolai Aleksandrovich Pavlov a44c9a8ec9 Merge pull request #1542 from s-ol/i3-scratch
Add segments.i3wm.scratchpad
2016-03-20 04:50:44 +04:00
s-ol eec80dfb6c Add test for segments.i3wm.scratchpad 2016-03-20 01:22:10 +01:00
Foo e9b70b9edf Make Popen.communicate receive only bytes
Fixes #1547
Closes #1548
2016-03-19 23:07:01 +03:00
S0lll0s 623c1f85bc Add tests for i3wm listers and workspace segment 2016-02-04 04:43:26 +03:00
S0lll0s db99ad1d90 Refactor i3wm segment and lemonbar binding
Move get_i3_connection and get_xrandr_outputs into bindings.wm
2016-02-04 04:37:30 +03:00
Foo 646b0ea5ea Improve powerline-lemonbar documentation
Changes:

- Usage determination transferred back to argparse (it wraps).
- Added complete description of lemonbar script to wm-widgets.rst.
- --interval and --height got their arguments clarified by metavar: it was not
  clear what units they use.
- --bar-command got its metavar because it is better then default BAR_COMMAND.
- --bar-command short variant is now -C.
2016-01-08 19:30:49 +01:00
Foo 619ae9050e Lint test configuration 2016-01-08 19:30:49 +01:00
Foo b29988b7ec Add functional tests for lemonbar bindings 2016-01-08 19:30:49 +01:00
S0lll0s ee5f471b49 Deprecate "bar" bindings in favor of lemonbar 2016-01-08 19:30:49 +01:00
S0lll0s 7b60b941fd Let segment_info overwrite i3wm workspace output 2016-01-08 01:46:23 +01:00
Nikolai Aleksandrovich Pavlov eaa772f195 Merge pull request #1495 from ZyX-I/extended-logging
Add more logging options
2015-11-22 06:35:56 +03:00
Foo 3f59edc060 Add more logging options 2015-11-22 06:08:37 +03:00
John Drouhard 3f400f7d1a update test_tabline.vim with new tab:divider highlight group 2015-11-14 19:39:35 -06:00
John Drouhard a85b54d923 Update vim test module to implement 'getbufvar(...)'
This allows the tests for the buffer tablist to pass, since it now uses
getbufvar(nr, '&modified') to detect whether the buffer needs to be
modified
2015-11-14 19:39:35 -06:00
Nikolai Aleksandrovich Pavlov a7dc28fb4d Merge pull request #1472 from ZyX-I/pr-1426
Add hide_domain argument to common.env.user segment
2015-10-20 00:03:41 +03:00
= e0a62f9cf7 Add hide_domain argument to common.env.user segment
If true, this argument hides `@` and the following characters from the user
name.

Fixes #1420
Closes #1426
2015-10-19 23:53:23 +03:00
Nikolai Aleksandrovich Pavlov e041f0e6ac Merge pull request #1451 from QuLogic/virtualenv-conda
Show conda environment in virtualenv segment.
2015-10-19 23:50:05 +03:00
Foo 688e507967 Install old virtualenvwrapper for 2.6 UCS2 Python 2015-10-19 22:46:20 +03:00
Foo 76be911b81 Skip date test on PyPy3
See https://bitbucket.org/pypy/pypy/issues/2161/pypy3-strftime-does-not-accept-unicode
2015-10-06 01:46:25 +03:00
Håken Lid c6a6041b0d Allow unicode characters in time segment in Python-2 2015-10-06 00:40:54 +03:00
Elliott Sales de Andrade 56aa31a66d Show conda environment in virtualenv segment.
Either conda or virtualenv checks can be disabled using the new
ignore_venv or ignore_conda options to this segment.
2015-09-14 02:36:06 -04:00
Sean Fisk 105cf6666f Detect internal_ip interface from default gateway
Add the option to specify `interface='default_gateway'` to the
`internal_ip` segment, which displays the IP address of the interface
connected to the default gateway.
2015-09-05 18:00:55 -04:00
Sergei Trofimov eeaaf3930f updating tmux tests to expect window_flags in window status format 2015-08-27 09:05:13 +01:00
Nikolai Aleksandrovich Pavlov 5905ac22bf Merge pull request #1432 from S0lll0s/new-workspace
Add 'output' option to segments.i3wm.workspaces
2015-08-22 20:12:53 +03:00
S0lll0s 918dd957cf Add 'output' option to segments.i3wm.workspaces 2015-08-22 18:53:32 +02:00
Foo 959693fa97 Temporary fix for failing zsh tests 2015-08-22 18:05:07 +03:00
Foo b7bca615af Use tests/common.sh for reporting test failures 2015-08-22 17:29:44 +03:00
Foo 9f0665506b Rename …/test_in_vterm/test.sh to …/test_in_vterm/test_tmux.sh 2015-08-21 18:40:49 +03:00
Nikolai Aleksandrovich Pavlov 94cd0caa0f Merge pull request #1433 from ZyX-I/vim-move
Vim has moved to github, so tip and version tag got renamed
2015-08-21 18:20:43 +03:00
Nikolai Aleksandrovich Pavlov eba68f05cb Merge pull request #1404 from ZyX-I/tcsh-whitelist
Do not use tcsh, mksh, busybox and socat from deps
2015-08-21 18:18:56 +03:00
Foo fed3c70b81 Vim has moved to github, so tip and version tag got renamed 2015-08-21 18:13:26 +03:00
Fumihiro Xue f098ed2fe0 Add ac-charging indication for battery segment 2015-07-27 13:48:32 +08:00
Foo c184b2be12 Also do not use bot-ci mksh, busybox and socat dependencies
All of them were whitelisted:
- Mksh was whitelisted in travis-ci/travis-ci#3881.
- Busybox was whitelisted in travis-ci/travis-ci#3880.
- Socat was whitelisted in travis-ci/travis-ci#3883.
2015-07-09 22:54:49 +03:00
Foo dbe7e16520 Do not use tcsh from deps
Tcsh was unmasked according to travis-ci/travis-ci#3882 and can now be installed 
by travis.
2015-07-06 21:13:14 +03:00
Nikolai Aleksandrovich Pavlov b789437ce1 Merge pull request #1387 from mdeaudelin/develop
Fix dash bindings on OS X
2015-05-30 17:45:34 +03:00
Nikolai Aleksandrovich Pavlov 0ea0291fca Merge pull request #1371 from ZyX-I/clickable-tabs
Add support for clicking tabs in Vim
2015-05-29 22:54:22 +03:00
Foo b8c30facb7 Fix typo in multi_byte feature name 2015-05-29 22:25:56 +03:00
Foo c64570a50c Add unit tests 2015-05-29 22:25:56 +03:00
Foo c000805065 Update integration tests 2015-05-29 22:25:56 +03:00
Foo a718a10591 Add integration tests for tmux segment truncation 2015-05-23 16:11:08 +03:00
Foo fe3b3b1598 Automatically truncate tmux status line when needed
Closes #1328 (but not fixes it)
Closes #137 (not actually fixes it because I do not know some segment widths)
2015-05-23 16:11:08 +03:00
Nikolai Aleksandrovich Pavlov bf6191d144 Merge pull request #1372 from ZyX-I/pull-1366
Switch the underlying i3-IPC layer and deprecate i3bgbar bindings
2015-05-17 21:20:12 +03:00
Foo dd8868413b Add i3wm segment unit tests 2015-05-17 21:05:59 +03:00
Foo acb7c27a88 Use different highlight group for network_load divider
Fixes #1368
2015-05-17 12:01:11 +03:00
Mathieu Deaudelin c93829385b Fix dash bindings on OS X
Fixes two errors that occur while using Powerline with dash under
Mac OS X.

Problem:  Execution of the mktemp command fails on OS X.
Cause:    mktemp requires a mandatory argument (-t or full path)
Solution: Provide an absolute path as a template to the mktemp command.

Problem:  powerline executable fails to be called because its
          command line unexpectedly contains spaces.
Cause:    The _POWERLINE_JOBS variable contains spaces, because the wc
          command returns spaces before the number on OS X.
Solution: Trim the spaces before assigning the value to the variable.
2015-05-13 16:04:23 -04:00
Foo 450dbecb34 Mock realpath if it is not present 2015-05-10 23:05:57 +03:00
Foo 24176882ab Use force-removal of .git
Otherwise it may hang with message like

    rm: remove write-protected regular file `tests/bot-ci/.git/objects/pack/pack-589af67feed5a0f1d2c4cfb43325ab5165539bcc.pack'?
2015-05-10 22:47:18 +03:00
Foo 37a0c4dd24 Enable directory caching 2015-05-10 22:47:18 +03:00
Foo 8e8e396778 Switch to container-based infrastructure 2015-05-10 22:47:18 +03:00
Foo b88a16c98f Move from /opt to $HOME/opt 2015-05-10 22:47:18 +03:00
Foo e097f656c3 Fix main arguments parser tests 2015-05-10 22:23:19 +03:00
Foo 424d71ee57 Use different string for tmux-2.0 2015-05-10 15:33:43 +03:00
Foo a326153ba0 Disable fish tests
Properly fixing them is out of the scope of this PR
2015-05-10 15:07:03 +03:00
Foo d11ddd0bbf Add hostname executable when running shell tests 2015-05-10 15:07:02 +03:00
Foo d464ff84bb Fix warning when &l:statusline is set to a unicode value
This normally should not happen because &l:stl should be powerline-controlled,
but some plugins do this.

Fixes #1347
2015-04-17 22:36:23 +03:00
Foo 10c0c5be5d Add above tests for bash, fish and zsh 2015-03-01 17:25:03 +03:00
Foo 4a3798b43b Fix tcsh renderer: end prompt with a sequence that is not dropped 2015-03-01 17:25:03 +03:00
ZyX 3bf484de25 Break on self.quitting line
This may also cause python-3.2 pdb test to error out.
2015-02-21 19:55:39 +03:00
ZyX 68b43c59be Disable pdb PyPy tests completely
They currently fail for the reason that does not seem related to powerline
(though this problem did not occur before porting tests to pexpect, so this
should be somewhat related (somewhat: PyPy fails on code `return br'\u%04x'
% ord(c)` which is no a valid Python code (`%` can no longer be used with
`bytes()` obects), the whole situation only means that before using pexpect bug
in PyPy was not hit)).
2015-02-21 19:55:39 +03:00
ZyX 0058919c2b Remove blank lines from pdb output
It is the problem that causes python-3.2 pdb tests to fail on travis.
2015-02-21 19:55:39 +03:00
ZyX 9a89d4defa Do not special-case PyPy+ipython 2015-02-21 19:55:39 +03:00
ZyX 74e81bf788 Restore the timeout
There may be a reason for a test to take 3 minutes long, but there is no reason
for the test to take even half a minute long *without any output*.
2015-02-21 19:55:39 +03:00
ZyX 678faed4c2 Force destroying child after everything was done
Normally this line should not do anything useful.
2015-02-21 19:55:39 +03:00
ZyX b7c7d29aa0 Use “non-blocking” read and stop on TIMEOUT and EOF 2015-02-21 19:55:39 +03:00
ZyX deee40505d Do not repeat `if` more times then needed 2015-02-21 19:55:39 +03:00
ZyX 38a05b34d7 Do not use “which ipython” in echo since it is no longer relevant 2015-02-21 19:55:38 +03:00
ZyX 6a6991bcb4 Use 3 minutes for timeout 2015-02-21 19:55:38 +03:00
ZyX 7d98218b64 Do not wait, just .read()
.read() without arguments should read until EOF is received.
2015-02-21 19:55:38 +03:00
ZyX 0a87b558d9 Do not use child.wait(), it hangs 2015-02-21 19:55:38 +03:00
ZyX 0710f2760f Open log as binary file for writing
Child output is binary.
2015-02-21 16:11:04 +03:00
ZyX d5361337c1 Use script to test whether python zsh uses matches $PYTHON 2015-02-21 16:08:50 +03:00
ZyX 0f86bbf819 In place of running ipython executable run IPython module
This should fix the problem with using wrong ipython for tests.
2015-02-21 15:59:10 +03:00
ZyX b2ecb8ca84 Do not append PYTHON to *_REPO paths
$PYTHON variable is sometimes a full path which makes everything fail. It is
also useless move since directories are destroyed after tests and running two
test.sh scripts in parallel is not supported in any case.
2015-02-21 15:59:10 +03:00
ZyX bb6342c12a Tell tmux correct path to shell to use 2015-02-21 15:59:10 +03:00
ZyX d53c780071 Do not use absolute path for tmux socket
Absolute path is too long when using tests in ebuild.
2015-02-21 15:59:10 +03:00
ZyX 1e85f5df15 Disable vterm tests for PyPy completely 2015-02-21 15:59:10 +03:00
ZyX 22162a9656 Replace screen-based tests with pexpect-based tests
Currently works for all tests, but dash ones. Not much of a problem since dash
tests were disabled for being unstable.
2015-02-21 15:59:10 +03:00
ZyX 8524ee35e7 Ignore stderr from printf and env
socat may close pipe before they succeed to write something which results in

    env: write error: Broken pipe

(according to my experience leading printf’s always succeeds to write before
socat closes pipe).
2015-02-21 13:56:58 +03:00
ZyX e6b3bff50a Rerun main() only after running finally block 2015-02-21 04:35:56 +03:00
ZyX 5ecf50b4d8 Use different $HOME 2015-02-21 04:35:56 +03:00
ZyX 683691931d Make sure that there is at least one blank line after full log 2015-02-21 02:38:17 +03:00
ZyX fb0fba6c6d Do not modify $PATH and $LD_LIBRARY_PATH unless on travis 2015-02-21 02:38:17 +03:00
ZyX e7c381a63f Make sure USER and HOME variables are defined 2015-02-21 02:38:17 +03:00
ZyX be3fd917a9 Limit maximum amount of attempts to set register a 2015-02-21 02:38:16 +03:00
ZyX 75c5295a8c Adjust fish version tests for bot-ci-compiled fish 2015-02-21 00:08:12 +03:00
ZyX 0a0af212ad Allow specifying path to libvterm from environment
Uses POWERLINE_LIBVTERM environment variable.
2015-02-20 23:48:26 +03:00
ZyX 8629999379 Make sure that it is possible to use “system” libvterm.so 2015-02-20 23:47:18 +03:00
ZyX 02b31f36bd Only run fish tests for development version or for 2.1.2 and higher
Currently tests also test Vi key bindings support, but it is not in any release 
yet.
2015-02-20 23:37:13 +03:00
ZyX b349d6e390 Make sure that fish tests are not run for old fishes 2015-02-20 23:16:01 +03:00
ZyX 4d09f4fdb0 Do not run Vim tests if Vim is not available, fallback to system Vim 2015-02-20 22:39:50 +03:00
ZyX 8fff21d77b Set the default value for POWERLINE_TMUX_EXE 2015-02-20 22:36:39 +03:00
ZyX feb9a57dc0 Move code that prints tmux logs to test_tmux.py 2015-02-19 11:39:12 +03:00
ZyX f8ba6b021c Restart failed tmux vterm test a few times 2015-02-19 11:39:12 +03:00
ZyX 4c6a2e3e59 Also check that MIME type matches during tests
MIME type names are inconsistent across different systems, so only first
component is used. For example, `file` in Travis Ubuntu detects Python scripts
as `text/x-java`, in Gentoo these are `text/x-python`.

Travis Ubuntu also uses magic file format different from the one
sys-apps/file-5.22 from Gentoo has, making it impossible to fix the issue by
just copying the files from my system.
2015-02-19 02:48:03 +03:00
ZyX 66c6128b66 Wait less in vterm tmux tests 2015-02-07 11:14:09 +03:00
ZyX 92d4beffa4 Wait more before failing tmux vterm tests
May fix random test failures.
2015-02-07 05:00:37 +03:00
ZyX d57be8324a Do not alter the way keys are fed with PyPy 2015-02-02 00:12:06 +03:00
ZyX f4e3c3099f Remove everything up until `class Foo(object):` in pdb tests
PyPy3 displays prompt two times on the line where `s` is present.
2015-02-01 12:13:56 +03:00
ZyX c3e541d16a Remove empty lines 2015-02-01 12:08:09 +03:00
ZyX 0db8154b9a Document how to pdb bindings with Python-2.6 and update tests 2015-01-31 21:44:43 +03:00
ZyX e63a1c7cb5 Display the log after long wait 2015-01-31 21:34:26 +03:00
ZyX f9d65fb34d Do not wait for too long in do_run_test 2015-01-31 20:25:40 +03:00
ZyX 2ef5107628 Import overrides from environment in PDB prompts 2015-01-31 20:23:10 +03:00
ZyX f74320fba8 Add unit tests for pdb segments 2015-01-31 18:54:13 +03:00
ZyX ef02ab70fb Also test powerline.bindings.pdb module 2015-01-31 18:52:04 +03:00
ZyX 47dbdd571d Add pdb integration tests 2015-01-31 18:52:04 +03:00
ZyX 1e7dc7900d Fix issues found in 1256 pull request
Ref #1256
2015-01-25 12:51:19 +03:00
S0lll0s dd77d420a3 Add BAR (bar ain't recursive) renderer and fitting i3 bindings 2015-01-25 12:26:13 +03:00
ZyX 332a266d87 When testing Vim do not rely on test order and do not save state
This commit refactors `TestVim` test class in test_configuration so that

1. `test_environ_update` does not leave state (value of `powerline_config_paths` 
   global Vim variable) behind other tests can use.
2. `test_local_themes` does not rely on state left from `test_environ_update`, 
   instead using new facility for providing needed value of 
   `Powerline.get_config_paths` call. This facility will be used later in BAR 
   tests.

Ref #1256
2015-01-25 01:58:27 +03:00
ZyX 71322dfe5b Use st-256color terminal for tests
Reasoning:

1. vt* TERMs (used to be vt100 here) make tmux-1.9 use different and identical
   colors for inactive windows. This is not like tmux-1.6: foreground color is
   different from separator color and equal to (0, 102, 153) for some reason
   (separator has correct color). tmux-1.8 is fine, so are older versions
   (though tmux-1.6 and tmux-1.7 do not have highlighting for previously active
   window) and my system tmux-1.9a.
2. screen, xterm and some other non-256color terminals both have the same issue
   and make libvterm emit complains like `Unhandled CSI SGR 3231`.
3. screen-256color, xterm-256color and other -256color terminals make libvterm
   emit complains about unhandled escapes to stderr.
4. `st-256color` does not have any of the above problems, but it may be not
   present on the target system because it is installed with x11-terms/st and
   not with sys-libs/ncurses.

For the given reasons decision was made: to fix tmux-1.9 tests and not make
libvterm emit any data to stderr st-256color $TERM should be used, up until
libvterm has its own terminfo database entry (if it ever will). To make sure
that relevant terminfo entry is present on the target system it should be
distributed with powerline test package. To make distribution not require
modifying anything outside of powerline test directory TERMINFO variable is set.
2015-01-18 05:15:47 +03:00
ZyX 25a56df98b Remove irrelevant logs 2015-01-18 05:15:47 +03:00
ZyX 71d7e3921f Also supply LD_LIBRARY_PATH when killing server 2015-01-18 03:50:12 +03:00
ZyX c93a1b79b3 Run tests for all tmux versions present in deps 2015-01-18 02:47:38 +03:00
ZyX 2debb7c146 Update code according to the changes in deps repository 2015-01-18 02:42:24 +03:00
ZyX 6f6c466bc3 Make sure LD_LIBRARY_PATH and PYTHONPATH are exported
LD_LIBRARY_PATH is required for UCS2 CPython versions.
2015-01-17 00:41:28 +03:00
ZyX f0d0ad1bfd Make sure PyPy3 is not used with vterm tests 2015-01-17 00:26:12 +03:00
ZyX 1e25c5ec42 After failing tmux vterm tests run powerline-config
Its output may give some clue.
2015-01-17 00:26:12 +03:00
ZyX a0edcccecf Increase sleeping time
It appears that just one second is not enough for travis
2015-01-17 00:26:12 +03:00
ZyX 44273f299b Do not print the whole screen unles something went wrong 2015-01-17 00:26:12 +03:00
ZyX faef4585b2 Add support for old tmux versions in tests
Tmux-1.6 does not have special highlighting for previously active window. Other
then that view is identical.
2015-01-17 00:26:12 +03:00
ZyX 9db1e7b76e Use tmux executable from fake PATH for running tmux
Otherwise with system tmux present it may appear that subprocess.check_call will
use it instead.
2015-01-17 00:26:11 +03:00
ZyX 93acec238e Create vterm-based tests that will test tmux support
It is possible that they eventually will be used also for shells: at least this
makes using postproc.py with all its hacks not needed.
2015-01-17 00:26:11 +03:00
ZyX 9511c45e6f Make sure to remove logs before retrying 2015-01-09 17:42:20 +03:00
ZyX 0a8e94d031 When using `rc` remove “read() failed” messages 2015-01-09 17:40:05 +03:00
ZyX c6bf5fb512 Add support for Byron Rakitzis’ rc shell reimplementation
Fixes #1238
2015-01-08 03:32:13 +03:00
ZyX d6e0dc7169 Use more then one attempt to run shell tests
They are rather unstable, especially IPython + PyPy, but others also are.
2015-01-08 03:12:11 +03:00