chiark / gitweb /
test suite: gdr-new-upstream: Check changelog is exactly right
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Aug 2018 15:06:03 +0000 (16:06 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2018 00:20:43 +0000 (01:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-newupstream

index 0724459..d72971a 100755 (executable)
@@ -26,8 +26,22 @@ t-git-debrebase new-upstream $v
 
 git tag v2.1 upstream
 
+git branch before-new-upstream
+
 t-git-debrebase new-upstream ${v%-*}
 
+date=$(git log --format=%aD -n1 debian/changelog)
+cat >../clog.expected <<END
+example ($v) UNRELEASED; urgency=medium
+
+  * Update to new upstream version ${v%-*}.
+
+ -- dgit test git user <dgit-test@debian.example.net>  $date
+
+END
+git show before-new-upstream:debian/changelog >>../clog.expected
+diff -u ../clog.expected debian/changelog
+
 t-gdr-good laundered
 git reflog | egrep 'debrebase new-upstream.*checkout'