mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Initial move of zeek-aux btests and related files to zeek btest dir
This commit is contained in:
parent
c05da53275
commit
7887451a66
148 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
# Verifies that update-changes correctly updates version strings in setup.py
|
||||
# files to Python-style versions, when .update-changes.cfg instructs it.
|
||||
#
|
||||
# @TEST-EXEC: bash %INPUT
|
||||
# @TEST-EXEC: btest-diff setup.py
|
||||
|
||||
@TEST-START-FILE .update-changes.cfg
|
||||
function new_version_hook() {
|
||||
local version=$1
|
||||
replace_version_in_setup_py setup.py $version
|
||||
}
|
||||
@TEST-END-FILE
|
||||
|
||||
git init
|
||||
|
||||
cat >setup.py <<EOF
|
||||
version = "0.1", # short
|
||||
version = "0.1-1", # with dev update
|
||||
version = "0.1.0", # long
|
||||
version = "0.1.0-10", # long with dev update
|
||||
version = "0.1.1.dev10", # Python style
|
||||
version = "0.0.1.nope" # should not change, invalid suffix
|
||||
EOF
|
||||
|
||||
git add setup.py
|
||||
git commit -m 'init'
|
||||
git tag v1.0.0
|
||||
|
||||
update-changes -I
|
||||
|
||||
echo "print('Additional change')" >>setup.py
|
||||
git add setup.py
|
||||
git commit -m 'update'
|
||||
|
||||
# Suppress input prompts:
|
||||
export EDITOR=cat
|
||||
printf '\n' | update-changes
|
Loading…
Add table
Add a link
Reference in a new issue