zeek/testing/scripts
Robin Sommer 0040111955
Integrate the Spicy plugin into Zeek proper.
This reflects the `spicy-plugin` code as of `d8c296b81cc2a11`.

In addition to moving the code into Zeek's source tree, this comes
with a couple small functional changes:

- `spicyz` no longer tries to infer if it's running from the build
  directory. Instead `ZEEK_SPICY_LIBRARY` can be set to a custom
  location. `zeek-set-path.sh` does that now.

- ZEEK_CONFIG can be set to change what `spicyz -z` print out. This is
  primarily for backwards compatibility.

Some further notes on specifics:

- We raise the minimum Spicy version to 1.8 (i.e., current `main`
  branch).

- Renamed the `compiler/` subdirectory to `spicyz` to avoid
  include-path conflicts with the Spicy headers.

- In `cmake/`, the corresponding PR brings a new/extended version of
  `FindZeek`, which Spicy analyzer packages need. We also now install
  some of the files that the Spicy plugin used to bring for testing,
  so that existing packages keep working.

- For now, this all remains backwards compatible with the current
  `zkg` analyzer templates so that they work with both external and
  integrated Spicy support. Later, once we don't need to support any
  external Spicy plugin versions anymore, we can clean up the
  templates as well.

- All the plugin's tests have moved into the standard test suite. They
  are skipped if configure with `--disable-spicy`.

This holds off on adapting the new code further to Zeek's coding
conventions, so that it remains easier to maintain it in parallel to
the (now legacy) external plugin. We'll make a pass over the
formatting for (presumable) Zeek 6.1.
2023-05-16 10:17:45 +02:00
..
spicy Integrate the Spicy plugin into Zeek proper. 2023-05-16 10:17:45 +02:00
coverage-calc Format Python scripts with yapf. 2021-11-24 23:13:24 +01:00
diff-canonifier Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-canonifier-external Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
diff-canonifier-spicy Integrate the Spicy plugin into Zeek proper. 2023-05-16 10:17:45 +02:00
diff-clean-doctest Add testcases for plugin with doctest usage 2021-12-06 12:17:22 -08:00
diff-remove-abspath extend BTest "path" canonicalization to include compiled-to-C++ variable names 2023-03-08 10:19:21 +01:00
diff-remove-fields Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-file-ids Improve a few test canonifiers 2015-09-19 18:08:31 -05:00
diff-remove-fractions Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-openclose-timestamps Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-spicy-abspath Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
diff-remove-timestamps Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-remove-timestamps-and-sort Fix formatting 2022-04-27 23:02:27 +02:00
diff-remove-uids Improve a few test canonifiers 2015-09-19 18:08:31 -05:00
diff-remove-x509-key-info Adjust x509 unit tests to work around OpenSSL 1.0 vs. 1.1 differences 2018-06-29 16:01:23 -05:00
diff-remove-x509-names Merge remote-tracking branch 'origin/master' into topic/dnthayer/ticket1467 2015-10-02 11:31:00 -07:00
diff-sort Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
diff-sort-and-remove-abspath baseline & btest updates 2022-05-26 17:39:47 -07:00
diff-sort-conn-service Extend external test suite canonifier with set-sorting logic 2020-08-11 11:26:21 -07:00
diff-sort-set-elements Extend external test suite canonifier with set-sorting logic 2020-08-11 11:26:21 -07:00
external-ca-list.zeek Use .zeek file suffix in unit tests 2019-04-16 16:08:57 -07:00
fake-sendmail Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
file-analysis-test.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
has-writer More bro-to-zeek renaming in the unit tests 2019-05-16 02:27:54 -05:00
have-af-packet Include in Jan's AF_PACKET plugin as builtin plugin 2022-10-13 13:29:27 +02:00
have-javascript Add experimental JavaScript support when libnode is available 2023-04-14 11:26:41 +02:00
have-spicy Provide infrastructure to migrate legacy analyzers to Spicy. 2023-02-01 11:33:48 +01:00
hilti-ignore-cxx-errors Deprecate bro_int_t and bro_uint_t 2022-07-12 12:01:23 -07:00
httpd.py Format Python scripts with yapf. 2021-11-24 23:13:24 +01:00
rst-filter Going over initial parts of the scripting overview. 2013-08-30 16:23:17 -07:00
snmp-test.zeek spelling: repetitions 2022-11-18 10:26:33 -05:00
spicy-version Integrate the Spicy plugin into Zeek proper. 2023-05-16 10:17:45 +02:00
update-external-repo-pointer.sh Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00
wait-for-file Format shell scripts with shfmt. 2021-11-24 23:13:02 +01:00