[cmake] split tests

* Keep BUILD_TESTING, but only run tests compatible with API (for
  packaging)
* Add BUILD_TESTING_INTERNAL for all tests including internal function
  tests that modify API to be run on our CI
This commit is contained in:
Armin Novak
2024-10-23 14:20:26 +02:00
committed by akallabeth
parent f488d15b7a
commit 527db6783b
61 changed files with 181 additions and 146 deletions

View File

@@ -1,9 +1,8 @@
message("PRELOADING cache")
set (CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "preload")
set (BUILD_TESTING ON CACHE BOOL "preload")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "preload")
set (WITH_MANPAGES ON CACHE BOOL "preload")
set (CMAKE_BUILD_TYPE "preload" CACHE STRING "preload")
set (BUILD_TESTING ON CACHE BOOL "preload")
set (WITH_PULSE ON CACHE BOOL "preload")
set (WITH_CHANNELS ON CACHE BOOL "preload")
set (WITH_CUPS ON CACHE BOOL "preload")

View File

@@ -7,7 +7,7 @@ set (CHANNEL_URBDRC OFF CACHE BOOL "USB redirection")
set (WITH_X11 ON CACHE BOOL "Enable X11")
set (WITH_SERVER ON CACHE BOOL "build with server")
set (WITH_SAMPLE ON CACHE BOOL "build with sample")
set (BUILD_TESTING ON CACHE BOOL "build testing")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "build testing")
set (WITH_SANITIZE_ADDRESS ON CACHE BOOL "build with address sanitizer")
set (WITH_FREERDP_DEPRECATED_COMMANDLINE ON CACHE BOOL "Enable deprecated command line options")
set (WITH_KRB5 OFF CACHE BOOL "Kerberos support")

View File

@@ -25,4 +25,4 @@ set (BUILD_SHARED_LIBS OFF CACHE BOOL "oss fuzz")
set (BUILD_WITH_CLANG_TIDY OFF CACHE BOOL "oss fuzz")
set (OSS_FUZZ ON CACHE BOOL "oss fuzz")
set (BUILD_FUZZERS ON CACHE BOOL "oss fuzz")
set (BUILD_TESTING ON CACHE BOOL "oss fuzz")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "oss fuzz")

View File

@@ -1,4 +1,4 @@
set (BUILD_TESTING ON CACHE BOOL "qa default")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "qa default")
set (CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "preload")
set (ENABLE_WARNING_VERBOSE ON CACHE BOOL "preload")
set (WITH_MANPAGES ON CACHE BOOL "qa default")

View File

@@ -7,7 +7,7 @@ set (WITH_KRB5 ON CACHE BOOL "Kerberos support")
set (WITH_ALSA OFF CACHE BOOL "alsa audio")
set (WITH_FFMPEG OFF CACHE BOOL "ffmepg support")
set (WITH_XV OFF CACHE BOOL "xvideo support")
set (BUILD_TESTING ON CACHE BOOL "build testing")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "build testing")
set (WITH_XSHM OFF CACHE BOOL "build with xshm support")
set (WITH_SERVER ON CACHE BOOL "build with server")
set (WITH_SAMPLE ON CACHE BOOL "build with sample")

View File

@@ -12,7 +12,7 @@ set (WITH_PLATFORM_SERVER OFF CACHE BOOL "Do not build platform server")
set (WITH_CLIENT_SDL ON CACHE BOOL "build with SDL client")
set (WITH_PROXY_MODULES "ON" CACHE BOOL "build proxy modules")
set (CHANNEL_URBDRC OFF CACHE BOOL "USB redirection")
set (BUILD_TESTING ON CACHE BOOL "build testing")
set (BUILD_TESTING_INTERNAL ON CACHE BOOL "build testing")
set (WITH_FFMPEG OFF CACHE BOOL "ci default")
set (WITH_SWSCALE OFF CACHE BOOL "ci default")
set (WITH_WEBVIEW ON CACHE BOOL "ci default")