aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
| * tests: prevent busted from reloading the ffi module and othersJohn Szakmeister2015-03-01
| | | | | | | | | | | | | | | | | | | | | | It turns out that Busted started cleaning the environment in 2.0rc5 as a result of Olivine-Labs/busted#62. This, in turn, caused the ffi module to be reloaded for each spec file, and LuaJIT doesn't appreciate it. The net effect is an assertion error in LuaJIT. By using the --helper feature of Busted, we can pre-load some modules ahead of Busted and prevent it from reloading them--making LuaJIT happy again.
* | test: migrate legacy test 77 #2046Gustaf Lindstedt2015-03-08
| | | | | | | | Migrate legacy test 77 which tests mf_hash_grow() to lua/busted.
* | jobsend: Don't append extra newline after last itemBjörn Linse2015-03-03
|/ | | | This allows sending binary data that is not newline terminated
* Merge pull request #2075 from jszakmeister/dont-hardcode-tty-test-pathJohn Szakmeister2015-03-01
|\ | | | | tests: don't hardcode the path to tty-test
| * tests: don't hardcode the path to tty-testJohn Szakmeister2015-02-28
| | | | | | | | | | This fixes the build for those who drive the build directly using CMake.
* | tests: require luassert in the helpersJohn Szakmeister2015-03-01
|/ | | | | | | | This is necessary for newer versions of Busted, otherwise assert will be nil and the tests will die. Note: this does not mean the tests now work with the latest Busted. There are still several issues preventing that from happening.
* test: mark job/pty test as pending #2058Numkil2015-02-26
| | | | | - closes #2057 - see https://github.com/neovim/neovim/issues/2057 for discussion
* job: Allow spawning jobs connected to pseudo terminalsThiago de Arruda2015-02-23
|
* eval: Fix buffering of data in job autocommandsThiago de Arruda2015-02-23
| | | | | Job autocommands will no longer buffer data chunks that don't end in newlines characters.
* refactor: Remove term modules and termcap optionsThiago de Arruda2015-02-21
| | | | | | | | | | | | | | | - Removed term.c, term.h and term_defs.h - Tests for T_* values were removed. screen.c was simplified as a consequence(the best strategy for drawing is implemented in the UI layer) - Redraw functions now call ui.c functions directly. Updates are flushed with `ui_flush()` - Removed all termcap options(they now return empty strings for compatibility) - &term/&ttybuiltin options return a constant value(nvim) - &t_Co is still available, but it mirrors t_colors directly - Remove cursor tracking from screen.c and the `screen_start` function. Now the UI is expected to maintain cursor state across any call, and reset it when resized. - Remove unused code
* test: Add extra screen expectation to prevent race conditionThiago de Arruda2015-02-20
| | | | | This is to ensure ctrl+c is only pressed after the command has started executing in the viml_system_spec.lua system() interrupt test.
* test: Remove temporary files created by 072_undo_file_spec.luaThiago de Arruda2015-02-20
|
* test: Remove -g flag from pynvim call in Screen.debugThiago de Arruda2015-02-20
| | | | The flag is no longer valid(pynvim always starts a GUI)
* legacy test: migrate test 72Fabian Brosda2015-02-20
|
* input: Escape utf8 sequences that contain CSI/K_SPECIALThiago de Arruda2015-02-18
|
* Add TabClosed eventFelipe Morales2015-02-16
| | | | TabClosed is triggered when a tab page closes.
* Add TabNewEnteredFelipe Morales2015-02-16
| | | | TabNewEntered is triggered after vim has entered a buffer in new tab.
* Add TabNew eventFelipe Morales2015-02-16
| | | | | TabNew triggers when entering a new tab page, but not when entering an already created one.
* test: Fix 051_highlight_spec.luaThiago de Arruda2015-02-16
| | | | | | - The syntax `gui=` is invalid when setting properties of highlight group. - Wait for the initial "-- More --" prompt before continuing. Required to avoid a race condition
* syntax: Refactor to store all term and gui attributes independentlyThiago de Arruda2015-02-16
| | | | | Now the attrentry_T structure will store all attributes in separate fields for cterm and rgb UIs.
* test: Increase default_screen_timeout when running on travisThiago de Arruda2015-02-16
| | | | | | Some screen tests such as system/ctrl+c(viml_system_spec.lua) can take some time to respond(default kill timeout is 2 seconds for an interrupted job) and fail when running under a slow environment such as travis.
* test: Remove unnecessary tests from viml_system_spec.luaThiago de Arruda2015-02-16
| | | | | | The `system` function is never executed with these tests because the ctrl+c is queued with the input string that calls it(The `process_interrupts` function will destroy all previous input when a ctrl+c is found).
* test: Fix race condition in window_spec.luaThiago de Arruda2015-02-16
| | | | | Without waiting for the 'gg' command to be processed, its possible that the following assertion will fail.
* test: Add synchronization helper for functional testsThiago de Arruda2015-02-16
| | | | | The `wait` function will only return after all input has been processed by nvim. It is useful to time assertions correctly.
* api: always return empty string as api type StringBjörn Linse2015-02-16
|
* test: NULL-initialized vimscript strings should eval to empty stringsBjörn Linse2015-02-16
|
* FEAT_SIGNS: restore :signs wildmenu, and add test.Justin M. Keyes2015-02-15
|
* shadow previously set signs #1893Felipe Morales2015-02-13
|
* Merge pull request #1965 from jszakmeister/fix-fs-spec-test-for-freebsdJohn Szakmeister2015-02-11
|\ | | | | Fix an fs_spec test under FreeBSD and a symlinked home directory.
| * Fix an fs_spec test under FreeBSD and a symlinked home directory.John Szakmeister2015-02-09
| | | | | | | | | | | | | | | | | | | | It turns out the FreeBSD 10 VM has a symlink for the home directory to /usr/home. Unfortunately, this breaks the test as arg[0] may not have the symlink resolved, but the path returned from the exe() call will. As a result, the comparison fails, even though the result is correct. Let's fix this by running the absolute path through exe() too, and then comparing the results.
* | Merge pull request #1958 from ↵John Szakmeister2015-02-11
|\ \ | | | | | | | | | | | | jszakmeister/fix-unittest-header-parsing-on-freebsd unittests: define _Thread_local to be nothing
| * | unittests: define _Thread_local to be nothingJohn Szakmeister2015-02-09
| |/ | | | | | | | | This helps the LuaJIT ffi module to parse the header correctly. Otherwise, the whole suite of tests fail.
* | deps: Add Luajit compilation flags to improve debuggingThiago de Arruda2015-02-10
| |
* | Get rid of a bashism in the fs_spec test. #1964John Szakmeister2015-02-09
|/ | | | | FreeBSD doesn't use bash by default, causing the group id to be print out in the middle of the test.
* test: Remove nondeterminism in systemlist interrupt testsThiago de Arruda2015-02-06
| | | | | | | | | | The systemlist test currently calls the `echo` command which can potentially complete before being interrupted, causing random test failures. Use `yes | xargs` instead. A `yes` invocation that is not piped through `xargs` can produce a huge amount of lines in a very short time, leading memory starvation when the result is being converted into a list. `xargs` ensures only one line of output will be produced while allowing interrupt to be tested.
* api/vim: allow guis and tests to retrieve the entire color tableBjörn Linse2015-02-02
|
* test/ui: update documentation for screen testsBjörn Linse2015-02-02
|
* test/ui: enable strict mode by default (and in existing tests)Björn Linse2015-02-02
|
* test/ui: more informative "unexpected highlight" errorsBjörn Linse2015-02-02
|
* Travis: Fail fast, disable JIT for functional tests.Florian Walch2015-02-02
| | | | Disable JIT to find cause for random `PANIC: unprotected error in call to Lua API` on Travis (OS X).
* test: Mark unreliable test as pending in job_spec.luaThiago de Arruda2015-01-29
| | | | | | | `job_send` is non-blocking and can potentially fail due to the following `job_stop` call. Since we can't reliably verify that the "exit" event is only sent after the "stdout" event, mark the test as pending and fix after we can get a notification about `job_send` status.
* Fix the ctrl + left click test.John Szakmeister2015-01-28
| | | | | | | The test was hoping to not find a tags file, but didn't actively guard against it. In my case, I had a tags file present which was causing different output to be generated. To fix this, let's set the tags option to look for an unlikely filename.
* clipboard: more register tests for deleteBjörn Linse2015-01-27
|
* test: Migrate legacy test 107Thiago de Arruda2015-01-23
| | | | | This test depends on terminal size to work correctly. After migration this requirement is removed.
* test: Make default screen timeout depend on the VALGRIND env varThiago de Arruda2015-01-23
| | | | | | While running under valgrind, the screen can take significantly longer to update(especially on travis) so a higher timeout can be required. Also reduce the timeout when not running on valgrind.
* test: Fix hanging test suite after failuresThiago de Arruda2015-01-23
| | | | | | | | | | | | | | | | When a test that fails leaves nvim in a 'Press Enter...' state, the whole suite will hang because the `qa!` command executed before the next test won't be processed until '<enter>' is sent. Now the lua client can send a signal with when `Session:exit()` is called, so the `qa!` request is no longer necessary. Also: - Set noswapfile at startup to prevent tests from leaving .s* swap files(should also improve test environment determinism) - Use `assert(false, msg) instead of `error(msg)` to report screen assertion failures.
* tests/ui: strict modeBjörn Linse2015-01-23
|
* tests/ui: snapshot utilBjörn Linse2015-01-23
|
* test: Set some options to reduce nondeterminism in functional testsThiago de Arruda2015-01-22
| | | | | - shortmess+=I: Remove intro screen - background=light: Disregard COLORFGBG environment variable
* test: Make it possible to run functional tests with plain luaThiago de Arruda2015-01-22
| | | | Replace the hexadecimal escape sequences, which are only supported by luajit