瀏覽代碼

improve test-configuration
- testkeys 'NEEDS_DISPLAY'
- 'disable' relevant tests in case DUMMY audio/video is disabled

pionere 3 年之前
父節點
當前提交
c4cf63f812
共有 1 個文件被更改,包括 9 次插入5 次删除
  1. 9 5
      test/CMakeLists.txt

+ 9 - 5
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)