aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* test/job: Implement some basic jobs tests.Scott Prager2014-10-28
|
* test/shell: Add failure tests for `system()`.Scott Prager2014-10-28
|
* test: Small fixes and improvements to functional helpers.luaThiago de Arruda2014-10-28
| | | | | | | | - Move the cleanup function definition into `restart()` so restart can be selectively used as a hook - Improve error handling: Before this, errors while running the event loop would cause busted to get stuck. Now the error is properly raised by stopping the event loop first.
* test: verify that msgpacks-rpc exceptions are workingThiago de Arruda2014-10-23
|
* job: Refactor to ensure that all callbacks will be invokedThiago de Arruda2014-10-23
| | | | | | | | | | | | | | It's possible that a child process won't close it's standard streams, even after it exits. This can be evidenced with the "xclip" program: :call system('xclip -i -selection clipboard', 'DATA') Before this commit, the above command wouldn't return, even though the xclip program had exited. That is because `xclip` wasn't closing it's stdout/stderr streams, which would block pending_refs from ever reaching 0. Now the job.c module was refactored to ensure all streams are closed when the uv_process_t handle is closed.
* legacy tests: migrate test35. #1318Nate Sullivan2014-10-22
| | | | | Migrate vim's integration test 35 (increment/decrement commands) to lua/busted.
* test: verify that v:shell_error is set by `system()`/`systemlist()`Thiago de Arruda2014-10-22
|
* test: Use lua to perform sanity API checksThiago de Arruda2014-10-16
| | | | | | | Sanity API checks made by the python-client in the api-python travis target were converted to lua and will now live in this repository. This will simplify performing breaking changes to the API as it won't be necessary to send parallel PRs the python-client.
* test: Remove run-functional-tests.pyThiago de Arruda2014-10-16
| | | | | | Now that the lua client is available, python/lupa are no longer necessary to run the functional tests. The helper functions previously defined in run-functional-tests.py were adapted to test/functional/helpers.lua.
* test: Add some specs for the viml function `system()`Thiago de Arruda2014-10-01
| | | | These new specs replace src/nvim/testdir/test_system
* test: Add 'eval' functional helperThiago de Arruda2014-10-01
| | | | | The eval helper transforms vimL expressions into lua tables, it's useful for verifying function output.
* test: Move 'test/legacy' to 'test/functional'Thiago de Arruda2014-10-01
| | | | | | Busted can only discover tests from a single directory. In order to allow tests under 'legacy' to run as a functional test, it needed to be moved to 'test/functional'.
* test: Replace vroom by lua/busted for functional testsThiago de Arruda2014-09-30
| | | | | | | | | | | | | | | | | | | | | The 'lupa' python package provides a simple way to seamless integrate lua and python code. This commit replaces vroom by a python script that exposes the 'neovim' package to a lua state, and invokes busted to run functional tests. This is a temporary solution that will enable writing functional tests using lua/bused while a lua client library is not available. The reason for dropping vroom is flexibility: Lua/busted has a nice DSL-style syntax while also providing the customization power of a full programming language. Another reason is to use a single framework for unit/functional tests. Two other changes were performed in this commit: - Instead of "gcc-unittest/gcc-ia32", the travis builds for gcc are now identified by "gcc/gcc-32". They will run unit/functional tests for both 64 and 32 bits. - Old integration tests(in src/nvim/testdir) are now ran by the 'oldtest' target
* update os_can_exe unit testScott Prager2014-09-17
|
* vim-patch:7.4.235Scott Prager2014-09-17
| | | | | | | Problem: It is not easy to get the full path of a command. Solution: Add the exepath() function. https://code.google.com/p/vim/source/detail?r=5ab2946f7ce560985830fbc3c453bb0f7a01f385
* unit tests: initialize everythingJustin M. Keyes2014-09-11
|
* unit tests: avoid global scope; add missing cimportsJustin M. Keyes2014-09-11
| | | | temporarily comment out call to vim_deltempdir() to avoid segfault
* unit tests: helpers.lua: hack to avoid empty popen() resultJustin M. Keyes2014-09-11
|
* fileid: rename os_file_id_equal_file_infoStefan Hoffmann2014-08-31
|
* fileid: rename os_file_id_equalStefan Hoffmann2014-08-31
|
* fileid: rename os_get_file_idStefan Hoffmann2014-08-31
|
* fileinfo: rename os_file_info_get_inodeStefan Hoffmann2014-08-31
|
* fileinfo: rename os_file_info_get_idStefan Hoffmann2014-08-31
|
* fileinfo: rename os_file_info_id_equalStefan Hoffmann2014-08-31
|
* fileinfo: rename os_get_file_info{,_link,_fd}Stefan Hoffmann2014-08-31
|
* fileinfo: implement os_fileinfo_blocksizeStefan Hoffmann2014-08-31
|
* fileinfo: implement os_fileinfo_hardlinksStefan Hoffmann2014-08-31
|
* fileinfo: implement os_fileinfo_sizeStefan Hoffmann2014-08-31
| | | | this replaces os_get_file_size and file_info.stat.st_size
* unittest: Move FileInfo tests one level upStefan Hoffmann2014-08-31
|
* unittest: Remove remaining moonscript referencesThiago de Arruda2014-08-31
|
* unittest: convert set.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert preprocess.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert users_spec.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert path_spec.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert fs_spec.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert env_spec.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert helpers.moon to luaThiago de Arruda2014-08-31
|
* unittest: convert garray_spec.moon to luaThiago de Arruda2014-08-31
|
* path.c: Learn invocation_path_tail().Scott Prager2014-08-17
| | | | | Required for vim patch 276 as an alternative to `get_isolated_shell_name()`.
* os_fchown: enable 'change group' unittest on Travis-CIPavel Platto2014-08-13
| | | | | | | | Add section `before_install` in `.travis.yml` to create test group and add current user to this group. It is needed because by default user on Travis-CI belongs only to one primary group derived from that user. So we have no alternative to change group of the file.
* os_fchown: add unit testsPavel Platto2014-08-13
|
* build/test: setup functional tests using vroomThiago de Arruda2014-08-09
|
* Units: Move NULL, OK, and FAIL to helpers.moon. #982Scott Prager2014-07-30
|
* test/shell: add testsNicolas Hillegeer2014-07-27
| | | | | - The calls to (partially) initialize logging need to go. Blocked on #981.
* test/helpers: allow interning Pascal stringsNicolas Hillegeer2014-07-27
| | | | | os_system() returns a Pascal string, for example (it also NUL-terminates the string, but that's neither here nor there).
* test/formatc: improve standalone usageNicolas Hillegeer2014-07-27
| | | | Easier testing.
* test/formatc: improve 'inline' function handlingNicolas Hillegeer2014-07-27
| | | | | Apple seems to define some functions as `inline` but not `static` in headers. The ghetto parser wasn't unbelievably happy with this.
* Add tests for buffer.c and fileio.cWayne Rowcliffe2014-07-22
|
* Statically allocate NameBuffWayne Rowcliffe2014-07-22
|
* test/fs: move tests of path_full_dir_name to pathNicolas Hillegeer2014-07-16
| | | | | | | | Move tests of path_full_dir_name to path_spec. It is only defined in path.h. Not sure why this works most of the time (I can only trigger a failure when running under lldb). It's a more logical place to have the test as well.