improve test-configuration - testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 0d545a2..3738bf1 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -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)