Skip to content

Commit

Permalink
Compress crypto_test_data.cc (#2123)
Browse files Browse the repository at this point in the history
### Issues:
Resolves: P189934541

### Description of changes: 
* The size of `generated-src/crypto_test_data.cc` is approaching 100MB.
This change generates the file into a compressed form.

### Call-outs:
Updating scripts related to this files creation and validation.

### Testing:
These changes are thoroughly covered by our CI.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
  • Loading branch information
justsmth authored Jan 21, 2025
1 parent 43a9f80 commit 5270eca
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 15,274 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,11 @@ if(BUILD_TESTING)
DEPENDS util/embed_test_data.go ${CRYPTO_TEST_DATA}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
else()
file(COPY ${GENERATE_CODE_ROOT}/crypto_test_data.cc DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
add_custom_command(
OUTPUT crypto_test_data.cc
COMMAND ${CMAKE_COMMAND} -E tar "jxvf" ${GENERATE_CODE_ROOT}/crypto_test_data.cc.tar.bz2
DEPENDS ${GENERATE_CODE_ROOT}/crypto_test_data.cc.tar.bz2
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
endif()
add_library(crypto_test_data OBJECT crypto_test_data.cc)

Expand Down
Loading

0 comments on commit 5270eca

Please sign in to comment.