chiark / gitweb /
quilt fixup: Check that funny changes are represented properly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Jul 2017 11:55:54 +0000 (12:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Jul 2017 11:55:54 +0000 (12:55 +0100)
Specifically, do dgit push --dry-run.  This will check that the source
package and git tree agree - ie, that what we have produced can
round-trip through dpkg-source.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
tests/tests/unrepresentable

index 91c3daf..e82332f 100644 (file)
@@ -23,6 +23,7 @@ dgit (3.12~) unstable; urgency=medium
   * import-dsc: Test missing files, particularly in ..
   * run git gc on tests/worktrees/example_1.0.tar.
   * quilt fixup: Check we can delete files with funny modes
+  * quilt fixup: Check that funny changes are represented properly
 
  --
 
index b2de452..e4b0da8 100755 (executable)
@@ -12,6 +12,11 @@ cd $p
 
 start () { git checkout quilt-tip-1.1~0; }
 attempt () { t-dgit -wgf --quilt=smash quilt-fixup; }
+good () {
+       attempt
+       t-dgit --quilt=nofix -wgf build-source
+       t-dgit -wgf --dry-run push --new
+}
 
 badly-1 () {
        wrongfn=$1
@@ -37,13 +42,13 @@ badly-2
 start
        git rm src.c
        git commit -m deleted
-attempt
+good
 
 start
        git rm orig-exec
        git rm -f orig-unwriteable
        git commit -m 'deleted funny'
-attempt
+good
 
 badly-1 src.c 'mode or type changed'
        chmod +x src.c
@@ -57,6 +62,6 @@ badly-1 new 'creation with non-default mode'
 badly-2
 
 start
-attempt
+good
 
 t-ok