From ca1d37bfdd5d936a183989d7a49ad31d1d8911c9 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 5 Jan 2021 17:29:39 +0000 Subject: shellspec tests: add dummy package FossilOrigin-Name: f3030dbdf86db777d35323a4db2c102d4a507fd2a8900fad9c173e73d0f989e9 --- spec/02_src_spec.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec') 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' -- cgit v1.2.3