X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftests%2Fquilt-gbp;h=2dc9b420e3bd3ab47ddb2bc46744661e268fa027;hb=a76f225dd9f40fb964058702a88a30ddffb17b23;hp=b3e9534323f5928ee5a8fe9ca67d2e32bbc04b1a;hpb=cac3a7959fa4714480cac143f6d2e0f5758a12e5;p=dgit.git diff --git a/tests/tests/quilt-gbp b/tests/tests/quilt-gbp index b3e95343..2dc9b420 100755 --- a/tests/tests/quilt-gbp +++ b/tests/tests/quilt-gbp @@ -2,6 +2,10 @@ set -e . tests/lib +t-tstunt-parsechangelog + +t-newtag + t-gbp-example-prep t-expect-fail 'quilt fixup cannot be linear' \ @@ -23,31 +27,25 @@ t-dgit --quilt=gbp --clean=git build-source t-expect-fail 'specifies a different tree to your HEAD commit' \ t-dgit push -t-dgit --quilt=gbp push - -exit 0 - -=== +test-push () { + t-refs-same-start + t-ref-head -want to + t-dgit --quilt=gbp push - t-pushed-good XXX need to do something more subtle than check our branch is in repo now + t-gbp-pushed-good +} - check that - - we didn't update caller's branch +test-push - do fetch - check that this didn't update dgit remote ref - - check that Dgit hash in dsc refers to tree identical - to dpkg-source -x +echo wombat >>debian/pointless-for-dgit-test +git add debian/pointless-for-dgit-test +git commit -m 'Pointless 2' - check that that tree - - has patches applied (reuse rules build magic) - - has .gitignore edited +t-commit 'Check psuedomerge' 1.0-3 -make a new change +t-dgit --quilt=gbp --clean=git build-source -push it +test-push -check that the synthetic fast forward worked +exit 0