Commit Graph

362 Commits

Author SHA1 Message Date
ZyX fcc397100e Wait for screen to initialize, based on screen exit status
Otherwise bash tests tend to fail randomly
2014-08-10 18:19:48 +04:00
ZyX fdd8f6df3c Wait for pid file to appear
Should fix some rare bash test failures
2014-08-10 17:10:35 +04:00
ZyX 7ade6d1fc0 Use busybox as shell name in place of bb
Conflicts:
	tests/test_shells/test.sh
2014-08-10 17:02:07 +04:00
ZyX 01185eb9c8 Use bgscript.sh in place of direct bash call 2014-08-10 16:58:55 +04:00
ZyX 9d1392fa0d Fix vim emulation module 2014-08-10 16:26:22 +04:00
ZyX f51134deef Run shell tests in an isolated environment 2014-08-10 16:13:33 +04:00
ZyX 3c03240530 Remove tests/shell iff there are no failures 2014-08-10 16:13:33 +04:00
ZyX 99c9f730e0 Do not omit running tests without ONLY_SHELL set 2014-08-10 16:13:33 +04:00
ZyX 310af9ae75 Prefer powerline bindings directory over fish_function_path 2014-08-10 16:13:33 +04:00
ZyX 17b32b1765 Make ipython accept paths, not a single path 2014-08-10 16:13:32 +04:00
ZyX c3e2358931 Also install ipython on Python-3.3+ 2014-08-06 18:12:59 +04:00
ZyX 863264cd99 Disable virtualenv segment, also test config_overrides 2014-08-06 18:09:57 +04:00
ZyX accb174b8b Do not install ipython when using python-2.6 2014-08-06 18:06:54 +04:00
ZyX 3e43995d2c Use pip to install ipython, not apt-get
I am very unsure that it will install ipython for all required python versions
2014-08-06 17:21:01 +04:00
ZyX c403eef434 Add ipython shell tests 2014-08-06 17:18:42 +04:00
ZyX ed70cc2eb2 Fix tests 2014-08-06 13:47:11 +04:00
ZyX 625aa243d6 Use ascii theme in local overrides 2014-08-06 02:25:24 +04:00
ZyX 48254ea657 Use more precise error messages in test_tabline.vim 2014-08-06 01:33:37 +04:00
ZyX bdde4ae99f Implement theme hierarchy
Fixes #783
2014-08-06 00:05:04 +04:00
ZyX 117661e186 Add tests for visual_range 2014-08-05 22:49:53 +04:00
ZyX 0f4e1bafda Refactor config_mock module to not use globals and fix tests 2014-08-05 13:56:02 +04:00
ZyX 01585edeab Fix errors reported by linter, allow running it during tests 2014-08-05 13:56:02 +04:00
ZyX 27db44ac7a Implement configuration merging
Fixes #418
2014-08-05 13:56:02 +04:00
ZyX 50703f1cef Fix unicode/bytes handling for python-3 2014-08-04 00:07:30 +04:00
ZyX 74a3c9a0ca Add file_scheme segment
Fixes #207
2014-08-03 23:58:34 +04:00
ZyX 3d1f9bfbbd Allow multiple arguments to `powerline[-lint] --config_path` 2014-08-03 22:22:59 +04:00
ZyX 120a9cc8fa Add winnr segment
Closes #705
2014-08-03 13:25:58 +04:00
ZyX f877516e54 Add bufnr segment
Ref #705
2014-08-03 13:25:58 +04:00
ZyX 43acf07ca0 Modify test_tabline to also test bufline 2014-08-03 12:53:53 +04:00
ZyX 6cf0c485fa Add single_tab segment 2014-08-03 12:53:53 +04:00
ZyX 85f252652e Add tabnr segment 2014-08-03 12:53:53 +04:00
ZyX 1907708e98 Add support for has_key(gettabwinvar()) in vim test module 2014-08-03 12:53:16 +04:00
ZyX b99ad3904e Remove some __nonzero__ methods in tests/vim.py
Just __len__ is good enough here
2014-08-03 12:53:15 +04:00
ZyX 07c533d1b2 Test tabline in test_tabline.vim file 2014-08-03 12:53:15 +04:00
ZyX ff91ff7f92 Update tests to work with new functionality
Still no tests for new functionality.
2014-08-03 12:53:15 +04:00
Collin Grady f615d85172 Added line_count segment for vim.
Returns total number of lines in current buffer.

