mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 19:45:40 +00:00
cmake: run testautomation with CTest on ci
This commit is contained in:
parent
41fc398114
commit
a420eb79bb
1
.github/workflows/msvc.yml
vendored
1
.github/workflows/msvc.yml
vendored
|
@ -41,6 +41,7 @@ jobs:
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "-DEBUG" CACHE STRING "Linker flag for shared libraries")
|
set(CMAKE_SHARED_LINKER_FLAGS "-DEBUG" CACHE STRING "Linker flag for shared libraries")
|
||||||
cmake_minimum_required(VERSION 3.0...3.25)
|
cmake_minimum_required(VERSION 3.0...3.25)
|
||||||
project(sdl_user)
|
project(sdl_user)
|
||||||
|
enable_testing()
|
||||||
add_subdirectory("{ srcdir }" SDL)
|
add_subdirectory("{ srcdir }" SDL)
|
||||||
"""))
|
"""))
|
||||||
- name: Configure (CMake)
|
- name: Configure (CMake)
|
||||||
|
|
|
@ -140,7 +140,7 @@ add_sdl_test_executable(testresample NEEDS_RESOURCES testresample.c)
|
||||||
add_sdl_test_executable(testaudioinfo testaudioinfo.c)
|
add_sdl_test_executable(testaudioinfo testaudioinfo.c)
|
||||||
|
|
||||||
file(GLOB TESTAUTOMATION_SOURCE_FILES testautomation*.c)
|
file(GLOB TESTAUTOMATION_SOURCE_FILES testautomation*.c)
|
||||||
add_sdl_test_executable(testautomation NEEDS_RESOURCES ${TESTAUTOMATION_SOURCE_FILES})
|
add_sdl_test_executable(testautomation NONINTERACTIVE NEEDS_RESOURCES ${TESTAUTOMATION_SOURCE_FILES})
|
||||||
add_sdl_test_executable(testmultiaudio NEEDS_RESOURCES testmultiaudio.c testutils.c)
|
add_sdl_test_executable(testmultiaudio NEEDS_RESOURCES testmultiaudio.c testutils.c)
|
||||||
add_sdl_test_executable(testaudiohotplug NEEDS_RESOURCES testaudiohotplug.c testutils.c)
|
add_sdl_test_executable(testaudiohotplug NEEDS_RESOURCES testaudiohotplug.c testutils.c)
|
||||||
add_sdl_test_executable(testaudiocapture testaudiocapture.c)
|
add_sdl_test_executable(testaudiocapture testaudiocapture.c)
|
||||||
|
@ -491,6 +491,7 @@ foreach(TESTCASE ${SDL_TESTS_NONINTERACTIVE})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
set_tests_properties(testautomation PROPERTIES TIMEOUT 120)
|
||||||
set_tests_properties(testthread PROPERTIES TIMEOUT 40)
|
set_tests_properties(testthread PROPERTIES TIMEOUT 40)
|
||||||
set_tests_properties(testtimer PROPERTIES TIMEOUT 60)
|
set_tests_properties(testtimer PROPERTIES TIMEOUT 60)
|
||||||
if(TARGET testfilesystem_pre)
|
if(TARGET testfilesystem_pre)
|
||||||
|
|
Loading…
Reference in a new issue