chiark / gitweb /
Test suite: orig-include-exclude: Test orig tarball hash mismatch
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Oct 2016 15:33:08 +0000 (16:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:47 +0000 (19:50 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/orig-include-exclude

index b7c7f7fd57fb312418cae1057d5403f239cee1dd..96bf4f21f3ae444530b50646634f6942a70113f0 100755 (executable)
@@ -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.