Skip to content

Commit

Permalink
MDEV-26514 Option to build a separate test zip package on Windows
Browse files Browse the repository at this point in the history
Add a possibility to run MTR tests on a release zip
  • Loading branch information
elenst committed Aug 31, 2021
1 parent 1597b3d commit 8382c32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions win/packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ ADD_CUSTOM_TARGET(
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)

ADD_CUSTOM_TARGET(
win_package_test
COMMAND ${CMAKE_CPACK_COMMAND} ${CPACK_CONFIG_PARAM} --config ${CMAKE_CURRENT_SOURCE_DIR}/CPackZipTestConfig.cmake
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)

ADD_CUSTOM_TARGET(win_package DEPENDS win_package_zip win_package_debuginfo)
SET_TARGET_PROPERTIES(
win_package win_package_zip win_package_debuginfo
Expand Down
6 changes: 6 additions & 0 deletions win/packaging/CPackZIPTestConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
INCLUDE(CPackConfig.cmake)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-test")
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
SET(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY ON)
SET(CPACK_COMPONENTS_ALL Test)

0 comments on commit 8382c32

Please sign in to comment.