diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:29:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-12 12:29:01 +0200 |
commit | e483ca59a6ed91f584b4e889a8b4ab79cc199183 (patch) | |
tree | 859927997e0ad189302008ac761d8f28b1b795d3 /test/main | |
parent | 052dd575fcdece6d53c9b5e08bde026aee89cace (diff) |
Added basic test for {populate,genocide}_collected
Diffstat (limited to 'test/main')
-rwxr-xr-x | test/main | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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)" |