summaryrefslogtreecommitdiffstatshomepage
path: root/test/unit/os/shell_spec.lua
AgeCommit message (Collapse)AuthorFiles
2024-04-10refactor(test): inject after_each differentlyLewis Russell1
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
2024-03-11test: correct order of arguments to eq() (#27816)zeertzjq1
2023-12-04build: enable lintlua for test/unit/ dir #26396Justin M. Keyes1
Problem: Not all Lua code is checked by stylua. Automating code-style is an important mechanism for reducing time spent on accidental (non-essential) complexity. Solution: - Enable lintlua for `test/unit/` directory. - TODO: only `test/functional/` remains unchecked. previous: 45fe4d11add933df76a2ea4bf52ce8904f4a778b previous: 517f0cc634b985057da5b95cf4ad659ee456a77e
2023-09-30refactor: reorganize option header files (#25437)zeertzjq1
- Move vimoption_T to option.h - option_defs.h is for option-related types - option_vars.h corresponds to Vim's option.h - option_defs.h and option_vars.h don't include each other
2021-12-11test: remove references to misc1.czeertzjq1
2018-09-21shell/logging: Fix E730 with verbose system({List}) #9009Justin M. Keyes1
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790 Steps to reproduce: :set verbose=9 :call system(['echo']) E730: using List as a String
2017-06-01test: fix bashisms (#6791)Jonathan de Boyne Pollard1
2017-03-11unittests: Fix linter errorsZyX1
2017-03-11unittests: Do not import libnvim or headers in main processZyX1
Slows down unit tests much, but gets rid of as much preserved state as possible.
2017-03-11unittests: Check core dumps in after_each, like in functestsZyX1
2017-03-11unittests: Run all unit tests in their own processesZyX1
Used sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua to alter all tests. Locally they all run fine now. Reasoning: 1. General: state from one test should not affect other tests. 2. Local: travis build is failing with something which may be an output of garbage collector. This should prevent state of the garbage collector from interferring as well.
2016-09-11shell_escape: rename; refactorJustin M. Keyes1
- rename to shell_xescape_xquote - move to os/shell.c - disallow NULL argument - eliminate casts, nesting - test: empty shellxquote/shellxescape
2016-09-10system(): Respect 'sxe' and 'sxq' #2789Zhaosheng Pan1
Fixes #2773
2016-05-31unittests: Also remove event_teardownZyX1
`event_teardown` is there from 974752c, by aktau. It was introduced with `init_homedir` and `event_init`. Then both were removed by justinmk in 99a9161bace8200aa611f6feefcc2ac3eda93251 (`init_homedir`) and 49c5689f45b9f222ed58e18e55678df7fb971ee8 (`event_init`), but `event_teardown` was not removed. Now this may cause a crash. More details in #4852. Closes #4852
2016-04-25test/unit: ensure event_init()Justin M. Keyes1
Closes #4635 References #4630 References https://github.com/neovim/neovim/pull/4070#discussion_r50626558
2016-04-24test: shell_spec: rename variableJustin M. Keyes1
2016-01-11shell: Unquote &shell* options before using themZyX1
2015-11-23test/unit: clean up according to luacheckMarco Hinz1
2015-10-04test: os_system: spec for non-zero exit. #3419Russ Adams1
2015-07-17event loop: New abstraction layer with refactored time/signal APIThiago de Arruda1
- Add event loop abstraction module under src/nvim/event. The src/nvim/event/loop module replaces src/nvim/os/event - Remove direct dependency on libuv signal/timer API and use the new abstraction instead. - Replace all references to uv_default_loop() by &loop.uv, a new global variable that wraps libuv main event loop but allows the event loop functions to be reused in other contexts.
2015-05-02unify jobstart, termopen, and system interfacesScott Prager1
For any of these functions, if {cmd} is a string, execute "&shell &shellcmdflag '{cmd}'", or simply {cmd} if it's a list. In termopen(), if the 'name' option is not supplied, try to guess using '{cmd}' (string) or {cmd}[0] (list). Simplify ex_terminal to use the string form of termopen(). termopen: get name from argument Convert list_to_argv to tv_to_argv. Helped-by: Björn Linse <@bfredl> Helped-by: oni-link <knil.ino@gmail.com> Helped-by: Thiago de Arruda <@tarruda>
2014-09-11unit tests: initialize everythingJustin M. Keyes1
2014-07-27test/shell: add testsNicolas Hillegeer1
- The calls to (partially) initialize logging need to go. Blocked on #981.