Addresses #556
2014-08-03 05:54:57 +00:00
ZyX 44cca97566 Check whether daemon log is as empty as it should 2014-08-02 22:03:22 +04:00
ZyX 28aee92c51 Fix zsh daemon tests: disable hostname and user before testing select
Reason: hostname and user do not have stable width and select prompt width with 
daemon depends on previous prompt width.
2014-08-02 21:56:37 +04:00
ZyX 9da3e04bc2 Do not hardcode scripts/powerline in input.* 2014-08-02 21:31:01 +04:00
ZyX fed43e8af5 Run shell tests with and without daemon 2014-08-02 21:31:01 +04:00
ZyX 9e8c115eea Add trailing whitespace segment
Note: by default this segment is disabled. Until #923 it may only be enabled by
copying the whole file and changing "enabled" to "true". After #923 it may be
enabled by having `~/.config/powerline/themes/vim/default.json` with the
following contents:

    {
        "segment_data": {
            "trailing_whitespace": {
                "display": true
            }
        }
    }

Fixes #388
2014-08-02 18:39:16 +04:00
ZyX 16c01e8d64 Add support for display option 2014-08-02 18:37:22 +04:00
ZyX 6a081685e5 Fix “syntax error near unexpected token `fi'” error 2014-07-28 03:36:15 +04:00
ZyX d1b62eba45 Disable dash tests
Temporary fix for #931
2014-07-28 03:30:51 +04:00
ZyX d0c4d4e266 Ignore IOError’s in ConfigLoader.update
Fixes #932
2014-07-26 01:46:54 +04:00
ZyX a279ea236c Also check error messages 2014-07-26 01:46:54 +04:00
ZyX 97e4ee6799 Document why `stuff` and waiting are used for dash 2014-07-20 02:04:44 +04:00
ZyX 855e33274e Fix travis build: on travis “Terminated…” message is truncated 2014-07-20 02:00:56 +04:00
ZyX 5425c06476 Add tests for new functionality 2014-07-20 01:53:25 +04:00
ZyX b2406d983d Disable libzpython support in zsh 2014-07-20 00:43:19 +04:00
ZyX 82e433906c Fix shell tests: VIRTUAL_ENV is not accessible by powerline by default 2014-07-20 00:35:37 +04:00
ZyX f5735148e8 Add group aliasing and colorscheme hierarchy tests 2014-07-12 14:22:23 +04:00
ZyX 3ebf9c1a81 Use highlighted_string function to define segments 2014-07-12 14:08:05 +04:00
ZyX 576971c5f1 Fix test class name in test_configuration 2014-07-12 13:48:04 +04:00
ZyX 9af7834463 Disable shell tests in PyPy
Do not let PyPy SEGVs result in failed build.
2014-07-12 13:46:28 +04:00
ZyX 621eb8412d Fix tests 2014-07-12 12:20:40 +04:00
ZyX 97266b7ffc Initial support for #770
What was done:
- Implemented loading using configuration hierarhy as proposed in the issue
- Implemented group aliasing

What was not:
- Some tests (config_reload) are failing
- Other (test_configuration) are spamming console with unexpected messages
- No support for powerline-lint
- No tests for new functionality
- Specifically I have not checked whether group aliasing actually works
- Colorschemes were not ported

Some other things: I have named this branch `config-ng` because I have other
ideas about configuration and it would be good to include them making only one
possibly backwards-incompatible merge commit instead of many. Specifically I am
going to rebase `merge-config` branch here.
2014-07-12 12:20:40 +04:00
ZyX 128921454f Correct _construct_result for Python-3 2014-07-10 23:24:58 +04:00
ZyX a92d72b5d7 Respect the fact that vim.eval in Vim returns str instances 2014-07-10 22:54:27 +04:00
ZyX 3ac75eeca6 Add window_title tests 2014-07-10 22:33:10 +04:00
ZyX f9af425054 Add missing winnr key to segments_dictionary 2014-07-10 22:33:10 +04:00
ZyX e436bdbbfa Remove failing _index, use (self.number - 1) instead 2014-07-10 22:33:10 +04:00
ZyX 3f8c8c9426 Prefix _Windows.{append,insert,pop} methods with underscore
There are no such methods in Vim.
2014-07-10 22:32:59 +04:00
ZyX 0ab80742c4 Add _with('wvars') 2014-07-10 22:21:29 +04:00
ZyX a3e29a6cd6 Get rid of lots of NotImplementedError’s in travis log 2014-07-10 22:12:08 +04:00
ZyX 0fc7856b1b Rename create_renderer_kwargs to cr_kwargs for consistency 2014-07-10 21:27:41 +04:00
ZyX 289094362e Rename find_config_file to _find_config_file 2014-07-10 21:27:41 +04:00
ZyX 871ce5727b Set use_mercurial and use_bzr to False in PyPy 2014-07-10 19:49:37 +04:00
ZyX 19195159ad Only install mercurial and bazaar if using CPython 2014-07-10 19:36:20 +04:00
ZyX e2a49417b6 Default line_percent_gradient to (light|dark)_green_gray gradients
dark_green_gray gradient was generated with

    tools/generate_gradients.py 70 247

. It is used for non-insert modes in the current window. light_green_gray
gradient was generated with

    ./tools/generate_gradients.py 148 250

. It is used for insert mode in the current window.
2014-07-10 18:56:40 +04:00
ZyX a0a5b44173 Use battery_full and battery_empty for displaying hearts
Red hearts for battery full are still more optimal in case white hearts are for
empty (though I do not understand why they have to be red). Cannot agree about
per cents though: red is better for empty then white is if there are no related
parts to compare.
2014-07-10 18:35:24 +04:00
ZyX 39316c429b Reverse the gradient in battery segment
Closes #910
2014-07-10 18:35:23 +04:00
ZyX 473f647fc8 Fix test_local_overrides.vim test broken by better-gradient branch 2014-07-06 22:42:28 +04:00
ZyX 623395a013 Remove outdated comment 2014-06-28 22:18:45 +04:00
ZyX d7d8108230 Fix error in python-3* that happens while checking branch name 2014-06-28 22:12:41 +04:00
ZyX 4d4da56838 Check whether it runs fine in travis 2014-06-28 21:46:12 +04:00
ZyX 317f4be43f Add tests for git symlinks 2014-06-28 21:45:24 +04:00
ZyX c570a98065 Add watcher option
Ref #818
2014-06-28 21:10:15 +04:00
ZyX 6f6c1fb90c Add tests 2014-06-25 20:05:24 +04:00
ZyX 515df615bf Add some basic tests 2014-06-24 23:36:50 +04:00
ZyX f02807ffa4 Rename test_configuration to test_provided_config_files 2014-06-24 21:38:07 +04:00
ZyX be2fe98a21 Add support for omitting VALUE
This will remove error reported in #853, but not its cause
2014-05-04 13:01:29 +04:00
ZyX e51d7a9dd3 Add fuzzy_time(unicode_text) argument 2014-03-13 20:54:07 +04:00
ZyX 3f1e621f1d Add ellipsis argument to cwd segment 2014-03-13 20:47:06 +04:00
ZyX c3b4654bfb Fix flake8 complaints 2014-03-13 20:41:54 +04:00
ZyX 55858e1a9d Fix tests for new psutil 2014-03-13 20:05:52 +04:00
ZyX acff89a8e9 Remove useless lock 2014-02-26 08:15:26 +04:00
ZyX ba41cecb72 Add powerline.lib.threaded tests 2014-02-23 15:18:20 +04:00
ZyX 68a6fd056c Use monotonic() in place of time.time() 2014-02-23 14:44:36 +04:00
ZyX 58d5d6b078 Remove failing test 2014-02-16 21:22:05 +04:00
ZyX a86c66f4e0 Update zsh tests
Note: to make prompt fancy enough powerline-daemon should be used. Otherwise 
continuation prompt length is different from what was expected:

With daemon:

    user > env > path > if true ; then
                 then > fi

Without:

    user > env > path > if true ; then
    then > fi

Fixes #771 as I do not want to touch tcsh any longer
2014-02-16 21:15:57 +04:00
ZyX 5c33de7a24 Also test zsh local themes 2014-02-16 20:52:22 +04:00
ZyX 8718bf76ce Add tests for continuation segment 2014-02-16 20:41:01 +04:00
ZyX 66d98e7def Improved battery segment:
- Ignore `steps` if gamify is False.
- Add `full_heart` and `empty_heart` keywords.
- Document `format` keyword.
- Replace `draw_soft_divider` with `draw_inner_divider`.
2014-02-09 13:44:06 +04:00
Joshua Perry c4fb09a418 Update tests to support parameter on _get_capacity() 2014-02-09 02:36:19 +04:00
ZyX 773d6a6600 Also use --allow-unverified 2014-02-09 01:25:18 +04:00
ZyX 5e4daed72b Install bazaar with --allow-external 2014-02-09 01:22:50 +04:00
ZyX d85ae963c3 Sleep more 2014-01-30 09:00:33 +04:00
ZyX c648178be0 Strip anything but prompt from tcsh tests
There are some problems with a number of spaces on travis: it differs. Cannot 
use the same code as for fish because output looks like

    {prompt}{spaces}^[0m ^[[{number}D

and both `{spaces}` and `{number}` differ on my machine and in travis.
2014-01-27 00:22:38 +04:00
ZyX fe99e252e9 Add tcsh tests 2014-01-27 00:10:48 +04:00
ZyX-I a4e8f36f36 Merge pull request #706 from ZyX-I/better-errors
Better error handling
2014-01-26 10:43:16 -08:00
ZyX bb343765b0 Add powerline: exception prefix 2014-01-26 22:45:11 +04:00
ZyX 6ba13c1d0f Modify appropriate theme 2014-01-26 22:35:02 +04:00
ZyX 8984647106 Add tests 2014-01-26 22:27:28 +04:00
ZyX a571f49b3d Get rid of printf 2014-01-26 21:59:33 +04:00
ZyX 480434331f Add tests for special characters escaping 2014-01-26 21:45:02 +04:00
ZyX e3bf63e55c Do not do needless copying in test_shells/test.sh 2014-01-26 21:30:01 +04:00
ZyX e7820efe56 Make powerline work with non-utf filenames
Fixes #281
2014-01-26 21:01:19 +04:00
ZyX e489e549a6 Move setup to powerline-setup.fish
This file is supposed to be placed in /usr/share/fish/functions.
2014-01-23 19:32:19 +04:00
ZyX 64e23d346e Merge branch 'patch-1' into develop
Fixes #724
2014-01-23 18:45:46 +04:00
ZyX b75d2b531f Add tests 2014-01-23 18:45:09 +04:00
ZyX-I 79c4d37814 Merge pull request #696 from ZyX-I/fish
Add powerline/bindings/fish/powerline.fish
2014-01-23 06:36:58 -08:00
ZyX 9fcfd54d90 Disable fish tests on travis 2014-01-23 18:33:33 +04:00
ZyX b37940235c Also print shell version string 2014-01-23 16:41:29 +04:00
ZyX d75f47a0c7 Use `.` for sourcing in fish
It appears that travis uses fish version without this command. Though `.` is 
deprecated on new versions it is still supported for backwards compatibility, 
thus may be used here.
2014-01-23 16:32:18 +04:00
ZyX 8b341c622e Make XDG_CONFIG_HOME point to writeable location 2014-01-23 16:14:32 +04:00
ZyX 12aa69a0c2 Also output full.log
Hope it will give some hints about why fish tests fail on travis
2014-01-23 15:58:52 +04:00
EinfachToll 10cd7b78f0 More test cases for position segment 2014-01-23 09:23:53 +01:00
ZyX 6004403947 Another attempt to fix fish on travis 2014-01-23 07:45:35 +04:00
ZyX 2f98276ee0 Make postproc.py only leave fish prompt
Should fix fish tests
2014-01-23 07:36:54 +04:00
ZyX 166f827c9f Improve test_shells/test.sh:
- Add argument that makes it run only one shell
- Make this argument also force skipping removal of tests/shell directory
- Make it copy logs to tests/shell before and after processing
2014-01-23 07:36:08 +04:00
ZyX 11f86e77b0 Add fish tests 2014-01-22 08:33:43 +04:00
EinfachToll 90132fe386 Small fixes for new position segment
- use vim_funcs
- use a dictionary instead of a tuple for translation strings
2014-01-21 15:48:05 +01:00
EinfachToll 45e4650d5c Merge branch 'develop' into feature/539-position-segment 2014-01-21 15:40:05 +01:00
ZyX a590e100a2 Fix functional shell tests in travis
Hostname in travis contains random numbers meaning that it occasionally may 
contain a PID as well. Thus it must be replaced first.
2014-01-19 17:26:31 +04:00
ZyX 2b171cff67 Try to workaround problems with last line in travis 2014-01-18 01:59:19 +04:00
ZyX-I 2a525ae4f8 Merge pull request #667 from kovidgoyal/fix-git-branch-name
Fix git branch name sometimes getting stuck with inotify
2014-01-17 10:20:25 -08:00
ZyX 56ef798218 On travis there are differences in CRs for some reason
This commit strips CRs from *.ok files and test output. Test failure used to be 
not recognized due to pipe: `cat -v` always succeeds meaning that `if ! diff 
… | cat -v` always succeeds too.
2014-01-17 21:34:18 +04:00
ZyX ac9703e04c Also check for jobnum 2014-01-17 20:54:47 +04:00
ZyX a71c49d96b Add tests 2014-01-17 20:51:38 +04:00
EinfachToll 7aa978fdba New fixed segment showing position of current view
Solves #539
Fixed version of #540 and #579
Works now for split windows and wrapped lines.
2014-01-15 10:32:04 +01:00
ZyX 31f85800b6 Merge branch 'kruton-develop' into develop
Fixes #748
2014-01-14 23:42:22 +04:00
Kenny Root c33d56e73c Add arg to optionally suppress user segment
This adds the option to common.user to suppress display if the username
matches the given string in the new "hide_user" argument.
2014-01-13 23:57:41 -08:00
ZyX 2e713269ae Always show hostname (travis is ssh), fix jobnum in zsh 2014-01-14 00:18:34 +04:00
ZyX 0f0a5e92d3 Replace sed with python script
sed escaping is wrong: e.g. re.escape() will escape `+`, but with BRE escaped 
plus is quantifier
2014-01-13 22:37:33 +04:00
ZyX 03245f192b Also replace $USER with USER 2014-01-13 22:11:52 +04:00
ZyX b16943292b Add missing zsh.ok 2014-01-13 22:04:44 +04:00
ZyX d1793fac61 Run apt-get with sudo and -qq like suggested in travis documentation
Documentation though suggests using before_install. Not sure why.
2014-01-13 21:48:09 +04:00
ZyX b55c5da336 Also install screen 2014-01-13 19:48:12 +04:00
ZyX d9c62d4796 Add zsh functional tests 2014-01-13 19:47:58 +04:00
ZyX 6c27506270 Move tests/test_shells/input.sh to tests/test_shells/input.bash 2014-01-13 01:07:13 +04:00
ZyX 6996896b22 Made it use screen for testing 2014-01-13 00:53:38 +04:00
ZyX 55957ec3cb Move shell testing to tests/test_shells/test.sh 2014-01-12 23:45:17 +04:00
ZyX bb9034adcf Replace zyx-desktop with HOSTNAME 2014-01-11 13:52:07 +04:00
ZyX ed99b09e86 Use get_output function 2014-01-11 13:36:02 +04:00
ZyX 301dbf2bd3 Add a few empty lines, rename bash directory to 3rd 2014-01-11 13:31:57 +04:00
ZyX f20792bb38 Add bash functional tests 2014-01-11 13:16:25 +04:00
ZyX 73d7b0db08 Add functional tests for plugin themes 2014-01-11 11:51:58 +04:00
Kenny Root 54e7fe91ba Fix common.user test
The username was being cached from previous tests, so clear it before
running this test.
2014-01-10 14:15:54 -08:00
ZyX 4f80468645 Fix tests broken due to jobnum introduction 2014-01-10 23:17:06 +04:00