chiark / gitweb /
git-debrebase: test suite: gdr-import-dgit: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Feb 2018 15:48:06 +0000 (15:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 15:03:06 +0000 (16:03 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/gdr-import-dgit [new file with mode: 0755]

index d0bad8bf3fe892190056562498da807d6da7394a..891c0c85820f4e924c67f36a31204c1a607995bc 100644 (file)
@@ -16,7 +16,7 @@ Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin
 Restrictions: x-dgit-intree-only x-dgit-git-only
 
-Tests: gdr-edits
+Tests: gdr-edits gdr-import-dgit
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8), fakeroot, build-essential, chiark-utils-bin, git-buildpackage, libfile-fnmatch-perl
 
diff --git a/tests/tests/gdr-import-dgit b/tests/tests/gdr-import-dgit
new file mode 100755 (executable)
index 0000000..5d40157
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-dependencies git-buildpackage libfile-fnmatch-perl
+
+t-setup-import gbp2gdr
+
+cd $p
+
+: 'non-dgit upload (but we prepare it with dgit anyway)'
+
+git checkout -b nmu
+
+v=2.0-2+num1
+t-dch-commit -v $v -m nmu
+
+t-some-changes nmu
+
+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
+
+: 'done the nmu, switching back to the maintainer hat'
+
+cd $p
+git checkout master
+t-dgit pull
+
+git branch t.before
+
+: t-git-debrebase launder
+
+t-ok