X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-gdr;h=26afb1d341823b18dea0e0b2f1b453f583a4ff28;hp=17058f96108c93023000ae667250c15170f5c899;hb=1c1d3d66204122d547e8cc203a3173ff5f3eb3c4;hpb=a256823c46da760688493a32ec49e5c2b93cd17a diff --git a/tests/lib-gdr b/tests/lib-gdr index 17058f96..26afb1d3 100644 --- a/tests/lib-gdr +++ b/tests/lib-gdr @@ -144,3 +144,43 @@ t-make-new-upstream-tarball () { ust=example_$uv.orig.tar.gz git archive -o ../$ust --prefix=example-2.0/ make-upstream } + +t-nmu-upload-1 () { + # usage: + # v= + # nmu-upload-1 + # gbp pq import or perhaps other similar things + # nmu-upload-2 + # maybe make some dgit-covertible commits + # nmu-upload-3 + + t-git-next-date + nmubranch=$1 + git checkout -f -b $nmubranch + t-git-debrebase + t-git-debrebase convert-to-gbp + t-git-next-date + # now we are on a gbp patched-unapplied branch +} + + +t-nmu-upload-2 () { + t-git-next-date + t-dch-commit -v $v -m "nmu $nmubranch $v" +} + +t-nmu-upload-3 () { + t-dch-commit -r sid + + t-dgit -wgf build-source + + cd .. + c=${p}_${v}_source.changes + debsign -kBCD22CD83243B79D3DFAC33EA3DBCBC039B13D8A $c + dput -c $tmp/dput.cf test-dummy $c + + t-archive-process-incoming sid + t-git-next-date + cd $p + git checkout master +}