Add helpers for syncing commit files with external testsuites

This provides "make sync-repos" to check out all locally available testsuites at
the commits indicated in their commit files, and "make sync-commits" to update
the commit files to the HEADs of the local testsuite repos.

Also adds the commit -> repo sync for the Makefile init target so initialization
always lands on the right version, and removes the corresponding explicit
checkout from the CI repo setup.
This commit is contained in:
Christian Kreibich 2022-06-24 16:05:47 -07:00
parent 9f3dfbdb13
commit bf9b1ebbbe
5 changed files with 72 additions and 3 deletions

View file

@ -13,7 +13,6 @@ set -e
cd testing/external
[[ ! -d zeek-testing ]] && make init
cd zeek-testing
git checkout -q $(cat ../commit-hash.zeek-testing)
if [[ -n "${CIRRUS_CI}" ]]; then
if [[ -d ../zeek-testing-traces ]]; then