mirror of
https://github.com/curl/curl.git
synced 2026-07-28 07:23:07 +03:00
CI: add test timeouts, more cmake build tests, fix VS2010 C warning
- GHA/macos: set timeout for test runs. Double the value for autotools to fit torture tests. - GHA/cygwin: reduce test run timeout for autotools. - GHA/cygwin: enable building tests with cmake. - GHA/windows: enable building tests with MSYS cmake. - GHA/windows: enable building tests with MSVC UWP. - appveyor: enable building tests with VS2008 x86 and VS2010 x64. - tests: add workaround compiler warnings when building with VS2010: ``` tests\server\util.c(482): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(486): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(490): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(720): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(726): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(732): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(781): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(785): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size tests\server\util.c(789): warning C4306: 'type cast' : conversion from 'int' to 'void (__cdecl *)(int)' of greater size ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/50485633/job/4ujlwxod3cexmn2q#L1535 With this, tests are built in all GHA cygwin/windows jobs. Timeouts avoid long runs with runaway issues, example: https://github.com/curl/curl/actions/runs/10575522173 Closes #14700
This commit is contained in:
parent
2625360b5e
commit
d620ec6791
5 changed files with 15 additions and 4 deletions
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
|
|
@ -253,6 +253,7 @@ jobs:
|
|||
run: make -C bld V=1 -C tests
|
||||
|
||||
- name: 'run tests'
|
||||
timeout-minutes: 20
|
||||
run: |
|
||||
export TFLAGS='${{ matrix.tflags }} -j10'
|
||||
TFLAGS+=' ~2037 ~2041' # flaky
|
||||
|
|
@ -385,6 +386,7 @@ jobs:
|
|||
run: make -C bld testdeps
|
||||
|
||||
- name: 'cmake run tests'
|
||||
timeout-minutes: 10
|
||||
run: |
|
||||
export TFLAGS='${{ matrix.build.tflags }} -j10'
|
||||
TFLAGS+=' ~2037 ~2041' # flaky
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue