summaryrefslogtreecommitdiff
path: root/test/remove
blob: f895e6029a7b8cc702001b8ef704fadbd348da80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## vim:ft=zsh
echo "# ct remove (not installed/nonexistent)"
! ct remove suckage
! ct remove rb

echo "# ct remove (ok)"
ct remove $repo

echo "# genocide_collected (~/bin)"
[[ ! -L $test_home/bin/$file ]]
[[ ! -e $test_pdir/.collected/man/man2/$file.2 ]]

repeat 2 {
	echo "# ct list"
	stringcmp "caretaker" "$(ct list local)"
	stringcmp "ra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(ct list not-installed)"
	stringcmp "caretaker\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(ct list remote)"
	ct update
}