1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-21 03:21:17 +00:00
git-changerelease/integration/t001_execute.t

31 lines
714 B
Perl
Raw Normal View History

#!/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 :