summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/buildtool/execution_engine/executor/executor.test.cpp27
-rw-r--r--test/buildtool/execution_engine/executor/executor_api.test.hpp24
-rw-r--r--test/buildtool/graph_traverser/graph_traverser.test.hpp30
3 files changed, 54 insertions, 27 deletions
diff --git a/test/buildtool/execution_engine/executor/executor.test.cpp b/test/buildtool/execution_engine/executor/executor.test.cpp
index 9af21383..b929412f 100644
--- a/test/buildtool/execution_engine/executor/executor.test.cpp
+++ b/test/buildtool/execution_engine/executor/executor.test.cpp
@@ -353,7 +353,8 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -371,7 +372,8 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(not runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -389,7 +391,8 @@ TEST_CASE("Executor: Process artifact", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -436,7 +439,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -457,7 +461,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -478,7 +483,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -502,7 +508,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -523,7 +530,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
@@ -547,7 +555,8 @@ TEST_CASE("Executor: Process action", "[executor]") {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK(runner.Process(g.ArtifactNodeWithId(local_cpp_id)));
diff --git a/test/buildtool/execution_engine/executor/executor_api.test.hpp b/test/buildtool/execution_engine/executor/executor_api.test.hpp
index 6a8f409e..8ec43fb0 100644
--- a/test/buildtool/execution_engine/executor/executor_api.test.hpp
+++ b/test/buildtool/execution_engine/executor/executor_api.test.hpp
@@ -159,7 +159,8 @@ static inline void RunHelloWorldCompilation(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
// upload local artifacts
@@ -290,7 +291,8 @@ static inline void RunGreeterCompilation(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
// upload local artifacts
@@ -457,7 +459,8 @@ static inline void TestUploadAndDownloadTrees(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
REQUIRE(runner.Process(g.ArtifactNodeWithId(foo_id)));
@@ -629,7 +632,8 @@ static inline void TestRetrieveOutputDirectories(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
REQUIRE(runner.Process(action));
@@ -683,7 +687,8 @@ static inline void TestRetrieveOutputDirectories(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
REQUIRE(runner.Process(action));
@@ -754,7 +759,8 @@ static inline void TestRetrieveOutputDirectories(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
REQUIRE(runner.Process(action));
@@ -828,7 +834,8 @@ static inline void TestRetrieveOutputDirectories(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK_FALSE(runner.Process(action));
}
@@ -855,7 +862,8 @@ static inline void TestRetrieveOutputDirectories(
.apis = &apis,
.remote_context = &remote_context,
.statistics = stats,
- .progress = progress};
+ .progress = progress,
+ .profile = std::nullopt};
Executor runner{&exec_context};
CHECK_FALSE(runner.Process(action));
}
diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp
index b3340ab9..2b10271e 100644
--- a/test/buildtool/graph_traverser/graph_traverser.test.hpp
+++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp
@@ -201,7 +201,8 @@ class TestProject {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser const gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -277,7 +278,8 @@ class TestProject {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser const gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -327,7 +329,8 @@ class TestProject {
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser const gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -393,7 +396,8 @@ class TestProject {
.apis = &full_apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser const gt_upload{clargs_update_cpp.gtargs,
&full_context,
@@ -422,7 +426,8 @@ class TestProject {
.apis = &apis_known,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser const gt{
clargs.gtargs, &context_known, [](auto /*done*/, auto /*cv*/) {}};
auto const result =
@@ -474,7 +479,8 @@ static void TestBlobsUploadedAndUsed(
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -532,7 +538,8 @@ static void TestEnvironmentVariablesSetAndUsed(
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -590,7 +597,8 @@ static void TestTreesUsed(
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -648,7 +656,8 @@ static void TestNestedTreesUsed(
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
GraphTraverser gt{
clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}};
@@ -705,7 +714,8 @@ static void TestFlakyHelloWorldDetected(
.apis = &apis,
.remote_context = &remote_context,
.statistics = &stats,
- .progress = &progress};
+ .progress = &progress,
+ .profile = std::nullopt};
{
auto clargs = p.CmdLineArgs("_entry_points_ctimes");