-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws-iot-fleetwise, amazon-s3-gst-plugin, aws-crt-cpp, aws-iot-device-…
…sdk-cpp-v2,s2n: improve tests
- Loading branch information
1 parent
6b8eb29
commit 6dae056
Showing
14 changed files
with
164 additions
and
18 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
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
recipes-iot/aws-iot-fleetwise/files/002-fleetwise-config-test.patch
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,38 @@ | ||
Upstream-Status: Submitted [author] | ||
|
||
Index: git/test/unit/IoTFleetWiseConfigTest.cpp | ||
=================================================================== | ||
--- git.orig/test/unit/IoTFleetWiseConfigTest.cpp | ||
+++ git/test/unit/IoTFleetWiseConfigTest.cpp | ||
@@ -6,6 +6,7 @@ | ||
#include "Testing.h" | ||
#include <boost/none.hpp> | ||
#include <boost/optional/optional.hpp> | ||
+#include <boost/optional/optional_io.hpp> | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <gtest/gtest.h> | ||
Index: git/test/unit/RawDataManagerTest.cpp | ||
=================================================================== | ||
--- git.orig/test/unit/RawDataManagerTest.cpp | ||
+++ git/test/unit/RawDataManagerTest.cpp | ||
@@ -7,6 +7,7 @@ | ||
#include "TimeTypes.h" | ||
#include <boost/none.hpp> | ||
#include <boost/optional/optional.hpp> | ||
+#include <boost/optional/optional_io.hpp> | ||
#include <cstdint> | ||
#include <cstring> | ||
#include <gtest/gtest.h> | ||
Index: git/test/unit/ROS2DataSourceTest.cpp | ||
=================================================================== | ||
--- git.orig/test/unit/ROS2DataSourceTest.cpp | ||
+++ git/test/unit/ROS2DataSourceTest.cpp | ||
@@ -13,6 +13,7 @@ | ||
#include <array> | ||
#include <atomic> | ||
#include <boost/optional/optional.hpp> | ||
+#include <boost/optional/optional_io.hpp> | ||
#include <boost/variant.hpp> | ||
#include <chrono> | ||
#include <cstdint> |
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,16 @@ | ||
# Copyright (c) 2022 Amazon.com, Inc. or its affiliates. | ||
# SPDX-License-Identifier: MIT | ||
|
||
import json | ||
import sys | ||
|
||
if len(sys.argv) != 2: | ||
print(f"usage: {sys.argv[0]} [result file]") | ||
sys.exit(1) | ||
|
||
with open (sys.argv[1], 'rb') as json_file: | ||
data = json.load(json_file) | ||
for testsuite in data['testsuites']: | ||
for test in testsuite['testsuite']: | ||
result = 'PASS' if not 'failures' in test else 'FAIL' | ||
print(f"{result}: {test['classname']}_{test['name']}") |
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
2 changes: 2 additions & 0 deletions
2
recipes-sdk/aws-iot-device-sdk-cpp-v2/aws-iot-device-sdk-cpp-v2/run-ptest
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