mirror of
https://github.com/Luzifer/git-changerelease.git
synced 2024-12-20 19:11:17 +00:00
31 lines
714 B
Perl
31 lines
714 B
Perl
|
#!/bin/bash
|
||
|
|
||
|
test_description="Basic binary tests"
|
||
|
|
||
|
. ./sharness.sh
|
||
|
|
||
|
test_expect_success "Ensure CLI is executable" "
|
||
|
git-changerelease --version
|
||
|
"
|
||
|
|
||
|
test_expect_success "Ensure CLI is loaded as git subcommand" "
|
||
|
git changerelease --version
|
||
|
"
|
||
|
|
||
|
test_expect_success "Ensure version is replaced" "
|
||
|
git changerelease --version | grep 'git-changerelease v[0-9]*\.[0-9]*\.[0-9]*'
|
||
|
"
|
||
|
|
||
|
test_expect_success "The tool should be able to write an example config" "
|
||
|
git changerelease --create-config &&
|
||
|
test -f ~/.git_changerelease.yaml
|
||
|
"
|
||
|
|
||
|
test_expect_success "The default value for signed tags is expected to be enabled" "
|
||
|
grep 'disable_signed_tags: false' ~/.git_changerelease.yaml
|
||
|
"
|
||
|
|
||
|
test_done
|
||
|
|
||
|
# vim: set ft=sh :
|