summaryrefslogtreecommitdiff
path: root/test/add
diff options
context:
space:
mode:
Diffstat (limited to 'test/add')
-rw-r--r--test/add18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/add b/test/add
index f319813..8094c2b 100644
--- a/test/add
+++ b/test/add
@@ -1,11 +1,11 @@
## vim:ft=zsh
-echo "# pkg add (ok)"
-pkg add $repo
+echo "# ct add (ok)"
+ct add $repo
[[ -e $test_pdir/$repo/foo ]]
[[ -d $test_pdir/$repo/.git ]]
-echo "# pkg add (already installed)"
-! pkg add $repo
+echo "# ct add (already installed)"
+! ct add $repo
echo "# populate_collected"
[[ -L $test_home/bin/$file ]]
@@ -13,9 +13,9 @@ echo "# populate_collected"
[[ -e $test_pdir/.collected/man/man2/$file.2 ]]
repeat 2 {
- echo "# pkg list"
- stringcmp "pkg\n$repo" "$(pkg list local)"
- stringcmp "$complement\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
+ 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
}