summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-03 11:31:10 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-03 11:31:10 +0200
commit7b57a01988f1a0f77b66ac69fdb5fb03c4aff60f (patch)
tree8325f11f71e41282b700f46a38422bfb87f14574
parentfbbb2216fc201b9f7a8dc821925203ce7672d27d (diff)
Made tests less spammy
-rw-r--r--test/documentation5
-rwxr-xr-xtest/main1
-rw-r--r--test/pull-prepare4
-rw-r--r--test/push2
-rw-r--r--test/setup8
5 files changed, 9 insertions, 11 deletions
diff --git a/test/documentation b/test/documentation
index 61bffa0..08246dc 100644
--- a/test/documentation
+++ b/test/documentation
@@ -1,7 +1,4 @@
## vim:ft=zsh
-alias podchecker='podchecker -warnings -warnings'
echo "# Documentation"
podchecker bin/checklinks
-for file in man/*/*; {
- podchecker $file
-}
+podchecker -warnings -warnings man/*/*
diff --git a/test/main b/test/main
index c572fbc..5c46e5b 100755
--- a/test/main
+++ b/test/main
@@ -3,6 +3,7 @@ unset -m 'GIT_*'
setopt err_exit
trap "print -P '\n%N:%i: %B%F{red}Test faild!%F{default}%b'" ZERR
+alias pkg='pkg --quiet'
source test/documentation
diff --git a/test/pull-prepare b/test/pull-prepare
index a7022fe..c50ad8e 100644
--- a/test/pull-prepare
+++ b/test/pull-prepare
@@ -2,8 +2,8 @@
if [[ $repo == $file ]] {
echo "# Creating new commit in PKG_ROOT"
cd $test_proot/$file
- git checkout -f
+ git checkout -q -f
echo $RANDOM > baz
git add baz
- git commit -m 'floeppel'
+ git commit --quiet -m 'floeppel'
}
diff --git a/test/push b/test/push
index ff735e5..8463e61 100644
--- a/test/push
+++ b/test/push
@@ -2,7 +2,7 @@
somefile=$RANDOM
touch $somefile
git add $somefile
-git commit -m $somefile
+git commit --quiet -m $somefile
pkg push
if [[ $repo == *-bare ]] {
[[ $(git --git-dir=$test_proot/$repo log --pretty=oneline | head -1) == *$somefile ]]
diff --git a/test/setup b/test/setup
index e86739b..c1d7b20 100644
--- a/test/setup
+++ b/test/setup
@@ -1,12 +1,12 @@
## vim:ft=zsh
echo "# setting up PKG_ROOT"
cd $test_proot
-git clone ${1-git://git.tabularazor.org/~derf/pkg} core
+git clone --quiet ${1-git://git.tabularazor.org/~derf/pkg} core
cp core/include/pkglist pkglist
for repo in ra rb rc; (
mkdir $repo
cd $repo
- git init
+ git init --quiet
git config receive.denyCurrentBranch ignore
touch foo
mkdir bin
@@ -16,11 +16,11 @@ for repo in ra rb rc; (
chmod 755 bin/$repo
echo 'touch ~/prereq_ok_'$repo > prereqs
git add .
- git commit -m 'initial commit'
+ git commit --quiet -m 'initial commit'
cd ..
mkdir ${repo}-bare
cd ${repo}-bare
- git --bare init
+ git --bare init --quiet
cd ../$repo
git push ../${repo}-bare master
)