summaryrefslogtreecommitdiffstatshomepage
path: root/test/unit/preprocess.lua
AgeCommit message (Collapse)AuthorFiles
2026-01-21test: fix some type warnings (#37483)zeertzjq1
2025-08-14refactor(build): remove INCLUDE_GENERATED_DECLARATIONS guardsbfredl1
These are not needed after #35129 but making uncrustify still play nice with them was a bit tricky. Unfortunately `uncrustify --update-config-with-doc` breaks strings with backslashes. This issue has been reported upstream, and in the meanwhile auto-update on every single run has been disabled.
2025-05-22fix(tests): use correct include path for unittestbfredl1
Copy whatever was made to work for generated headers: (1) we need to consider all cmake targets not just main_lib (2) we need to add the sysroot for macOS
2024-04-08test: improve test conventionsdundargoc1
Work on https://github.com/neovim/neovim/issues/27004.
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-11-28refactor: fix headers with IWYUdundargoc1
2023-04-14refactor(unit): add type annotationsLewis Russell1
2023-04-04test: replace lfs with luv and vim.fsdundargoc1
test: replace lfs with luv luv already pretty much does everything lfs does, so this duplication of dependencies isn't needed.
2021-08-16Revert "tests: unit: fix preprocess: pass -m32 for 32bit ABI (#11073)"James McCoy1
This reverts commit ed11721b6bb36042ab065b5045c8eb01115b8902. It broke multiple 32-bit builds and isn't actually required for building in a true x86 32-bit environment.
2019-09-22tests: unit: fix preprocess: pass -m32 for 32bit ABI (#11073)Daniel Hahler1
2017-03-19tests: Fix repeated_popen_r usage, rename the functionZyX1
2017-03-19tests: Fix CI failuresZyX1
2017-03-19functests: Check that `-s` works as expectedZyX1
2017-02-25buffer: Hide one of the asserts from lua parserZyX1
2017-02-15unittest: Filter out standard defines so that they do not spam stderr (#6113)Nikolai Aleksandrovich Pavlov1
2017-01-07unittest,memory: Fix testsZyX1
2017-01-03unittest: Fix linter errorsZyX1
2017-01-03unittest: Refactor preprocess.luaZyX1
Keeps arguments separated and not joined as a single string as long as possible. Abstracts away additional arguments so that Gcc:preprocess should work for compilers with different conventions should they be supported.
2017-01-03unittest: Move nil checks to Gcc:preprocessZyX1
2017-01-03unittest: Record previous defines in another placeZyX1
Previous commit made preprocess.lua know how its output will be used. This moves state to cimport, making only it know which is cleaner.
2017-01-03unittest: Allow multiple indirect includesZyX1
Works by saving all preprocessor defines and reusing them on each run. This also saves NVIM_HEADER_H defines. Saving other defines is needed for defines like `Map(foo, bar)` which are sometimes used to declare types or functions. Saving types or function declarations is not needed because they are recorded as luajit state. Fixes #5857
2016-12-29Tests: make unit tests work on macOS SierraMarco Hinz1
Fixes #5455.
2015-11-23test/unit: clean up according to luacheckMarco Hinz1
2015-02-09unittests: define _Thread_local to be nothingJohn Szakmeister1
This helps the LuaJIT ffi module to parse the header correctly. Otherwise, the whole suite of tests fail.
2014-09-11unit tests: avoid global scope; add missing cimportsJustin M. Keyes1
temporarily comment out call to vim_deltempdir() to avoid segfault
2014-08-31unittest: convert preprocess.moon to luaThiago de Arruda1