This repository was archived by the owner on Aug 22, 2024. It is now read-only.
File tree 6 files changed +24
-14
lines changed
6 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -10,3 +10,9 @@ Changelog
10
10
===================
11
11
* Fixed cmake bug regarding git version of KMS user agent
12
12
* Added CBMC header file needed by newer aws-c-common versions
13
+
14
+ 0.1.2 -- 2019-02-28
15
+ ===================
16
+ * Fixed empty string bug on git version of KMS user agent
17
+ * Local tests only by default
18
+ * Fix of MAP_ANONYMOUS issue for older Linuxes
Original file line number Diff line number Diff line change @@ -44,10 +44,7 @@ include(TestLibraryPath)
44
44
include (CheckLibraryExists)
45
45
include (CodeCoverageFlags)
46
46
47
- # TODO: Static link?
48
47
include (FindOpenSSL)
49
- # For tests
50
- include (FindCURL)
51
48
52
49
set (PROJECT_NAME aws-encryption-sdk)
53
50
@@ -61,6 +58,11 @@ set(REDUCE_TEST_ITERATIONS FALSE
61
58
set (BUILD_SHARED_LIBS FALSE
62
59
CACHE BOOL "Build aws-encryption-sdk-c as a shared library" )
63
60
61
+ option (AWS_ENC_SDK_END_TO_END_TESTS "Enable end-to-end tests. If set to FALSE (the default), runs local tests only." )
62
+ if (AWS_ENC_SDK_END_TO_END_TESTS)
63
+ include (FindCURL)
64
+ endif ()
65
+
64
66
option (PERFORM_HEADER_CHECK "Performs compile-time checks that each header can be included independently. Requires a C++ compiler." )
65
67
66
68
option (VALGRIND_TEST_SUITE "Run the test suite under valgrind" )
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
#
15
15
16
- # End-to-End tests might require special permissions
17
- option (AWS_ENC_SDK_END_TO_END_TESTS "Enable End-to-End tests" )
18
-
19
16
file (GLOB AWS_CRYPTOSDK_CPP_HEADERS
20
17
# Headers subject to API/ABI stability guarantees
21
18
"${CMAKE_CURRENT_SOURCE_DIR} /include/aws/cryptosdk/cpp/*.h"
Original file line number Diff line number Diff line change 50
50
* @{
51
51
*/
52
52
53
+ #ifndef AWS_CRYPTOSDK_PRIVATE_GITVERSION
54
+ # define AWS_CRYPTOSDK_PRIVATE_GITVERSION ""
55
+ #endif
56
+
53
57
#define AWS_CRYPTOSDK_VERSION_MAJOR 0
54
58
#define AWS_CRYPTOSDK_VERSION_MINOR 1
55
- #define AWS_CRYPTOSDK_VERSION_PATCH 1
59
+ #define AWS_CRYPTOSDK_VERSION_PATCH 2
56
60
57
61
#ifndef AWS_CRYPTOSDK_DOXYGEN // undocumented private helpers
58
62
# define AWS_CRYPTOSDK_PRIVATE_QUOTEARG (a ) # a
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ if (REDUCE_TEST_ITERATIONS)
71
71
target_compile_definitions (test_decryption_vectors PRIVATE REDUCE_TEST_ITERATIONS)
72
72
endif ()
73
73
74
- if (CURL_FOUND)
74
+ if (AWS_ENC_SDK_END_TO_END_TESTS AND CURL_FOUND)
75
75
add_executable (t_encrypt_compat integration/t_encrypt_compat.c)
76
76
set_target_properties (t_encrypt_compat PROPERTIES
77
77
C_STANDARD 99
@@ -81,7 +81,7 @@ if(CURL_FOUND)
81
81
target_sources (t_encrypt_compat PRIVATE ${UNIT_TEST_SRC_CPP} )
82
82
target_include_directories (t_encrypt_compat PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /lib)
83
83
aws_add_test(integration_encrypt_compatibility ${VALGRIND} ${CMAKE_CURRENT_BINARY_DIR} /t_encrypt_compat)
84
- endif (CURL_FOUND)
84
+ endif (AWS_ENC_SDK_END_TO_END_TESTS AND CURL_FOUND)
85
85
86
86
aws_add_test(cipher ${VALGRIND} ${CMAKE_CURRENT_BINARY_DIR} /unit-test -suite cipher)
87
87
aws_add_test(header ${VALGRIND} ${CMAKE_CURRENT_BINARY_DIR} /unit-test -suite header)
Original file line number Diff line number Diff line change 13
13
* limitations under the License.
14
14
*/
15
15
16
+ #if defined(__unix__ ) || (defined(__APPLE__ ) && defined(__MACH__ ))
17
+ # define _BSD_SOURCE
18
+ # include <sys/mman.h>
19
+ # include <unistd.h>
20
+ #endif
21
+
16
22
#include <aws/common/hash_table.h>
17
23
#include <aws/common/string.h>
18
24
#include <aws/cryptosdk/edk.h>
24
30
#include "testing.h"
25
31
#include "testutil.h"
26
32
27
- #if defined(__unix__ ) || (defined(__APPLE__ ) && defined(__MACH__ ))
28
- # include <sys/mman.h>
29
- # include <unistd.h>
30
- #endif
31
-
32
33
#ifdef _MSC_VER
33
34
# include <malloc.h>
34
35
# define alloca _alloca
You can’t perform that action at this time.
0 commit comments