summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-10 22:46:11 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-10 22:46:11 +0200
commitd10eed826ad80b3ca624146cb77524f18ac706c0 (patch)
tree0847818a0b74a4c70a8c5014f5aabd12c3fa4251 /test/main
parent9ae5f36e46584f1f24c2e8fdf30d2754f92caf3e (diff)
Added tests for pkg remove
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/main b/test/main
index 0938970..6f7766c 100755
--- a/test/main
+++ b/test/main
@@ -71,6 +71,21 @@ repeat 2 {
pkg update
}
+echo "# pkg remove (not installed/nonexistent)"
+! pkg remove suckage
+! pkg remove rb
+
+echo "# pkg remove (ok)"
+pkg remove ra
+
+repeat 2 {
+ echo "# pkg list"
+ stringcmp "core" "$(pkg list local)"
+ stringcmp "ra\nrb\nrc" "$(pkg list not-installed)"
+ stringcmp "core\nra\nrb\nrc" "$(pkg list remote)"
+ pkg update
+}
+
rm -rf $test_pdir $test_proot $test_home
print -P '%F{green} test passed%F{default}'