summaryrefslogtreecommitdiff
path: root/test/remove
blob: e850ec0dc01b39cb785932c2b39b02576896061c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 "pkg" "$(pkg list local)"
	stringcmp "ra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list not-installed)"
	stringcmp "pkg\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
	pkg update
}