chiark / gitweb /
test suite: gdr-new-upstream: Check changelog is exactly right
[dgit.git] / 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'