blob: 8094c2b6076e6d6fef0f082f3d506e0c1d1a5999 (
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 "# populate_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
}
|