diff options
| author | merakor <cem@ckyln.com> | 2021-02-04 18:29:31 +0000 | 
|---|---|---|
| committer | merakor <cem@ckyln.com> | 2021-02-04 18:29:31 +0000 | 
| commit | 97f0a2adc1f82551b1830d41ab6bc873839031d2 (patch) | |
| tree | cc641b59d58553b3216b84b4d6d5c3bb1fc98a9c | |
| parent | 7b513542aef2df70a0f39bbae9318ff86859035a (diff) | |
| download | cpt-97f0a2adc1f82551b1830d41ab6bc873839031d2.tar.gz | |
shellspec: use config.mk instead of config.rc
FossilOrigin-Name: 64e9418a9b9fc40e90eb69668ab7a92f32732f2809973c4a080387f8dd0bec69
| -rw-r--r-- | spec/01_lib_spec.sh | 2 | ||||
| -rw-r--r-- | spec/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 index 6deef06..9e8ab36 100644 --- 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 index c5584ec..64eaa2f 100644 --- 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" | 
