summaryrefslogtreecommitdiff
path: root/test/addremove
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/addremove
parentd6e476488b760e5e06d629cdd1e101a03f48c2ba (diff)
Added tests for pkg push
Diffstat (limited to 'test/addremove')
-rw-r--r--test/addremove48
1 files changed, 0 insertions, 48 deletions
diff --git a/test/addremove b/test/addremove
deleted file mode 100644
index 23196e1..0000000
--- a/test/addremove
+++ /dev/null
@@ -1,48 +0,0 @@
-## vim:ft=zsh
-file=${repo%-*}
-if [[ $repo == *-bare ]] {
- echo "## bare repository"
- complement=$file
-} else {
- echo "## non-bare repository"
- complement=${repo}-bare
-}
-echo "# pkg add (ok)"
-pkg add $repo
-[[ -e $test_pdir/$repo/foo ]]
-[[ -d $test_pdir/$repo/.git ]]
-
-echo "# pkg add (already installed)"
-! pkg add $repo
-
-echo "# populate_collected"
-[[ -L $test_home/bin/$file ]]
-[[ -x $(readlink $test_home/bin/$file) ]]
-[[ -e $test_pdir/.collected/man/man2/$file.2 ]]
-
-repeat 2 {
- echo "# pkg list"
- stringcmp "core\n$repo" "$(pkg list local)"
- stringcmp "$complement\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
-}
-
-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
-}