chiark / gitweb /
test suite: tagupl: A few more error case tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Jul 2019 17:37:21 +0000 (18:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jul 2019 10:18:17 +0000 (11:18 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/tagupl

index 7d716fe447481c5d7d1cb04f0ffd8534e3e22c93..929153b3aa72d31632aaf3d3613deb289c7f730b 100755 (executable)
@@ -103,6 +103,23 @@ expect-email unkinfo 's/^\[dgit please-upload/$& Rejectme/' \
 expect-quit unkdistro 's/test-dummy/ubuntu/ if m/^\[dgit/' \
        'not for this distro'
 
+expect-email notsplit 's/ split / no-split /' 'reject: missing "split"'
+
+expect-email upsnot1 's/ upstream=/ uxstream=/' \
+       'reject: upstream tag and not commitish'
+
+expect-email upsnot2 's/ upstream-tag=/ uxstream-tag=/' \
+       'reject: upstream tag and not commitish'
+
+expect-email bupstag1 's/ upstream-tag=/$&:/' \
+       "failed command: git check-ref-format"
+
+expect-email bupstag2 's/ upstream-tag=/$&x/' \
+       "Couldn't find remote ref refs/tags/xupstream"
+
+expect-email upsmism 's/ upstream=/$&3/' \
+       "but tag refers to"
+
 # we are going to trash $p because it will contain corrupted objects
 # which makes our end-of-test fsck fail
 cp -al ../$p ../$p.save