X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Flib;h=1179fb093f8ed48535c60a5eaaf52fc7ae9de481;hb=7184a61e0bf4b097711965eee629541f54ebf4ec;hp=bd74ba8efa25d1561242eb2d25338a7ebd63f0f7;hpb=195998cbc987f5c35da2e937e4938dfda7865464;p=dgit.git diff --git a/tests/lib b/tests/lib index bd74ba8e..1179fb09 100644 --- a/tests/lib +++ b/tests/lib @@ -301,6 +301,15 @@ t-diff-nogit () { diff --exclude=.git --exclude=.pc -ruN $* } +t-files-notexist () { + local f + for f in "$@"; do + if [ -e $f ]; then + fail "$f exists!" + fi + done +} + t-cloned-fetched-good () { t-diff-nogit ../extract/$p-${v%-*} . t-clean-on-branch dgit/sid @@ -427,6 +436,16 @@ t-pushed-good () { git verify-tag `t-v-tag` } +t-commit-build-push-expect-log () { + local msg=$1 + local mpat=$2 + t-commit "$msg" + t-dgit build + LC_MESSAGES=C \ + t-dgit push --new 2>&1 |tee $tmp/push.log + t-grep-mpat "$mpat" $tmp/push.log +} + t-822-field () { local file=$1 local field=$2