zeek/auxil/zeek-aux/testing/update-changes/initialize-from-version.sh
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
420 B
Bash

# 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