From e6f10cabb7fbdba6fd11bcd109dbe765285c762c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Oct 2015 11:07:03 +0200 Subject: Implement dependents check in drop command Also, add support for commands to return program status. --- tests/test.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'tests') diff --git a/tests/test.sh b/tests/test.sh index c6c8a79..932b0d6 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -153,6 +153,8 @@ function gone () fi } +#if false; then + ## ## rep-create ## @@ -1129,3 +1131,24 @@ test rep-add $rep/satisfy/t4c test rep-fetch test build -y libbaz stat libfoo "configured 1.1.0" + +## +## drop +## +test cfg-create --wipe + +fail drop -p # package name expected +fail drop -p libfoo # unknown package +fail drop -p libfoo/1.0.0 # unknown package + +# dependents +# +test cfg-create --wipe +test rep-add $rep/satisfy/t4c +test rep-fetch +test build -y libbaz +fail drop -y libfoo +fail drop -y libfoo libbar +fail drop -y libfoo libbaz +test drop -y libfoo libbaz libbar +test drop -y --drop-dependent libfoo -- cgit v1.1