From c4cf63f812a217fe28ae21bb0cd58a45300b2c0c Mon Sep 17 00:00:00 2001 From: pionere Date: Wed, 18 May 2022 18:04:12 +0200 Subject: [PATCH] improve test-configuration - testkeys 'NEEDS_DISPLAY' - 'disable' relevant tests in case DUMMY audio/video is disabled --- test/CMakeLists.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0d545a238..3738bf130 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)