chiark / gitweb /
tests: import-dsc: Test corrupted ENV (#950446)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Feb 2020 12:34:04 +0000 (12:34 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 2 Feb 2020 16:31:51 +0000 (16:31 +0000)
Closes: #950326
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/pkg-srcs/example_1.0-1+brokenmeta.debian.tar.xz [new file with mode: 0644]
tests/pkg-srcs/example_1.0-1+brokenmeta.dsc [new file with mode: 0644]
tests/tests/import-dsc

diff --git a/tests/pkg-srcs/example_1.0-1+brokenmeta.debian.tar.xz b/tests/pkg-srcs/example_1.0-1+brokenmeta.debian.tar.xz
new file mode 100644 (file)
index 0000000..caad820
Binary files /dev/null and b/tests/pkg-srcs/example_1.0-1+brokenmeta.debian.tar.xz differ
diff --git a/tests/pkg-srcs/example_1.0-1+brokenmeta.dsc b/tests/pkg-srcs/example_1.0-1+brokenmeta.dsc
new file mode 100644 (file)
index 0000000..c7c363d
--- /dev/null
@@ -0,0 +1,22 @@
+Format: 3.0 (quilt)
+Source: example
+Binary: example
+Architecture: all
+Version: 1.0-1+brokenmeta
+Maintainer: Ian Jackson <ijackson@chiark.greenend.org.uk>
+Standards-Version: 3.9.4.0
+Build-Depends: debhelper (>= 8)
+Package-List:
+ example deb devel extra arch=all
+Checksums-Sha1:
+ 2bc730f941db49de57e9678fb0b07bd95507bb44 236 example_1.0.orig-docs.tar.gz
+ 4bff9170ce9b10cb59937195c5ae2c73719fe150 373 example_1.0.orig.tar.gz
+ 68e0e1e3ec092409652d047e62bd3f0dba5a51f3 1304 example_1.0-1+brokenmeta.debian.tar.xz
+Checksums-Sha256:
+ ad9671f6b25cdd9f0573f803f702448a45a45183db1d79701aa760bccbeed29c 236 example_1.0.orig-docs.tar.gz
+ a3ef7c951152f3ec754f96fd483457aa88ba06df3084e6f1cc7c25b669567c17 373 example_1.0.orig.tar.gz
+ 3ef0a50e3c0e025d0facada85d4508469c88150504c079698ae329c0c18bf315 1304 example_1.0-1+brokenmeta.debian.tar.xz
+Files:
+ cb0cb5487b1e5bcb82547396b4fe93e5 236 example_1.0.orig-docs.tar.gz
+ 599f47808a7754c66aea3cda1b3208d6 373 example_1.0.orig.tar.gz
+ 2ed3f4310bdda12b58b1b412d1c88dd9 1304 example_1.0-1+brokenmeta.debian.tar.xz
index 4a8d876..768bd8c 100755 (executable)
@@ -64,6 +64,10 @@ t-dgit import-dsc $dsc2 ..$branch
 t-dgit import-dsc $dsc2 +$branch
 check-imported $dsc2
 
+dsc3=$troot/pkg-srcs/example_1.0-1+brokenmeta.dsc
+t-dgit import-dsc $dsc3 +$branch
+check-imported $dsc3
+
 cd ..
 mkdir $p.2
 cd $p.2