summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-04 12:02:21 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-08-04 12:02:21 +0100
commit999fd7ad45c4a442ffe199df4e43918bc192dcb4 (patch)
tree74fd82b8b048640f1943c949acc54260fd785c18 /tests
parent485a61ef66da7ad675e0495355b1f9f1df952bf5 (diff)
test suite: gdr-import-dgitview: Actually test convert-from-dgitview
This was always my intention with this test, of course. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/gdr-import-dgitview20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/tests/gdr-import-dgitview b/tests/tests/gdr-import-dgitview
index 84fc50c..3670deb 100755
--- a/tests/tests/gdr-import-dgitview
+++ b/tests/tests/gdr-import-dgitview
@@ -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