aboutsummaryrefslogtreecommitdiff
path: root/lua/test.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-03-04test/lua: convert tests to busted infrastructureMarc André Tanner1-3/+2
2017-03-03test/lua: add infrastructure for busted based unit testsMarc André Tanner1-13/+14
2017-02-14Skip tests if Lua support is not compiled inMarc André Tanner1-0/+5
2016-12-30Revert "Make sure that info messages are printed before test case is run"Marc André Tanner1-3/+2
This reverts commit 8a366cebda597e960f1f49e245785f8fdedff0a6. Travis is strange.
2016-12-28Make sure that info messages are printed before test case is runMarc André Tanner1-2/+3
Useful for hanging tests also redirect stdout to /dev/null for better output on Travis.
2016-12-19test: ignore custom visrc.lua configurationMarc André Tanner1-2/+1
2016-11-16test/lua: redirect stdin and stderr to /dev/nullMarc André Tanner1-1/+1
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é Tanner1-4/+3
2016-11-13test/lua: print :help output and distinguish between fail/errorMarc André Tanner1-1/+2
2016-04-26test/lua: make test.sh executable againMarc André Tanner1-0/+0
2016-04-26Remove .status files, just use .ref and .out pairsJosh Wainwright1-9/+0
2016-04-26Change shebang to sh and add quotes to variables in scriptJosh Wainwright1-10/+10
2016-04-26test.sh: silently compare filesJosh Wainwright1-1/+1
2016-04-21Add test for file that does not existJosh Wainwright1-1/+1
2016-04-21Add executable permission to test.shJosh Wainwright1-0/+0
2016-04-21Show vis version when running testsJosh Wainwright1-0/+3
2016-04-21Quit vis from within test visrc.luaJosh Wainwright1-2/+1
2016-04-21Use .status files instead of .true files and write error to .err fileJosh Wainwright1-4/+5
2016-04-20Split test lua code into individual test.lua filesJosh Wainwright1-24/+29
2016-04-20Add first set of basic lua api testsJosh Wainwright1-0/+42
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.