blob: 7d634391c523c0a78e4040423eb524bbebb53ab8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
## vim:ft=zsh
echo "# ct add (ok)"
ct add $repo
[[ -e $test_pdir/$repo/foo ]]
[[ -d $test_pdir/$repo/.git ]]
echo "# ct add (already installed)"
! ct add $repo
echo "# update_collected"
[[ -L $test_home/bin/$file ]]
[[ -x $(readlink $test_home/bin/$file) ]]
[[ -e $test_pdir/.collected/man/man2/$file.2 ]]
repeat 2 {
echo "# ct list"
stringcmp "caretaker\n$repo" "$(ct list local)"
stringcmp "$complement\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
}
|