diff options
author | Elena Stepanova <elenst@mariadb.com> | 2021-08-31 21:13:13 +0300 |
---|---|---|
committer | Elena Stepanova <elenst@mariadb.com> | 2021-08-31 21:13:13 +0300 |
commit | 8382c3260b37bb1f8a26b5dd10ac43df91ba1d15 (patch) | |
tree | f98fe4229fc415e9695fbfe573301efc7e649c1c /win | |
parent | 1597b3d76bd82e58735bf6eca931945c26d14a86 (diff) | |
download | mariadb-git-8382c3260b37bb1f8a26b5dd10ac43df91ba1d15.tar.gz |
MDEV-26514 Option to build a separate test zip package on Windows
Add a possibility to run MTR tests on a release zip
Diffstat (limited to 'win')
-rw-r--r-- | win/packaging/CMakeLists.txt | 6 | ||||
-rw-r--r-- | win/packaging/CPackZIPTestConfig.cmake | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/win/packaging/CMakeLists.txt b/win/packaging/CMakeLists.txt index ded44af5276..2b8f550bf82 100644 --- a/win/packaging/CMakeLists.txt +++ b/win/packaging/CMakeLists.txt @@ -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 diff --git a/win/packaging/CPackZIPTestConfig.cmake b/win/packaging/CPackZIPTestConfig.cmake new file mode 100644 index 00000000000..1dfba7ecabf --- /dev/null +++ b/win/packaging/CPackZIPTestConfig.cmake @@ -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) |