aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Krahn <dkrahn@google.com>2023-01-24 21:48:50 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-24 21:48:50 +0000
commit1ebe0f74fde0fb35460e1b87a27cb889134c3722 (patch)
tree7633663a23990cb3b24d112362beeaf7dbb829ba
parentb410a540e853ded4e65004160b8b3b395307a097 (diff)
downloadopen-dice-1ebe0f74fde0fb35460e1b87a27cb889134c3722.tar.gz
Update pigweed submodule
Bug: b/265165949 Change-Id: Ic9337f8737739f959d952b127da9eeb1c76133cb Reviewed-on: https://pigweed-review.googlesource.com/c/open-dice/+/126686 Reviewed-by: Andrew Scull <ascull@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Darren Krahn <dkrahn@google.com>
-rw-r--r--.gitignore1
-rw-r--r--BUILD.gn4
-rwxr-xr-xbootstrap.sh6
-rw-r--r--include/dice/test_framework.h7
m---------third_party/pigweed/src0
5 files changed, 13 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 073fd5f..a9837dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
.cache
compile_commands.json
out
+build_overrides/pigweed_environment.gni
diff --git a/BUILD.gn b/BUILD.gn
index 105b9b6..602a15a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -356,7 +356,7 @@ pw_executable("dice_with_x509_template_cert_main") {
]
}
-pw_size_report("executable_size_report") {
+pw_size_diff("executable_size_report") {
title = "Executable sizes (includes thirdparty deps)"
base = ":empty_main"
binaries = [
@@ -392,7 +392,7 @@ pw_size_report("executable_size_report") {
]
}
-pw_size_report("library_size_report") {
+pw_size_diff("library_size_report") {
title = "Library sizes (excludes thirdparty deps)"
base = ":empty_lib"
binaries = [
diff --git a/bootstrap.sh b/bootstrap.sh
index b599594..181daec 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -28,5 +28,11 @@ git submodule update --init
# Bootstrap the pigweed environment.
. third_party/pigweed/src/bootstrap.sh
+# Copy the pigweed environment config with a path fixup.
+sed s/environment/third_party\\\/pigweed\\\/src\\\/environment/g \
+ < third_party/pigweed/src/build_overrides/pigweed_environment.gni \
+ > build_overrides/pigweed_environment.gni
+gn format build_overrides/pigweed_environment.gni
+
# Setup the build.
gn gen --export-compile-commands out
diff --git a/include/dice/test_framework.h b/include/dice/test_framework.h
index 16e1c90..d85ba2b 100644
--- a/include/dice/test_framework.h
+++ b/include/dice/test_framework.h
@@ -15,10 +15,11 @@
#ifndef DICE_TEST_FRAMEWORK_H_
#define DICE_TEST_FRAMEWORK_H_
-#ifdef DICE_USE_GTEST
#include "gtest/gtest.h"
-#else
-#include "pw_unit_test/framework.h"
+
+#ifndef DICE_USE_GTEST
+// Use pigweed's pw_unit_test::light framework instead of upstream gtest.
+#include "pw_unit_test/simple_printing_event_handler.h"
#endif
#endif // DICE_TEST_FRAMEWORK_H_
diff --git a/third_party/pigweed/src b/third_party/pigweed/src
-Subproject 05d860d647f5d0c70d2cc9627f54c1adfa8a825
+Subproject 02c2e12242a68c6a66ad45c7a99c11aad45e322