mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Update btests/baselines for OpenDict compat
Haven't checked different build configurations yet, but all except a few SumStats tests are stable for me now. The external tests are also completely failing, but haven't looked at those yet.
This commit is contained in:
parent
37d3cfbd44
commit
94aee910d5
27 changed files with 122 additions and 112 deletions
|
@ -21,7 +21,28 @@ function test_cmd(label: string, cmd: Exec::Command)
|
|||
{
|
||||
when ( local result = Exec::run(cmd) )
|
||||
{
|
||||
print label, result;
|
||||
local file_content = "";
|
||||
|
||||
if ( result?$files )
|
||||
{
|
||||
local which_test = "out1" in result$files;
|
||||
|
||||
if ( which_test )
|
||||
file_content = fmt("out1 -> %s, out2 -> %s",
|
||||
result$files["out1"],
|
||||
result$files["out2"]);
|
||||
else
|
||||
file_content = fmt("out3 -> %s, out4 -> %s",
|
||||
result$files["out3"],
|
||||
result$files["out4"]);
|
||||
}
|
||||
|
||||
print fmt("%s - exit: %s, signal: %s, stdout: %s, stderr: %s, files: %s",
|
||||
label, result$exit_code, result$signal_exit,
|
||||
result?$stdout ? result$stdout : "",
|
||||
result?$stderr ? result$stderr : "",
|
||||
file_content);
|
||||
|
||||
check_exit_condition();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue