diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-16 12:55:54 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-07-16 12:55:54 +0100 |
commit | ba5d46b8844b347f9dd54657b818c5017491bd13 (patch) | |
tree | 8bd05221c95c816b5cd451a905b006883f4b2a37 /tests/tests/unrepresentable | |
parent | 1c1a95aa2d220dc8fb067fe93795a9a31043a98e (diff) |
quilt fixup: Check that funny changes are represented properly
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>
Diffstat (limited to 'tests/tests/unrepresentable')
-rwxr-xr-x | tests/tests/unrepresentable | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/tests/unrepresentable b/tests/tests/unrepresentable index b2de452..e4b0da8 100755 --- a/tests/tests/unrepresentable +++ b/tests/tests/unrepresentable @@ -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 |