Spicy: Port over to Spicy's new tuple representation.

Includes a fix for supporting CMake 4.0.
This commit is contained in:
Robin Sommer 2025-03-20 11:08:43 +01:00
parent 71305b0009
commit 94ddd7f411
No known key found for this signature in database
GPG key ID: D8187293B3FFE5D0
9 changed files with 111 additions and 141 deletions

View file

@ -1,7 +1,7 @@
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
== spicyz
::hilti::rt::print("have zeek"s, ::hilti::rt::Bool(true));
::hilti::rt::print("have spicy version"s, ::hilti::rt::Bool(true));
::hilti::rt::print("have spicy version >= 0.4"s, ::hilti::rt::Bool(true));
::hilti::rt::print("not have spicy version >= 4"s, ::hilti::rt::Bool(true));
::hilti::rt::print("have zeek and zeek version > 1.0"s, ::hilti::rt::Bool(true));
::hilti::rt::print("have zeek"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
::hilti::rt::print("have spicy version"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
::hilti::rt::print("have spicy version >= 0.4"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
::hilti::rt::print("not have spicy version >= 4"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));
::hilti::rt::print("have zeek and zeek version > 1.0"s, &::hilti::rt::type_info::string, ::hilti::rt::Bool(true));

View file

@ -5,5 +5,5 @@
[i=4, s=<uninitialized>]
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((1, b"OpenSSH_3.8.1p1"))
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((2, b"OpenSSH_3.8.1p1"))
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((3, b""))
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((3, (not set)))
[zeek] [SPICY_SSH/3/orig] -> event ssh::banner((4, Null))