diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:07:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-22 11:07:03 +0200 |
commit | e6f10cabb7fbdba6fd11bcd109dbe765285c762c (patch) | |
tree | 350e0bf1230e930d2c9512eab396a80ffc98b610 /tests/test.sh | |
parent | 56af938cd423c1b6730d753ba1ce7b70cd660c29 (diff) |
Implement dependents check in drop command
Also, add support for commands to return program status.
Diffstat (limited to 'tests/test.sh')
-rwxr-xr-x | tests/test.sh | 23 |
1 files changed, 23 insertions, 0 deletions
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 |