summaryrefslogtreecommitdiff
path: root/test/remove
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-22 10:44:15 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-22 10:44:15 +0200
commit8f2e0fb1e5972e1fe1b267f5939c60097d28b3f3 (patch)
treefcdcf74299ddccd1cc152f7670e2a990a03dc401 /test/remove
parentd6e476488b760e5e06d629cdd1e101a03f48c2ba (diff)
Added tests for pkg push
Diffstat (limited to 'test/remove')
-rw-r--r--test/remove19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/remove b/test/remove
new file mode 100644
index 0000000..c22a4f3
--- /dev/null
+++ b/test/remove
@@ -0,0 +1,19 @@
+## vim:ft=zsh
+echo "# pkg remove (not installed/nonexistent)"
+! pkg remove suckage
+! pkg remove rb
+
+echo "# pkg remove (ok)"
+pkg remove $repo
+
+echo "# genocide_collected (~/bin)"
+[[ ! -L $test_home/bin/$file ]]
+[[ ! -e $test_pdir/.collected/man/man2/$file.2 ]]
+
+repeat 2 {
+ echo "# pkg list"
+ stringcmp "core" "$(pkg list local)"
+ stringcmp "ra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list not-installed)"
+ stringcmp "core\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
+ pkg update
+}