-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fips-2021-10-20' into fips-cherry-pick-pub-key-validati…
…on-ECDH
- Loading branch information
Showing
6 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: 0.2 | ||
|
||
phases: | ||
pre_build: | ||
commands: | ||
# To use this build spec file, CMake environment variable CC and CXX compiler should be pre-defined. | ||
- if [[ -z "${CC+x}" || -z "${CC}" ]]; then echo "CC is not defined." && exit 1; else ${CC} --version && echo "Found CC."; fi | ||
- if [[ -z "${CXX+x}" || -z "${CXX}" ]]; then echo "CXX is not defined." && exit 1; else ${CXX} --version && echo "Found CXX."; fi | ||
# Sanitizer is very slow on ARM. | ||
# https://github.com/google/sanitizers/issues/1331 | ||
- export AWS_LC_GO_TEST_TIMEOUT='60m' | ||
build: | ||
commands: | ||
- ./tests/ci/run_ssl_asan_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -exo pipefail | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# BoringSSL has 7k+ ssl runner tests, and the total number of the runner tests keep increasing. | ||
# When ASAN enabled, the tests take more than 1 hour to finish. The cause relates to https://github.com/google/sanitizers/issues/1331 | ||
# To reduce the total time, these tests will be executed in diff CodeBuild dimensions. | ||
# Env var |AWS_LC_SSL_RUNNER_START_INDEX| and |AWS_LC_SSL_RUNNER_END_INDEX| will be used with this script to split runner tests. | ||
source tests/ci/common_posix_setup.sh | ||
|
||
build_type=Release | ||
cflags=("-DCMAKE_BUILD_TYPE=${build_type}") | ||
|
||
if [ $(dpkg --print-architecture) == "arm64" ]; then | ||
echo "Executing AWS-LC SSL runner tests in ${build_type} mode with address sanitizer." | ||
run_build -DASAN=1 -DUSE_CUSTOM_LIBCXX=1 "${cflags[@]}" | ||
run_cmake_custom_target 'run_ssl_runner_tests' | ||
fi |