Writing tests, fixed some bugs with the library, testing luajit support

This commit is contained in:
2022-01-09 23:23:54 -05:00
parent 537dcf0db1
commit 997ea48b54
8 changed files with 119 additions and 91 deletions
+17 -3
View File
@@ -16,6 +16,20 @@ package.path="../?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package.path
This will be pushed directly to the master as tests start existing.
]]
local multi, thread = require("multi"):init()
function runTest(path)
end
local good = false
runTest = thread:newFunction(function()
local objects = multi:newProcessor("Basic Object Tests")
objects.Start()
otest = require("tests/objectTests")(objects,thread)
thread.hold(otest.OnEvent)
print("Timers: Ok")
print("Connections: Ok")
print("Threads: Ok")
print(objects:getTasksDetails())
good = true
print("\nTests done")
os.exit()
end,true)
print(runTest())
multi:mainloop()