summaryrefslogtreecommitdiff
path: root/tests/tests
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-07-20 17:17:06 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-20 23:31:26 +0100
commite82d9492c0a63d75c96e2ebdbc93300d57927d60 (patch)
treed704f2377dad8b3eb92a2dcc891b768861d38674 /tests/tests
parentd95dee518855473eb8e10acf749b7275ca34bb0e (diff)
git-debpush: Check upstream source is identical in the upstream tag
Closes: #932476 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> Acked-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests')
-rwxr-xr-xtests/tests/tagupl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl
index 09ca53a..9d3e45a 100755
--- a/tests/tests/tagupl
+++ b/tests/tests/tagupl
@@ -23,10 +23,19 @@ git tag $upstreamtag
git checkout -B master quilt-tip-2
+echo foo >bar
+git add bar
+git commit -m"corrupt the upstream source to test upstream-nonidentical check"
+
t-tagupl-settings
tagname=test-dummy/$v
+t-expect-fail "the upstream source in tag $upstreamtag is not identical to the upstream source in refs/heads/master" \
+t-tagupl-test --quilt=gbp --upstream=$upstreamtag
+
+git reset --hard HEAD~1
+
t-expect-fail "upstream tag $upstreamtag is not an ancestor of refs/heads/master" \
t-tagupl-test --quilt=gbp --upstream=$upstreamtag