-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests.lua
72 lines (58 loc) · 2.19 KB
/
run_tests.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
lava = require "lava"
class = lava.class
abstract = lava.abstract
interface = lava.interface
singleton = lava.singleton
mixin = lava.mixin
isA = lava.is_a
lava.loadClass "tests/classes/basic_class_a.lua"
lava.loadClass "tests/classes/basic_class_b.lua"
lava.loadClass "tests/classes/basic_class_c.lua"
lava.loadClass "tests/classes/basic_class_d.lua"
lava.loadClass "tests/classes/basic_class_inherit_constructor.lua"
lava.loadClass "tests/classes/shared_class.lua"
lava.loadClass "tests/classes/shared_class_base.lua"
lava.loadClass "tests/classes/shared_class_child_a.lua"
lava.loadClass "tests/classes/shared_class_child_b.lua"
lava.loadClass "tests/classes/shared_class_child_c.lua"
lava.loadClass "tests/classes/malformed_shared_block_runtime.lua"
lava.loadClass "tests/classes/printable.lua"
lava.loadClass "tests/classes/countable.lua"
lava.loadClass "tests/classes/stringable.lua"
lava.loadClass "tests/classes/class_implements_printable.lua"
lava.loadClass "tests/classes/class_implements_many.lua"
lava.loadClass "tests/classes/child_parent_interface.lua"
lava.loadClass "tests/classes/basic_singleton.lua"
lava.loadClass "tests/classes/basic_mixin.lua"
lava.loadClass "tests/classes/basic_mixin_2.lua"
lava.loadClass "tests/classes/basic_mixin_class.lua"
lava.loadClass "tests/classes/basic_mixin_class_2.lua"
lava.loadClass "tests/classes/basic_mixin_class_3.lua"
lava.loadClass "tests/classes/basic_mixin_class_4.lua"
lava.loadClass "tests/classes/abstract.lua"
lava.loadClass "tests/classes/malformed_missing_constructor.lua"
lava.loadClass "tests/classes/fifo.lua"
lava.loadClass "tests/classes/counter.lua"
if _VERSION == "Lua 5.3" or _VERSION == "Lua 5.4" then
lava.loadClass "tests/classes/metamethods53.lua"
else
lava.loadClass "tests/classes/metamethods52.lua"
end
lu = require "deps/luaunit/luaunit"
dofile "tests/inherit.lua"
dofile "tests/abstract.lua"
dofile "tests/singleton.lua"
dofile "tests/interface.lua"
dofile "tests/mixin.lua"
dofile "tests/shared_blocks.lua"
dofile "tests/meta52.lua"
if _VERSION == "Lua 5.3" then
dofile "tests/meta53.lua"
end
if _VERSION == "Lua 5.4" then
dofile "tests/meta53.lua"
dofile "tests/meta54.lua"
end
dofile "tests/misc.lua"
dofile "tests/usage.lua"
lu.run( ... )