mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Improve zeek_script_args test case and documentation
This commit is contained in:
parent
39177ce8c9
commit
2d3b4dab74
7 changed files with 30 additions and 19 deletions
|
@ -1 +1,2 @@
|
|||
[-a, -b, -c]
|
||||
[-d, -e, -f]
|
14
testing/btest/core/script-args.zeek
Normal file
14
testing/btest/core/script-args.zeek
Normal file
|
@ -0,0 +1,14 @@
|
|||
# @TEST-EXEC: printf '#!' > test.zeek
|
||||
# @TEST-EXEC: printf "$BUILD/src/zeek -b --\n" >> test.zeek
|
||||
# @TEST-EXEC: cat %INPUT >> test.zeek
|
||||
# @TEST-EXEC: chmod u+x test.zeek
|
||||
|
||||
# @TEST-EXEC: zeek -b -- %INPUT -a -b -c >out
|
||||
# @TEST-EXEC: $(dirname %INPUT)/test.zeek -d -e -f >>out
|
||||
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print zeek_script_args;
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
# @TEST-EXEC: zeek -b -- %INPUT -a -b -c
|
||||
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event zeek_init()
|
||||
{
|
||||
print zeek_script_args;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue