# @TEST-DOC: Verifies that update-changes correctly updates version strings in shell/Python/etc scripts, when .update-changes.cfg instructs it. # # @TEST-EXEC: bash %INPUT # @TEST-EXEC: btest-diff test.pl # @TEST-START-FILE .update-changes.cfg function new_version_hook() { local version=$1 replace_version_in_script test.pl $version } # @TEST-END-FILE git init cat >test.pl <>test.pl git add test.pl git commit -m 'update' # Suppress input prompts: export EDITOR=cat printf '\n' | update-changes