summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:29:01 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-12 12:29:01 +0200
commite483ca59a6ed91f584b4e889a8b4ab79cc199183 (patch)
tree859927997e0ad189302008ac761d8f28b1b795d3 /test/main
parent052dd575fcdece6d53c9b5e08bde026aee89cace (diff)
Added basic test for {populate,genocide}_collected
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/main b/test/main
index 6f7766c..62bc7b6 100755
--- a/test/main
+++ b/test/main
@@ -25,7 +25,10 @@ for repo in ra rb rc; (
cd $repo
git init
touch foo
- git add foo
+ mkdir bin
+ touch bin/$repo
+ chmod 755 bin/$repo
+ git add .
git commit -m 'initial commit'
)
@@ -38,6 +41,8 @@ echo "# checking for success"
[[ -e $test_home/.pkg.conf ]]
[[ -d $test_proot/core ]]
[[ -d $test_pdir/core ]]
+[[ -L $test_home/bin/pkg ]]
+[[ -L $test_home/bin/checklinks ]]
echo "# pkg list local"
stringcmp "core" "$(pkg list)"
@@ -63,6 +68,9 @@ pkg add ra
echo "# pkg add (already installed)"
! pkg add ra
+echo "# populate_collected (~/bin)"
+[[ -L $test_home/bin/ra ]]
+
repeat 2 {
echo "# pkg list"
stringcmp "core\nra" "$(pkg list local)"
@@ -78,6 +86,9 @@ echo "# pkg remove (not installed/nonexistent)"
echo "# pkg remove (ok)"
pkg remove ra
+echo "# genocide_collected (~/bin)"
+[[ ! -L $test_home/bin/ra ]]
+
repeat 2 {
echo "# pkg list"
stringcmp "core" "$(pkg list local)"