summaryrefslogtreecommitdiff
path: root/script/test/full/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/test/full/init.lua')
-rw-r--r--script/test/full/init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/test/full/init.lua b/script/test/full/init.lua
new file mode 100644
index 00000000..3d0661cb
--- /dev/null
+++ b/script/test/full/init.lua
@@ -0,0 +1,16 @@
+local buildVM = require 'vm'
+local parser = require 'parser'
+
+rawset(_G, 'TEST', true)
+
+function TEST(script)
+ local ast = parser:parse(script, 'lua', 'Lua 5.3')
+ assert(ast)
+ local vm, err = buildVM(ast)
+ assert(vm, err)
+ return vm
+end
+
+require 'full.normal'
+require 'full.example'
+require 'full.dirty'