summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-05 13:52:37 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-05 13:52:37 +0200
commitcc60f3b86bc4a29d68852e02021fc719b22b5b2f (patch)
tree32a5e9b2de0967ced88a3471fc6b92e098cad669
parente2c2e345fd37a026815df29e0f77a635a9af332d (diff)
Improved test order, added checklinks test messages
-rw-r--r--test/checklinks2
-rwxr-xr-xtest/main6
2 files changed, 5 insertions, 3 deletions
diff --git a/test/checklinks b/test/checklinks
index 00b3da3..ce5c133 100644
--- a/test/checklinks
+++ b/test/checklinks
@@ -14,11 +14,13 @@ echo barbl > bar
echo flurbl > file
echo morp > flurbl
+echo "# checklinks"
checklinks
[[ $(cat foo) == $(cat bar) ]]
[[ $(cat link) == $(cat file) ]]
[[ $(cat blub) == $(cat flurbl) ]]
+echo "# checklinks --remove"
checklinks --remove
[[ -e bar ]]
[[ ! -e link ]]
diff --git a/test/main b/test/main
index 75b3cd8..93bc7dd 100755
--- a/test/main
+++ b/test/main
@@ -25,12 +25,12 @@ test directories:
HOME = $test_home
meow
-source $tests/setup
-
-echo "# bootstrapping PKG_DIR"
cd $test_home
export HOME=$test_home
source $tests/checklinks
+(source $tests/setup)
+
+echo "# bootstrapping PKG_DIR"
$test_proot/core/include/bootstrap $test_proot $test_pdir
echo "# checking for success"