1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-20 19:11:17 +00:00
git-changerelease/integration/t001_execute.t
Knut Ahlers e3808deb0d
Add integration tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-05-31 14:51:23 +02:00

30 lines
714 B
Bash

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