From 7b57a01988f1a0f77b66ac69fdb5fb03c4aff60f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Jul 2009 11:31:10 +0200 Subject: Made tests less spammy --- test/documentation | 5 +---- test/main | 1 + test/pull-prepare | 4 ++-- test/push | 2 +- test/setup | 8 ++++---- 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 ) -- cgit v1.2.3