mirror of
https://github.com/rayaman/multi.git
synced 2026-09-04 23:17:35 -04:00
Writing tests, fixed some bugs with the library, testing luajit support
This commit is contained in:
+17
-3
@@ -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()
|
||||
Reference in New Issue
Block a user