chiark / gitweb /
git-debrebase: test suite: gdr-import-dgit: test a new upstream non-gdr upload too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 17 Feb 2018 19:41:36 +0000 (19:41 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 18 Feb 2018 12:04:46 +0000 (12:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-edits
tests/tests/gdr-import-dgit

index c3ccff1273c897588272c6f645ac7b958948adc9..83bd8016849cc381d00a458fceb7ad80abe98873 100755 (executable)
@@ -29,7 +29,6 @@ t-gdr-good stitched
 t-dgit push-source
 t-gdr-good pushed
 
-: todo 'more tests: convert dgit import new upstream version'
 : todo 'more tests: other maint updated, we must fetch'
 : todo 'more tests: other maint updated, alert divergence'
 : todo 'more tests: nmu divergence'
index 26d548c53abc7d654c9fff87912fa63b39ccee8f..b96f56259a9962ff3e2f9261599cf45c3eaeaace 100755 (executable)
@@ -58,7 +58,6 @@ nmu-fold () {
        git branch unlaundered.$nmubranch
 
        t-git-debrebase
-
        t-gdr-good laundered
 
        t-git-debrebase stitch
@@ -72,4 +71,24 @@ t-dch-commit -v $v -m "incorporate nmu"
 t-dch-commit -r sid
 t-dgit -wgf push-source
 
+: 'now test a new upstream'
+
+t-make-new-upstream-tarball 2.1
+
+git checkout master
+v=2.1-0+nmu1
+nmu-upload-1 nmu2
+
+gbp import-orig --upstream-version=2.1 --debian-branch=nmu2 ../$ust
+t-dch-commit -v $v -m "new upstream $v"
+gbp pq import
+
+#t-dgit -wgf build-source
+
+nmu-upload-2
+
+: 'done the nmu, back to the maintainer'
+
+nmu-fold
+
 t-ok