diff options
author | merakor <cem@ckyln.com> | 2021-01-05 17:29:39 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-01-05 17:29:39 +0000 |
commit | ca1d37bfdd5d936a183989d7a49ad31d1d8911c9 (patch) | |
tree | b6c0cf13b0267d0137e49ac99719b1390f968e24 /spec | |
parent | 80b1d3cc06ac5a57fd9b5366c1ab018ced4b9c31 (diff) | |
download | cpt-ca1d37bfdd5d936a183989d7a49ad31d1d8911c9.tar.gz |
shellspec tests: add dummy package
FossilOrigin-Name: f3030dbdf86db777d35323a4db2c102d4a507fd2a8900fad9c173e73d0f989e9
Diffstat (limited to 'spec')
-rw-r--r-- | spec/02_src_spec.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/02_src_spec.sh b/spec/02_src_spec.sh index 626c7b3..b97fe3c 100644 --- a/spec/02_src_spec.sh +++ b/spec/02_src_spec.sh @@ -1,5 +1,11 @@ Describe 'Main toolchain' export PATH=$PWD/src:$PATH + export CPT_ROOT=$PWD/tests + export CPT_PATH=$PWD/tests/repository + install_dummy() { CPT_HOOK='' ./src/cpt bi dummy-pkg ;} + remove_dummy() { rm -rf "${CPT_ROOT:?}/var" ;} + BeforeAll install_dummy + AfterAll remove_dummy Describe 'cpt' |