summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-07 11:55:35 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-07 11:55:35 +0200
commitf45c2694b9184b5c86abca1938c4005c89cf5b45 (patch)
tree911c602ab6674ba4828960ecf1d9fccb1c170bcf
parentada1cdfdf960047892bb9632e2c81581991acef6 (diff)
Updated bootstrap and tests to install pkg as "pkg"
-rwxr-xr-xinclude/bootstrap12
-rw-r--r--test/add4
-rwxr-xr-xtest/main14
-rw-r--r--test/remove4
-rw-r--r--test/setup4
5 files changed, 19 insertions, 19 deletions
diff --git a/include/bootstrap b/include/bootstrap
index fb683e0..07d8c4f 100755
--- a/include/bootstrap
+++ b/include/bootstrap
@@ -45,10 +45,10 @@ if ! which git &> /dev/null; then
exit 200
fi
-echo 'Fetching the core package...'
+echo 'Fetching the pkg package...'
cd $PKG_DIR
-git clone $PKG_ROOT/core
-cd core
+git clone $PKG_ROOT/pkg
+cd pkg
echo 'Writing pkg.conf'
mkdir -p $XDG_CONFIG_HOME/pkg
@@ -57,11 +57,11 @@ cat > $XDG_CONFIG_HOME/pkg/pkg.conf <<- flurbl
PKG_DIR="${PKG_DIR/$HOME/\$HOME}"
flurbl
-echo 'Installing core package'
+echo 'Installing pkg package'
rehash
bin/checklinks
-bin/pkg eval populate_collected core
-bin/pkg eval exec_hook core post-add
+bin/pkg eval populate_collected pkg
+bin/pkg eval exec_hook pkg post-add
bin/pkg update
diff --git a/test/add b/test/add
index 9810ca4..f319813 100644
--- a/test/add
+++ b/test/add
@@ -14,8 +14,8 @@ echo "# populate_collected"
repeat 2 {
echo "# pkg list"
- stringcmp "core\n$repo" "$(pkg list local)"
+ stringcmp "pkg\n$repo" "$(pkg list local)"
stringcmp "$complement\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list not-installed)"
- stringcmp "core\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
+ stringcmp "pkg\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
pkg update
}
diff --git a/test/main b/test/main
index 89ac4a4..ff5f596 100755
--- a/test/main
+++ b/test/main
@@ -31,12 +31,12 @@ source $tests/checklinks
(source $tests/setup)
echo "# bootstrapping PKG_DIR"
-$test_proot/core/include/bootstrap $test_proot $test_pdir
+$test_proot/pkg/include/bootstrap $test_proot $test_pdir
echo "# checking for success"
[[ -e $test_home/.config/pkg/pkg.conf ]]
-[[ -d $test_proot/core ]]
-[[ -d $test_pdir/core ]]
+[[ -d $test_proot/pkg ]]
+[[ -d $test_pdir/pkg ]]
[[ -L $test_home/bin/pkg ]]
[[ -L $test_home/bin/checklinks ]]
[[ -x $(readlink $test_home/bin/pkg) ]]
@@ -46,20 +46,20 @@ echo "# checking for success"
[[ -e $test_pdir/.collected/man/man7/pkg.7 ]]
echo "# pkg list local"
-stringcmp "core" "$(pkg list)"
-stringcmp "core" "$(pkg list local)"
+stringcmp "pkg" "$(pkg list)"
+stringcmp "pkg" "$(pkg list local)"
echo "# pkg list not-installed"
stringcmp "ra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list not-installed)"
echo "# pkg list all"
-stringcmp "core\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list all)"
+stringcmp "pkg\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list all)"
echo "# pkg add (no such repo)"
! pkg add weltfrieden
echo "# pkg add (already installed)"
-! pkg add core
+! pkg add pkg
for conf_origin in 0 1; {
echo "## GIT_USE_ORIGIN=$conf_origin"
diff --git a/test/remove b/test/remove
index c22a4f3..e850ec0 100644
--- a/test/remove
+++ b/test/remove
@@ -12,8 +12,8 @@ echo "# genocide_collected (~/bin)"
repeat 2 {
echo "# pkg list"
- stringcmp "core" "$(pkg list local)"
+ stringcmp "pkg" "$(pkg list local)"
stringcmp "ra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list not-installed)"
- stringcmp "core\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
+ stringcmp "pkg\nra\nra-bare\nrb\nrb-bare\nrc\nrc-bare" "$(pkg list remote)"
pkg update
}
diff --git a/test/setup b/test/setup
index c1d7b20..9c4fb66 100644
--- a/test/setup
+++ b/test/setup
@@ -1,8 +1,8 @@
## vim:ft=zsh
echo "# setting up PKG_ROOT"
cd $test_proot
-git clone --quiet ${1-git://git.tabularazor.org/~derf/pkg} core
-cp core/include/pkglist pkglist
+git clone --quiet ${1-git://git.tabularazor.org/~derf/pkg} pkg
+cp pkg/include/pkglist pkglist
for repo in ra rb rc; (
mkdir $repo
cd $repo