X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib;h=8fd35147431f884637c195ddde9ba41b34cfd58f;hp=3c04155a2ddbe398ba480030186b1ab8add23186;hb=3e0e30a2fab1b5770c770bbc4df3d55bef611d20;hpb=db7c7281e93d6f42c624bb361786fbb5a292f8c9 diff --git a/tests/lib b/tests/lib index 3c04155a..8fd35147 100644 --- a/tests/lib +++ b/tests/lib @@ -389,7 +389,7 @@ t-fscks () { ( shopt -s nullglob for d in $tmp/*/.git $tmp/git/*.git; do - cd "$d" + cd "${d%/.git}" t-git-fsck done ) @@ -407,7 +407,7 @@ t-rm-dput-dropping () { t-dgit () { local dgit=${DGIT_TEST-dgit} - pwd + pwd >&2 : ' {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{' $dgit --dgit=$dgit --dget:-u --dput:--config=$tmp/dput.cf \ @@ -419,6 +419,17 @@ t-dgit () { ' } +t-dgit-manpage () { + local section=$1 + local page=$2 + (export LC_ALL=C.UTF-8 + if [ "$DGIT_TEST_INTREE" ]; then + make -C $DGIT_TEST_INTREE $page.$section.view + else + man $section $page + fi) +} + t-diff-nogit () { diff --exclude=.git --exclude=.pc -ruN $* }