chiark / gitweb /
test suite: gdr-import-dgitview: Actually test convert-from-dgitview
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Aug 2018 11:02:21 +0000 (12:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Aug 2018 11:02:21 +0000 (12:02 +0100)
This was always my intention with this test, of course.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-import-dgitview

index 84fc50c..3670deb 100755 (executable)
@@ -22,4 +22,24 @@ t-git-debrebase
 LC_MESSAGES=C t-git-debrebase status |tee ../bare-output
 grep 'bare dgit dsc import with no prior history' ../bare-output
 
+git branch before
+
+t-expect-fail E:'Could not find or construct a suitable upstream commit' \
+t-git-debrebase convert-from-dgit-view --no-origs
+
+t-git-debrebase convert-from-dgit-view
+t-gdr-good laundered
+
+t-expect-fail E:'already seems to be in git-debrebase format' \
+t-git-debrebase convert-from-dgit-view
+
+t-refs-same-start
+t-ref-head
+t-git-debrebase --noop-ok convert-from-dgit-view
+t-ref-head
+
+t-git-debrebase convert-from-dgit-view --always-convert-anyway
+t-expect-fail E:'ref varies' t-ref-head
+t-gdr-good laundered
+
 t-ok