Added timeout to build
This commit is contained in:
parent
d57dc7dc22
commit
cec53f6f4e
@ -15,9 +15,8 @@ function love.conf(t)
|
|||||||
t.modules.mouse = false -- Enable the mouse module (boolean)
|
t.modules.mouse = false -- Enable the mouse module (boolean)
|
||||||
t.modules.physics = false -- Enable the physics module (boolean)
|
t.modules.physics = false -- Enable the physics module (boolean)
|
||||||
t.modules.sound = false -- Enable the sound module (boolean)
|
t.modules.sound = false -- Enable the sound module (boolean)
|
||||||
t.modules.system = false -- Enable the system module (boolean)
|
t.modules.system = true -- Enable the system module (boolean)
|
||||||
t.modules.timer = false -- Enable the timer module (boolean)
|
t.modules.timer = true -- Enable the timer module (boolean)
|
||||||
t.modules.window = false -- Enable the window module (boolean)
|
t.modules.window = false -- Enable the window module (boolean)
|
||||||
t.modules.thread = true -- Enable the thread module (boolean)
|
t.modules.thread = true -- Enable the thread module (boolean)
|
||||||
end
|
end
|
||||||
--1440 x 2560
|
|
||||||
|
|||||||
@ -37,6 +37,12 @@ THREAD.setENV({
|
|||||||
})
|
})
|
||||||
|
|
||||||
multi:newThread("Scheduler Thread",function()
|
multi:newThread("Scheduler Thread",function()
|
||||||
|
multi:newThread(function()
|
||||||
|
thread.sleep(30)
|
||||||
|
print("Timeout tests took longer than 30 seconds")
|
||||||
|
multi:Stop()
|
||||||
|
os.exit(1)
|
||||||
|
end)
|
||||||
queue = multi:newSystemThreadedQueue("Test_Queue"):init()
|
queue = multi:newSystemThreadedQueue("Test_Queue"):init()
|
||||||
|
|
||||||
multi:newSystemThread("Test_Thread_0", function()
|
multi:newSystemThread("Test_Thread_0", function()
|
||||||
@ -172,12 +178,12 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
-- end
|
-- end
|
||||||
-- multi.success("SystemThreadedConnections: Ok")
|
-- multi.success("SystemThreadedConnections: Ok")
|
||||||
|
|
||||||
local stp = multi:newSystemThreadedProcessor(8)
|
local stp = multi:newSystemThreadedProcessor(1)
|
||||||
|
print(stp)
|
||||||
local tloop = stp:newTLoop(nil, 1)
|
local tloop = stp:newTLoop(nil, 1)
|
||||||
|
print(2)
|
||||||
local proxy_test = false
|
local proxy_test = false
|
||||||
|
print(3)
|
||||||
multi:newSystemThread("Testing proxy copy THREAD",function(tloop)
|
multi:newSystemThread("Testing proxy copy THREAD",function(tloop)
|
||||||
local multi, thread = require("multi"):init()
|
local multi, thread = require("multi"):init()
|
||||||
tloop = tloop:init()
|
tloop = tloop:init()
|
||||||
@ -194,10 +200,10 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
end)
|
end)
|
||||||
multi:mainloop()
|
multi:mainloop()
|
||||||
end, tloop:getTransferable()).OnError(multi.error)
|
end, tloop:getTransferable()).OnError(multi.error)
|
||||||
|
print(4)
|
||||||
multi.print("tloop", tloop.Type)
|
multi.print("tloop", tloop.Type)
|
||||||
multi.print("tloop.OnLoop", tloop.OnLoop.Type)
|
multi.print("tloop.OnLoop", tloop.OnLoop.Type)
|
||||||
|
print(5)
|
||||||
thread:newThread(function()
|
thread:newThread(function()
|
||||||
multi.print("Testing holding on a proxy connection!")
|
multi.print("Testing holding on a proxy connection!")
|
||||||
thread.hold(tloop.OnLoop)
|
thread.hold(tloop.OnLoop)
|
||||||
@ -206,6 +212,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
multi.print("Held on proxy connection... twice")
|
multi.print("Held on proxy connection... twice")
|
||||||
proxy_test = true
|
proxy_test = true
|
||||||
end).OnError(print)
|
end).OnError(print)
|
||||||
|
print(6)
|
||||||
|
|
||||||
thread:newThread(function()
|
thread:newThread(function()
|
||||||
while true do
|
while true do
|
||||||
@ -232,6 +239,7 @@ multi:newThread("Scheduler Thread",function()
|
|||||||
multi.success("SystemThreadedProcessor: OK")
|
multi.success("SystemThreadedProcessor: OK")
|
||||||
|
|
||||||
we_good = true
|
we_good = true
|
||||||
|
multi:Stop()
|
||||||
os.exit()
|
os.exit()
|
||||||
end).OnError(multi.error)
|
end).OnError(multi.error)
|
||||||
|
|
||||||
|
|||||||
48
win_ci.yml
48
win_ci.yml
@ -1,48 +0,0 @@
|
|||||||
name: build & run tests (Win)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
build-type: [Release] # Debug
|
|
||||||
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "luajit 2.0"]
|
|
||||||
os: ["windows-2019"]
|
|
||||||
platform: [
|
|
||||||
{"forLua": "vs_32", "forCMake": "Win32"},
|
|
||||||
{"forLua": "vs_64", "forCMake": "x64"},
|
|
||||||
]
|
|
||||||
exclude:
|
|
||||||
- lua: "luajit 2.0"
|
|
||||||
platform: {"forLua": "vs_32", "forCMake": "Win32"}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: '3.8'
|
|
||||||
- name: Setup env
|
|
||||||
run: |
|
|
||||||
pip install hererocks
|
|
||||||
hererocks lua-pkg --${{ matrix.lua }} -rlatest --target ${{matrix.platform.forLua}}
|
|
||||||
cmd ${{github.workspace}}\lua-pkg\bin\activate
|
|
||||||
|
|
||||||
- name: Configure CMake & build
|
|
||||||
run: |
|
|
||||||
cmake -A ${{matrix.platform.forCMake}} -B ${{github.workspace}}\build -DLUA_INCLUDE_DIR="${{github.workspace}}/lua-pkg/include" -DLUA_LIBRARY="${{github.workspace}}/lua-pkg/lib/lua*.lib"
|
|
||||||
cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
env:
|
|
||||||
STRESS: 1
|
|
||||||
run: |
|
|
||||||
${{github.workspace}}/lua-pkg/bin/lua ../tests/lua/run_tests
|
|
||||||
Loading…
x
Reference in New Issue
Block a user