cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit 3c47d68fa0db8fcf67f7188e98bb0370eb430820
parent cae8768169bd2680af6e9c7a469ee05467b5d7b1
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu,  4 Feb 2021 21:29:31 +0300

shellspec: use config.mk instead of config.rc

Diffstat:
Mspec/01_lib_spec.sh | 2+-
Mspec/02_src_spec.sh | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spec/01_lib_spec.sh b/spec/01_lib_spec.sh @@ -10,7 +10,7 @@ Describe 'CPT Library' End End Describe 'version()' - VERSION=$(grep VERSION ./config.rc | sed 's/.* //g') + VERSION=$(sed -n '/VERSION/s/.* //gp' config.mk) It 'prints version information' When run script src/cpt-lib version The stderr should eq "-> Carbs Packaging Tools $VERSION" diff --git a/spec/02_src_spec.sh b/spec/02_src_spec.sh @@ -10,7 +10,7 @@ Describe 'Main toolchain' Describe 'cpt' Describe '--version' - VERSION=$(grep VERSION config.rc | sed 's/.* //g') + VERSION=$(grep VERSION config.mk | sed 's/.* //g') It 'outputs cpt version' When run script src/cpt --version The stderr should eq "-> Carbs Packaging Tools $VERSION"