summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-23 16:33:08 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-30 19:50:47 +0000
commit50442a0454ed323e0fce646d5ebfd213fd7051a9 (patch)
tree801754b4100cc6e7d92f34103dcff48af209437c
parent0414a19855b1b8c9103c1dd78fc495c1007e75f2 (diff)
Test suite: orig-include-exclude: Test orig tarball hash mismatch
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xtests/tests/orig-include-exclude18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/tests/orig-include-exclude b/tests/tests/orig-include-exclude
index b7c7f7f..96bf4f2 100755
--- a/tests/tests/orig-include-exclude
+++ b/tests/tests/orig-include-exclude
@@ -2,6 +2,24 @@
set -e
. tests/lib
+suitespecs+=' stable'
+
. $troot/lib-orig-include-exclude
+ofb=example_1.1.orig.tar
+zcat $ofb.gz >$ofb.SPONG
+gzip -1Nv $ofb.SPONG
+mv $ofb.SPONG.gz $ofb.gz
+
+#suite=stable
+#t-archive-none $p
+#t-archive-updated stable $p
+
+cd $p
+
+test-push-1 1.1-1.3 '' stable
+
+t-expect-fail E:'archive contains .* with different checksum' \
+test-push-2 --new
+
echo done.