mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -53,6 +53,6 @@ target_link_libraries(rdpear-common INTERFACE
|
||||
|
||||
channel_install(rdpear-common ${FREERDP_ADDIN_PATH} "FreeRDPTargets")
|
||||
|
||||
if (BUILD_TESTING)
|
||||
if (BUILD_TESTING_INTERNAL OR BUILD_TESTING)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
@@ -7,10 +7,15 @@ set(TEST_RDPEAR_DRIVER TestRdpear.c)
|
||||
disable_warnings_for_directory(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(TEST_RDPEAR_TESTS
|
||||
TestNdr.c
|
||||
TestNdrEar.c
|
||||
TestNdr.c
|
||||
)
|
||||
|
||||
if (BUILD_TESTING_INTERNAL)
|
||||
list(APPEND TEST_RDPEAR_TESTS
|
||||
TestNdrEar.c
|
||||
)
|
||||
endif()
|
||||
|
||||
create_test_sourcelist(TEST_RDPEAR_SRCS
|
||||
TestRdpear.c
|
||||
${TEST_RDPEAR_TESTS}
|
||||
|
||||
Reference in New Issue
Block a user