-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-sanitizer-ci-job
- Loading branch information
Showing
26 changed files
with
915 additions
and
213 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,37 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0. | ||
|
||
import Builder | ||
import os | ||
|
||
|
||
class BuildGGSamples(Builder.Action): | ||
""" | ||
Defines a custom build step for Greengrass samples. | ||
It's used via builder.json config file in the project root directory. | ||
""" | ||
|
||
def run(self, env): | ||
# parse extra cmake configs | ||
cmd_args = env.args | ||
|
||
steps = [] | ||
samples = [ | ||
'samples/greengrass/ipc', | ||
'samples/greengrass/basic_discovery', | ||
] | ||
|
||
for sample_path in samples: | ||
build_path = os.path.join('build', sample_path) | ||
steps.append(['cmake', | ||
f'-B{build_path}', | ||
f'-H{sample_path}', | ||
f'-DCMAKE_PREFIX_PATH={env.install_dir}', | ||
'-DCMAKE_BUILD_TYPE=RelWithDebInfo']) | ||
# append extra cmake configs | ||
steps[-1].extend(cmd_args.cmake_extra) | ||
steps.append(['cmake', | ||
'--build', build_path, | ||
'--config', 'RelWithDebInfo']) | ||
|
||
return Builder.Script(steps) |
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 |
---|---|---|
@@ -1,39 +1,35 @@ | ||
{ | ||
"language": "CPP", | ||
"sample_file": "./aws-iot-device-sdk-cpp-v2/build/samples/greengrass/basic_discovery/basic-discovery", | ||
"sample_region": "us-east-1", | ||
"sample_main_class": "", | ||
"runnable_file": "basic-discovery", | ||
"runnable_region": "us-east-1", | ||
"runnable_main_class": "", | ||
"arguments": [ | ||
{ | ||
"name": "--cert", | ||
"secret": "ci/Greengrass/cert", | ||
"secret": "ci/GreengrassDiscovery/cert", | ||
"filename": "tmp_certificate.pem" | ||
}, | ||
{ | ||
"name": "--key", | ||
"secret": "ci/Greengrass/key", | ||
"secret": "ci/GreengrassDiscovery/key", | ||
"filename": "tmp_key.pem" | ||
}, | ||
{ | ||
"name": "--ca_file", | ||
"secret": "ci/Greengrass/ca", | ||
"filename": "tmp_ca.pem" | ||
"name": "--thing_name", | ||
"data": "CI_Greengrass_Discovery_Thing" | ||
}, | ||
{ | ||
"name": "--region", | ||
"data": "us-east-1" | ||
}, | ||
{ | ||
"name": "--thing_name", | ||
"data": "CI_GreenGrass_Thing" | ||
}, | ||
{ | ||
"name": "--is_ci", | ||
"data": "true" | ||
"name": "--topic", | ||
"data": "clients/CI_Greengrass_Discovery_Thing/hello/world/$INPUT_UUID" | ||
}, | ||
{ | ||
"name": "--print_discover_resp_only", | ||
"data": "" | ||
"name": "--mode", | ||
"data": "publish" | ||
} | ||
] | ||
], | ||
"stdin_file": "messages.txt" | ||
} |
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,21 @@ | ||
{ | ||
"language": "CPP", | ||
"runnable_file": "greengrass-ipc", | ||
"runnable_region": "us-east-1", | ||
"runnable_main_class": "", | ||
"arguments": [ | ||
{ | ||
"name": "--topic", | ||
"data": "test/gg-ipc-topic" | ||
}, | ||
{ | ||
"name": "--message", | ||
"data": "hello" | ||
}, | ||
{ | ||
"name": "--is_ci", | ||
"data": "true" | ||
} | ||
|
||
] | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.32.6 | ||
1.32.7 |
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
Submodule aws-crt-cpp
updated
11 files
+1 −1 | VERSION | |
+1 −1 | crt/aws-c-cal | |
+1 −0 | include/aws/crt/Types.h | |
+14 −0 | include/aws/crt/crypto/SymmetricCipher.h | |
+7 −0 | source/Types.cpp | |
+11 −4 | source/crypto/SymmetricCipher.cpp | |
+1 −1 | source/mqtt/Mqtt5Packets.cpp | |
+1 −0 | tests/CMakeLists.txt | |
+28 −0 | tests/Mqtt5ClientTest.cpp | |
+27 −0 | tests/SymmetricCipherTest.cpp | |
+18 −0 | tests/TypesTest.cpp |
Oops, something went wrong.