From c108bb6ba4090046d8c2cd21f40a8008be977311 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 27 Oct 2015 10:06:45 +0200 Subject: Finish drop command implementation --- tests/test.sh | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 147 insertions(+), 5 deletions(-) (limited to 'tests/test.sh') diff --git a/tests/test.sh b/tests/test.sh index 932b0d6..18643cc 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -140,7 +140,7 @@ function stat () local s=`$bpkg pkg-status -d $cfg $1` if [ "$s" != "$2" ]; then - error "status: '"$s"', expected: '"$2"'" + error "status $1: '"$s"', expected: '"$2"'" fi } @@ -968,6 +968,8 @@ EOF test rep-create repository/1/satisfy/t4a test rep-create repository/1/satisfy/t4b test rep-create repository/1/satisfy/t4c +test rep-create repository/1/satisfy/t4d + test cfg-create --wipe test rep-add $rep/satisfy/t4c test rep-fetch @@ -1132,6 +1134,7 @@ test rep-fetch test build -y libbaz stat libfoo "configured 1.1.0" + ## ## drop ## @@ -1141,14 +1144,153 @@ 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 + +test drop -p -y libfoo libbaz libbar <