• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..20-Dec-2019-

libs/H20-Dec-2019-21

READMEH A D20-Dec-20191.5 KiB4230

all.luaH A D20-Dec-20192.6 KiB138104

api.luaH A D20-Dec-201918.6 KiB712530

attrib.luaH A D20-Dec-20198.2 KiB342247

big.luaH A D20-Dec-20197.6 KiB383154

calls.luaH A D20-Dec-20196.3 KiB296198

checktable.luaH A D20-Dec-20191.9 KiB7870

closure.luaH A D20-Dec-20198.5 KiB426273

code.luaH A D20-Dec-20193.2 KiB14494

constructs.luaH A D20-Dec-20195.6 KiB241187

db.luaH A D20-Dec-201911.8 KiB500390

errors.luaH A D20-Dec-20196.1 KiB251190

events.luaH A D20-Dec-20198.5 KiB363263

files.luaH A D20-Dec-20198.3 KiB314242

gc.luaH A D20-Dec-20196.8 KiB313248

literals.luaH A D20-Dec-20196.5 KiB177133

locals.luaH A D20-Dec-20192.7 KiB12898

main.luaH A D20-Dec-20193.2 KiB160128

math.luaH A D20-Dec-20195.4 KiB211172

nextvar.luaH A D20-Dec-20198.4 KiB397309

pm.luaH A D20-Dec-20199.3 KiB283211

sort.luaH A D20-Dec-20191.6 KiB7554

strings.luaH A D20-Dec-20195.9 KiB174141

vararg.luaH A D20-Dec-20192.6 KiB12989

verybig.luaH A D20-Dec-20191.7 KiB10175

README

1This tarball contains the official test scripts for Lua 5.1.
2Unlike Lua itself, these tests do not aim portability, small footprint,
3or easy of use. (Their main goal is to try to crash Lua.) They are not
4intended for general use. You are wellcome to use them, but expect to
5have to "dirt your hands".
6
7The tarball should expand in the following contents:
8  - several .lua scripts with the tests
9  - a main "all.lua" Lua script that invokes all the other scripts
10  - a subdirectory "libs" with an empty subdirectory "libs/P1",
11    to be used by the scripts
12  - a subdirectory "etc" with some extra files
13
14To run the tests, do as follows:
15
16- go to the test directory
17
18- set LUA_PATH to "?;./?.lua" (or, better yet, set LUA_PATH to "./?.lua;;"
19  and LUA_INIT to "package.path = '?;'..package.path")
20
21- run "lua all.lua"
22
23
24--------------------------------------------
25Internal tests
26--------------------------------------------
27
28Some tests need a special library, "testC", that gives access to
29several internal structures in Lua.
30This library is only available when Lua is compiled in debug mode.
31The scripts automatically detect its absence and skip those tests.
32
33If you want to run these tests, move etc/ltests.c and etc/ltests.h to
34the directory with the source Lua files, and recompile Lua with
35the option -DLUA_USER_H='"ltests.h"' (or its equivalent to define
36LUA_USER_H as the string "ltests.h", including the quotes). This
37option not only adds the testC library, but it adds several other
38internal tests as well. After the recompilation, run the tests
39as before.
40
41
42