summaryrefslogtreecommitdiff
path: root/lua
AgeCommit message (Collapse)Author
2016-12-08test/lua: update to changes in Lua APIMarc André Tanner
2016-11-17test: use :qall! to terminate testsMarc André Tanner
This should make sure that vis always terminates and never hangs waiting for further input. Lua errors in particular cause a new window/file to be displayed showing a detailed error message. Previously only this internal file was closed but the original file remained open and prevented vis from exiting.
2016-11-16test/lua: redirect stdin and stderr to /dev/nullMarc André Tanner
Redirecting stdin mimics the environment on Travis CI. Redirecting stderr should give a nicer test list output, albeit some useful messages might get lost.
2016-11-15test/lua: make tests more robust, print Lua include pathsMarc André Tanner
2016-11-13test/lua: build vis binary if necessaryMarc André Tanner
2016-11-13test/lua: print :help output and distinguish between fail/errorMarc André Tanner
2016-11-11test/lua: adapt to different line ending type returned by Lua APIMarc André Tanner
2016-05-16test/lua: fix test for invalid cursor positionMarc André Tanner
2016-05-09Improve Cygwin supportMarc André Tanner
2016-05-03Add tests for creating mappings and using feedkeysJosh Wainwright
Tests `vis:map()` and `vis:feedkeeys()`
2016-05-03Add another test for cursor positioningJosh Wainwright
Confirming `cursor:to(line,col)` implies `cursor.line == line` and `cursor.col == col`
2016-04-27test/lua: update tests to match new cursor positioning codeMarc André Tanner
cursor:to(line,col) now implies cursor.line == line and cursor.col == col
2016-04-26test/lua: silenced make cleanMarc André Tanner
2016-04-26test/lua: update basic_file.ref to match number of tests runMarc André Tanner
2016-04-26test/lua: make test.sh executable againMarc André Tanner
2016-04-26Add test number information to command_register tests for easier debuggingJosh Wainwright
2016-04-26Remove .status files, just use .ref and .out pairsJosh Wainwright
2016-04-26Change shebang to sh and add quotes to variables in scriptJosh Wainwright
2016-04-26Add tests for vis:command_register()Josh Wainwright
2016-04-26test.sh: silently compare filesJosh Wainwright
2016-04-21Add test for file that does not existJosh Wainwright
2016-04-21Use dofile() rather than require() to run lua test codeJosh Wainwright
2016-04-21Add executable permission to test.shJosh Wainwright
2016-04-21Update tests README and add lua tests README filesJosh Wainwright
2016-04-21Show vis version when running testsJosh Wainwright
2016-04-21Quit vis from within test visrc.luaJosh Wainwright
2016-04-21Use .status files instead of .true files and write error to .err fileJosh Wainwright
2016-04-20Allow running individual tests from makefileJosh Wainwright
2016-04-20Split test lua code into individual test.lua filesJosh Wainwright
2016-04-20Remove stackdump reference from makefile and make name uppercaseJosh Wainwright
2016-04-20Add first set of basic lua api testsJosh Wainwright
There are two types of lua tests here: 1. Tests are formed from a <test>.in, <test>.ref and <test>.out triplet. The <test>.in file is opened by vis, some operatations are performed and the modified file is written to <test>.out. The new <test>.out is compared to <test>.ref and the test passes if they are identical. 2. Tests are formed from a single <test>.true file. This file is created by the lua code in the test. It contains a single line per test case, this single line should be `true` if the test case passed. The <test>.true file is checked to ensure it contains only `true` lines and if so, the test passes.