Working on 16.0.0 #53
2
.github/workflows/nix_ci.yml
vendored
2
.github/workflows/nix_ci.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
pip install hererocks
|
pip install hererocks
|
||||||
hererocks lua-pkg --${{ matrix.lua }} -rlatest
|
hererocks lua-pkg --${{ matrix.lua }} -rlatest
|
||||||
|
|
||||||
- name: Install lanes
|
- name: Install lanes and multi
|
||||||
run: |
|
run: |
|
||||||
source ${{github.workspace}}/lua-pkg/bin/activate
|
source ${{github.workspace}}/lua-pkg/bin/activate
|
||||||
luarocks install lanes
|
luarocks install lanes
|
||||||
|
|||||||
@ -35,6 +35,7 @@ build = {
|
|||||||
["multi.integration.pseudoManager.threads"] = "integration/pseudoManager/threads.lua",
|
["multi.integration.pseudoManager.threads"] = "integration/pseudoManager/threads.lua",
|
||||||
["multi.integration.luvitManager"] = "integration/luvitManager.lua",
|
["multi.integration.luvitManager"] = "integration/luvitManager.lua",
|
||||||
["multi.integration.threading"] = "integration/threading.lua",
|
["multi.integration.threading"] = "integration/threading.lua",
|
||||||
|
["multi.integration.sharedExtension"] = "integration/sharedExtension/init.lua",
|
||||||
--["multi.integration.networkManager"] = "integration/networkManager.lua",
|
--["multi.integration.networkManager"] = "integration/networkManager.lua",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -156,13 +156,20 @@ runTest = thread:newFunction(function()
|
|||||||
if not love then
|
if not love then
|
||||||
local ec = 0
|
local ec = 0
|
||||||
multi.print("Testing pseudo threading")
|
multi.print("Testing pseudo threading")
|
||||||
_, str, ecc = os.execute("lua tests/threadtests.lua p")
|
capture = io.popen("lua tests/threadtests.lua p"):read("*a")
|
||||||
ec = ec + ecc
|
if capture:lower():match("error") then
|
||||||
multi.print("Testing lanes threading")
|
ec = ec + 1
|
||||||
_, str, ecc = os.execute("lua tests/threadtests.lua l")
|
|
||||||
ec = ec + ecc
|
|
||||||
if ec ~= 0 then
|
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
|
else
|
||||||
|
io.write(capture)
|
||||||
|
end
|
||||||
|
multi.print("Testing lanes threading")
|
||||||
|
capture = io.popen("lua tests/threadtests.lua l"):read("*a")
|
||||||
|
if capture:lower():match("error") then
|
||||||
|
ec = ec + 1
|
||||||
|
os.exit(1)
|
||||||
|
else
|
||||||
|
io.write(capture)
|
||||||
end
|
end
|
||||||
os.exit(0)
|
os.exit(0)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -210,7 +210,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
multi.OnExit(function(err_or_errorcode)
|
multi.OnExit(function(err_or_errorcode)
|
||||||
multi.print("Error Code: ", err_or_errorcode)
|
multi.print("EC: ", err_or_errorcode)
|
||||||
if not we_good then
|
if not we_good then
|
||||||
multi.print("There was an error running some tests!")
|
multi.print("There was an error running some tests!")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user