mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This adds a new utility called ci/collect-repo-info.py to produce a JSON document that is then baked into the Zeek executable file. Further, when creating a tarball via `make dist`, put a top-level repo-info.json file in place that is picked when no .git directory exists. Closes #1405
5 lines
255 B
Bash
5 lines
255 B
Bash
# @TEST-DOC: Verify -V and --build-info work
|
|
# @TEST-EXEC: zeek -V | python3 -m json.tool > V.json
|
|
# @TEST-EXEC: zeek --build-info | python3 -m json.tool > build-info.json
|
|
# @TEST-EXEC: diff V.json build-info.json
|
|
# @TEST-EXEC: grep -q '"commit"' V.json
|