mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

This test is very sensitive to new enum values that perturb the final order of the output. Listing the commits that modify that file in the past clearly shows changes to the baseline happen when a new component with an enum value is introduced. 40f04d4ccf broker: Add WebSocketShim backend51836d08ae
protocol: Add StreamEvent analyzerfdde1e9841
cluster/serializer: Add binary-serialization-format6fb73aa9da
broker: Add shim plugin adding a backend component85ca59484b
postgresql: Initial parser implementationefc2681152
WebSocket: Introduce new analyzer and log ... That's just distraction. Point fix the test to sort the analyzers before writing the final log line. I've previously attempted this in a more complete fashion in PR #3365 (issue #3364), but seems this direct fix might just make more sense.
24 lines
623 B
Text
24 lines
623 B
Text
# Test that checks that files.log is generated if the respective option is set.
|
|
|
|
# @TEST-REQUIRES: ${SCRIPTS}/have-spicy
|
|
# @TEST-EXEC: zeek -b -r $TRACES/tls/google-duplicate.trace %INPUT
|
|
# @TEST-EXEC: btest-diff files.log
|
|
|
|
@load base/protocols/ssl
|
|
|
|
redef X509::log_x509_in_files_log = T;
|
|
|
|
event file_state_remove(f: fa_file)
|
|
{
|
|
local analyzers_vec: vector of string = vector();
|
|
for ( a in f$info$analyzers )
|
|
analyzers_vec += a;
|
|
|
|
sort(analyzers_vec, strcmp);
|
|
|
|
local analyzers_ordered: set[string] = set() &ordered;
|
|
for ( _, a in analyzers_vec )
|
|
add analyzers_ordered[a];
|
|
|
|
f$info$analyzers = analyzers_ordered;
|
|
}
|