aboutsummaryrefslogtreecommitdiff
path: root/test/unit
Commit message (Collapse)AuthorAge
...
* 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
|
* 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.
* test/helpers: add 'vim_init' helperNicolas Hillegeer2014-07-16
| | | | | - Initializes some global variables. - Necessary for the buffer tests in PR #904.
* test/preprocess: always declare EXTERNNicolas Hillegeer2014-07-16
| | | | | | | | | | Unit tests never need to declare globals, only access them. In the main code base this is handled by including "vim.h". If a file wants to declare globals (in the case of neovim that's only main.c), it #define's EXTERN and includes "vim.h". Otherwise, a file just includes "vim.h" (that's the majority case). Since we want to be able to run unit tests without including "vim.h", we predefine "EXTERN" to mean extern. That way, we don't have to include "vim.h".
* profiling: add testsNicolas Hillegeer2014-07-16
| | | | | | | | | Some functions are missing: - profile_self - profile_get_wait - profile_set_wait - profile_sub_wait
* tempfile.c: add testsPavel Platto2014-07-14
|
* Use default busted pattern for unittests #943Pavel Platto2014-07-14
| | | | | | - Unittest should contain substring '_spec' in filename. - This is the simplest way to use both lua and moonscript tests. - This prevents running of non-test scripts from test folder.
* os_open: add unit testsJustin M. Keyes2014-07-14
|
* FileID: implement `FileID` structStefan Hoffmann2014-06-27
| | | | | | | `FileID` should encapsulate `st_dev` and `st_ino`. It is a new abstraction used to check if two files are the same. `FileID`s will be embeded inside other struts like `buf_t` or `ff_visited_T`, where a full `FileInfo` would be to big.
* spelling fixes #827Will Stamper2014-06-12
|
* Add automatic generation of headersZyX2014-06-02
| | | | | | | | | | | | | | | | | - The 'stripdecls.py' script replaces declarations in all headers by includes to generated headers. `ag '#\s*if(?!ndef NEOVIM_).*((?!#\s*endif).*\n)*#ifdef INCLUDE_GENERATED'` was used for this. - Add and integrate gendeclarations.lua into the build system to generate the required includes. - Add -Wno-unused-function - Made a bunch of old-style definitions ANSI This adds a requirement: all type and structure definitions must be present before INCLUDE_GENERATED_DECLARATIONS-protected include. Warning: mch_expandpath (path.h.generated.h) was moved manually. So far it is the only exception.
* Introduce nvim namespace: Fix unit tests.Eliseo Martínez2014-05-15
| | | | Point cimports to new locations.
* implemented FileInfo structStefan Hoffmann2014-05-09
| | | | | | | This struct is a wrapper around `uv_stat_t` to hide the stat information inside `src/os/`. The stat file attribute will be private after all refactorings concerning file informations are done.
* Fix unit test cleanup of path_shorten_fname_if_possible.Thomas Wienecke2014-05-03
|
* Generate a lua module to help pass build-related settings.John Szakmeister2014-05-03
| | | | | | | This allows us to avoid hard-coding paths and using environment variables to communicate key information to unit tests, which fits with the overall goal of making sure that folks driving CMake directly can continue to do out-of-tree builds.
* garray: add unit tests for ga_concat_strings_sepNicolas Hillegeer2014-04-29
|
* garray: add unit testsNicolas Hillegeer2014-04-29
| | | | Only append_ga_line() was not tested because it relies on global vim state.
* Test and refactor `shorten_fname` and `shorten_fname1`John2014-04-29
| | | | | Rename `shorten_fname` -> `path_shorten_fname` Rename `shorten_fname1` -> `path_shorten_fname_if_possible`
* test: no longer define ad-hoc C headersNicolas Hillegeer2014-04-28
| | | | With the improved cimport helper, we can just load what we want.
* test: fix the cimport methodNicolas Hillegeer2014-04-28
| | | | | | | | | | | | | | | | | | This commit will hopefully allow the cimport method to be used just as one would use #inclue <header.h> in C. It follows the following method: 1. create a pseudoheader file that #include's all the requested header files 2. runs the pseudoheader through the C preprocessor (it will try various compilers if available on the system). 3. runs the preprocessed file through a C formatter, which attempts to group statements on one line. For example, a struct definition that was formerly on several lines will take just one line after formatting. This is done so that unique declarations can be detected. Duplicates are thus easy to remove. 4. remove lines that are too complex for the LuaJIT C parser (such as: Objective-C block syntax, crazy enums defined on linux, ...) 5. remove duplicate declarations 6. pass result to ffi.cdef
* port vim_mkdir, mch_rmdir and mch_remove to libuvStefan Hoffmann2014-04-11
|
* Fix broken build due to unit test include orderJohn Schmidt2014-04-09
| | | | | | | | | | | Commit 4348d1e6f74a87af55c6c01e7a0cb292e9dec114 introduced a bug that breaks the unit tests unless they run in a certain order. Both path.moon and os/fs.moon tries to include the same Enum, which fails since ffi.cdef can only include definitions once. This solves the bug by using Lua variables instead of ffi.cdef Enums.
* Move exe functions back to os/fs.cJohn Schmidt2014-04-08
|
* Change prefix from `os_*` to `path_*`John Schmidt2014-04-08
|
* Move and adapt `os_get_absolute_path` unit tests to `vim_FullName`John2014-04-08
| | | | | * Add two new unit tests to `vim_FullName` * Make `os_get_absolute_path` static
* Move functions from os/fs.c into path.cJohn Schmidt2014-04-08
| | | | Move unit tests from os/fs.moon to path.moon
* Use stdbool in os moduleHinidu2014-04-07
|
* Moved mch_get_host_name and renamed it to os_get_hostanmeStefan Hoffmann2014-04-05
|