- More work on DAGLoggers

- Still need unit tests for the FilesystemLogger
This commit is contained in:
Ian Roddis
2021-08-13 10:23:55 -03:00
parent 4d519cc596
commit 9f90f54b67
13 changed files with 221 additions and 54 deletions

View File

@@ -14,8 +14,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
auto rec = ex.runCommand(cmd);
REQUIRE(rec.rc == 0);
REQUIRE(rec.output == "abc 123\n");
REQUIRE(rec.error.empty());
REQUIRE(rec.outputLog == "abc 123\n");
REQUIRE(rec.errorLog.empty());
}
SECTION("Error Run") {
@@ -24,8 +24,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
auto rec = ex.runCommand(cmd);
REQUIRE(rec.rc == 2);
REQUIRE(rec.error == "/usr/bin/expr: syntax error: missing argument after +\n");
REQUIRE(rec.output.empty());
REQUIRE(rec.errorLog == "/usr/bin/expr: syntax error: missing argument after +\n");
REQUIRE(rec.outputLog.empty());
}
SECTION("Large Output") {
@@ -41,8 +41,8 @@ TEST_CASE("Basic Execution", "[forking_executor]") {
auto rec = ex.runCommand(cmd);
REQUIRE(rec.rc == 0);
REQUIRE(rec.output.size() == std::filesystem::file_size(bigFile));
REQUIRE(rec.error.empty());
REQUIRE(rec.outputLog.size() == std::filesystem::file_size(bigFile));
REQUIRE(rec.errorLog.empty());
}
}
}