mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
docker: Extend tests to run a very basic Zeek script
Mostly because a `-v` shortcuts quite, while a zeek -e 'print zeek_version()' will also parse all base scripts, etc.
This commit is contained in:
parent
7efd9ad1f5
commit
13b0e7a2aa
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
zeek version xxx
|
||||
zeek version xxx
|
||||
XXX
|
||||
[sources]
|
||||
zeek = https://github.com/zeek/packages
|
||||
|
|
|
@ -7,6 +7,9 @@ TEST_TAG=${TEST_TAG:-zeek:latest}
|
|||
# Check that `zeek` can be run.
|
||||
docker run --rm "${TEST_TAG}" zeek -v | sed 's/\(zeek version\) .*/\1 xxx/'
|
||||
|
||||
# ...and load and execute some basic scripts, too.
|
||||
docker run --rm "${TEST_TAG}" zeek -e 'print fmt("zeek version %s", zeek_version())' | sed 's/\(zeek version\) .*/\1 xxx/'
|
||||
|
||||
# Check that this is a release build.
|
||||
docker run --rm "${TEST_TAG}" zeek-config --build_type | grep -q 'release'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue