diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-02 14:05:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-02 14:28:50 +0200 |
commit | 162d905c93ef52f59a8bc582549b6ec429cbd421 (patch) | |
tree | 14d2f55bcbe56c95058f29711474dc7cbdc7c631 /test | |
parent | eb254a1deca26d8a409300776f0a46549ebf74b8 (diff) |
Make the whole system more flexible (NOT backwards compatible)
* Split up PKG_ROOT into PKG_PROTO, PKG_USER, PKG_HOST and PKG_PATH
* Change the fourth list field from PKG_ROOT to the repo's clone uri
It is now possible to host your repos on github, for example.
Diffstat (limited to 'test')
-rwxr-xr-x | test/main | 9 | ||||
-rw-r--r-- | test/setup | 2 |
2 files changed, 6 insertions, 5 deletions
@@ -11,10 +11,11 @@ function stringcmp { diff -u <(echo $1) <(echo $2) } +mkdir -p /tmp/cttest tests=$PWD/test -test_pdir=$(mktemp -dt pkgdir.XXXXXX) -test_proot=$(mktemp -dt pkgroot.XXXXXX) -test_home=$(mktemp -dt pkghome.XXXXXX) +test_pdir=$(mktemp -d /tmp/cttest/pkgdir.XXXXXX) +test_proot=$(mktemp -d /tmp/cttest/pkgroot.XXXXXX) +test_home=$(mktemp -d /tmp/cttest/pkghome.XXXXXX) export PATH=$PWD/bin:$PATH @@ -31,7 +32,7 @@ source $tests/checklinks (source $tests/setup) echo "# bootstrapping PKG_DIR" -$test_proot/caretaker/examples/bootstrap $test_proot $test_pdir +$test_proot/caretaker/examples/bootstrap file '' '' $test_proot $test_pdir echo "# checking for success" [[ -e $test_home/.config/caretaker/caretaker.conf ]] @@ -1,7 +1,7 @@ ## vim:ft=zsh echo "# setting up PKG_ROOT" cd $test_proot -git clone --quiet ${1-git://git.tabularazor.org/~derf/caretaker} caretaker +git clone --quiet ${1-git://derf.homelinux.org/caretaker} caretaker cp caretaker/examples/pkglist pkglist for repo in ra rb rc; ( mkdir $repo |