zeek/testing/btest/zeek-aux/update-changes/initialize-from-version.sh
Tim Wojtulewicz d7ba381d12 Adapt zeek-aux btests to zeek structure
This updates Baselines, changes paths to scripts and log files, adds TEST-DOC
annotations, and various other cleanups that make the zeek-aux tests more like
the rest of the zeek tests.
2025-09-11 13:00:53 -07:00

14 lines
429 B
Bash

# @TEST-DOC: Test update-changes -I when version information is in the VERSION file, which update-changes wants confirmation for.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: test -f CHANGES
# @TEST-EXEC: grep -q '^1.0.0' CHANGES
# @TEST-EXEC: grep -q 'Starting CHANGES' CHANGES
# @TEST-EXEC: test $(git rev-list --count HEAD) -eq 2
git init .
echo "1.0.0" >VERSION
git add VERSION
git commit -m 'init'
echo y | update-changes -I