mirror of
https://github.com/encounter/SDL.git
synced 2025-05-21 14:51:27 +00:00
improve test-configuration
- testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled
This commit is contained in:
parent
b44241ab2f
commit
c4cf63f812
@ -214,7 +214,6 @@ set(NONINTERACTIVE
|
||||
testatomic
|
||||
testerror
|
||||
testfilesystem
|
||||
testkeys
|
||||
testlocale
|
||||
testplatform
|
||||
testpower
|
||||
@ -233,15 +232,20 @@ if(LINUX)
|
||||
list(APPEND NONINTERACTIVE testevdev)
|
||||
endif()
|
||||
|
||||
set(NEEDS_AUDIO
|
||||
if(SDL_DUMMYAUDIO)
|
||||
set(NEEDS_AUDIO
|
||||
testaudioinfo
|
||||
testsurround
|
||||
)
|
||||
)
|
||||
endif()
|
||||
|
||||
set(NEEDS_DISPLAY
|
||||
if(SDL_DUMMYVIDEO)
|
||||
set(NEEDS_DISPLAY
|
||||
testkeys
|
||||
testbounds
|
||||
testdisplayinfo
|
||||
)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(OPENGL_FOUND)
|
||||
add_dependencies(testshader OpenGL::GL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user