mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Merge pull request #5094 from sfc-gh-mpilman/features/cmake-correctness-target
Add target to build unversioned correctness pkgs
This commit is contained in:
commit
436ab6cb7f
@ -261,6 +261,14 @@ function(create_correctness_package)
|
|||||||
)
|
)
|
||||||
add_custom_target(package_tests ALL DEPENDS ${tar_file})
|
add_custom_target(package_tests ALL DEPENDS ${tar_file})
|
||||||
add_dependencies(package_tests strip_only_fdbserver TestHarness)
|
add_dependencies(package_tests strip_only_fdbserver TestHarness)
|
||||||
|
set(unversioned_tar_file "${CMAKE_BINARY_DIR}/packages/correctness.tar.gz")
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "${unversioned_tar_file}"
|
||||||
|
DEPENDS "${tar_file}"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${tar_file}" "${unversioned_tar_file}"
|
||||||
|
COMMENT "Copy correctness package to ${unversioned_tar_file}")
|
||||||
|
add_custom_target(package_tests_u DEPENDS "${unversioned_tar_file}")
|
||||||
|
add_dependencies(package_tests_u package_tests)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(create_valgrind_correctness_package)
|
function(create_valgrind_correctness_package)
|
||||||
@ -288,6 +296,14 @@ function(create_valgrind_correctness_package)
|
|||||||
)
|
)
|
||||||
add_custom_target(package_valgrind_tests ALL DEPENDS ${tar_file})
|
add_custom_target(package_valgrind_tests ALL DEPENDS ${tar_file})
|
||||||
add_dependencies(package_valgrind_tests strip_only_fdbserver TestHarness)
|
add_dependencies(package_valgrind_tests strip_only_fdbserver TestHarness)
|
||||||
|
set(unversioned_tar_file "${CMAKE_BINARY_DIR}/packages/valgrind.tar.gz")
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT "${unversioned_tar_file}"
|
||||||
|
DEPENDS "${tar_file}"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${tar_file}" "${unversioned_tar_file}"
|
||||||
|
COMMENT "Copy valgrind package to ${unversioned_tar_file}")
|
||||||
|
add_custom_target(package_valgrind_tests_u DEPENDS "${unversioned_tar_file}")
|
||||||
|
add_dependencies(package_valgrind_tests_u package_valgrind_tests)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user