summaryrefslogtreecommitdiff
path: root/test/main
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-12 17:53:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-12 17:53:32 +0200
commit4043bdec8ba4e1157dba2195275aa437cc7e476c (patch)
tree5eef89505628632223656e1cb971c6c28ceecf3f /test/main
parent6514801bb3c990f2da0e93e320abf040695c696b (diff)
Extended tests for {populate,genocide}_collected
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/main b/test/main
index 29957e0..e699382 100755
--- a/test/main
+++ b/test/main
@@ -29,6 +29,8 @@ for repo in ra rb rc; (
touch foo
mkdir bin
touch bin/$repo
+ mkdir -p man/2
+ echo "=head1 WASTED SPACE\n\nhuhu" > man/2/$repo
chmod 755 bin/$repo
git add .
git commit -m 'initial commit'
@@ -47,6 +49,9 @@ echo "# checking for success"
[[ -L $test_home/bin/checklinks ]]
[[ -x $(readlink $test_home/bin/pkg) ]]
[[ -x $(readlink $test_home/bin/checklinks) ]]
+[[ -e $test_pdir/.collected/man/man1/pkg.1 ]]
+[[ -e $test_pdir/.collected/man/man5/pkg.conf.5 ]]
+[[ -e $test_pdir/.collected/man/man7/pkg.7 ]]
echo "# pkg list local"
stringcmp "core" "$(pkg list)"
@@ -72,9 +77,10 @@ pkg add ra
echo "# pkg add (already installed)"
! pkg add ra
-echo "# populate_collected (~/bin)"
+echo "# populate_collected"
[[ -L $test_home/bin/ra ]]
[[ -x $(readlink $test_home/bin/ra) ]]
+[[ -e $test_pdir/.collected/man/man2/ra.2 ]]
repeat 2 {
echo "# pkg list"
@@ -93,6 +99,7 @@ pkg remove ra
echo "# genocide_collected (~/bin)"
[[ ! -L $test_home/bin/ra ]]
+[[ ! -e $test_pdir/.collected/man/man2/ra.2 ]]
repeat 2 {
echo "# pkg list"