mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

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.
20 lines
593 B
Bash
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
|