]> pd.if.org Git - zpackage/blobdiff - t/install.t
add option to zpm-add to complete package
[zpackage] / t / install.t
index 9b8d5eebfee8810539318fe4da4cb9ce4bdf588d..f31ec6774bb994b263421f83a2b96a83f9033f34 100755 (executable)
@@ -6,7 +6,7 @@
 
 . tap.sh
 
-plan 51
+plan 53
 
 newpkg() {
        pkgid=$1
@@ -142,7 +142,7 @@ newpkg $pkgid bin/sh
 okexit setup package $pkgid
 require rm bin/sh
 PF=$pkgid.zpm
-zpm install -v -R. -d local.db -f $PF $pkgid | diagstdin
+zpm install -R. -d local.db -f $PF $pkgid | diagstdin
 okexit installed $pkgid
 oktest -f bin/sh
 
@@ -186,6 +186,9 @@ skiponfail 3 "can't create $pkgid" || {
        }
 }
 
+tryrun zpm uninstall -R. -d local.db third-1.0-1
+test -f bin/echo
+failsok bin/echo removed
 
 cd .. || bailout
 require rm -rf tmp