-
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.
Fix ci: enable c99_gcc_tests and fix ABI test. (#40)
* Re-enable unit tests in Codebuild * Add patch fixing ABI test compilation * Minor updates to c99_gcc_test.sh
- Loading branch information
1 parent
f547b2f
commit 6eabe67
Showing
12 changed files
with
72 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Index: aws-lc/third_party/boringssl/CMakeLists.txt | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/CMakeLists.txt | ||
+++ aws-lc/third_party/boringssl/CMakeLists.txt | ||
@@ -80,6 +80,8 @@ if(NOT FIPS) | ||
# CMake automatically connects include_directories to the NASM | ||
# command-line, but not add_definitions. | ||
set(CMAKE_ASM_NASM_FLAGS "${CMAKE_ASM_NASM_FLAGS} -DBORINGSSL_DISPATCH_TEST") | ||
+ elseif(CMAKE_BUILD_TYPE_LOWER MATCHES "rel") | ||
+ add_definitions(-DBORINGSSL_RELEASE_BUILD) | ||
endif() | ||
endif() | ||
|
||
Index: aws-lc/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
+++ aws-lc/third_party/boringssl/crypto/cipher_extra/aead_test.cc | ||
@@ -665,7 +665,7 @@ TEST_P(PerAEADTest, InvalidNonceLength) | ||
} | ||
} | ||
|
||
-#if defined(SUPPORTS_ABI_TEST) | ||
+#if defined(SUPPORTS_ABI_TEST) && !defined(BORINGSSL_RELEASE_BUILD) | ||
// CHECK_ABI can't pass enums, i.e. |evp_aead_seal| and |evp_aead_open|. Thus | ||
// these two wrappers. | ||
static int aead_ctx_init_for_seal(EVP_AEAD_CTX *ctx, const EVP_AEAD *aead, | ||
Index: aws-lc/third_party/boringssl/crypto/test/abi_test.cc | ||
=================================================================== | ||
--- aws-lc.orig/third_party/boringssl/crypto/test/abi_test.cc | ||
+++ aws-lc/third_party/boringssl/crypto/test/abi_test.cc | ||
@@ -208,7 +208,8 @@ template <typename... Args> | ||
WriteFile(stderr_handle, buf, strlen(buf), &unused, nullptr); | ||
} | ||
#else | ||
- write(STDERR_FILENO, buf, strlen(buf)); | ||
+ OPENSSL_UNUSED ssize_t unused_ret = | ||
+ write(STDERR_FILENO, buf, strlen(buf)); | ||
#endif | ||
abort(); | ||
} |
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 was deleted.
Oops, something went wrong.
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
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
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