mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Use .zeek file suffix in unit tests
This commit is contained in:
parent
93d384adeb
commit
1e57e3f026
862 changed files with 533 additions and 529 deletions
19
testing/btest/language/nested-sets.zeek
Normal file
19
testing/btest/language/nested-sets.zeek
Normal file
|
@ -0,0 +1,19 @@
|
|||
# @TEST-EXEC: for i in `seq 21`; do echo 0 >> random.seed; done
|
||||
# @TEST-EXEC: test `bro -b -G random.seed %INPUT` = "pass"
|
||||
|
||||
type r: record {
|
||||
b: set[count];
|
||||
};
|
||||
|
||||
global foo: set[r];
|
||||
global bar = set(1,3,5);
|
||||
|
||||
add foo[record($b=bar)];
|
||||
|
||||
bar = set(5,3,1);
|
||||
delete foo[record($b=bar)];
|
||||
|
||||
if ( |foo| > 0 )
|
||||
print "fail";
|
||||
else
|
||||
print "pass";
|
Loading…
Add table
Add a link
Reference in a new issue