zeek/testing/btest/zeek-aux/update-changes/changes-up-to-date.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

20 lines
593 B
Bash

# @TEST-DOC: Test update-changes -c. On an absent repo, this should fail. When there have not been commits since the last CHANGES update, it should succeed, and after subsequent commits it should fail again.
#
# @TEST-EXEC-FAIL: update-changes -c
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: update-changes -c
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC-FAIL: update-changes -c
if [ ! -d .git ]; then
git init .
echo "Hello" >README
git add README
git commit -m 'init'
echo "1.0.0" | update-changes -I
else
echo >>README
git add README
git commit -m 'readme update'
fi