summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 23:21:22 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 23:55:40 +0000
commit3178be82907d7e3c9d49f9dfa7f03c4b4884d867 (patch)
tree8d7fe6a5650af24b2b4cdc63d3be3344bd98fc25 /tests
parent2aa37b1e612e040ce9a661b4e016dc4bb6bd0b08 (diff)
Test suite: import-nonnative: Test tarbombs
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/import-nonnative33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/tests/import-nonnative b/tests/tests/import-nonnative
index a1884e7..838731a 100755
--- a/tests/tests/import-nonnative
+++ b/tests/tests/import-nonnative
@@ -96,4 +96,37 @@ chk example 1.0-1
# 3.0 (quilt), single-debian-patch, one orig
chk sunxi-tools 1.2-2.~~dgittest
+mangle1 () {
+ rm -f ${1}_*
+ chk1 "$@"
+ cd $tmp/mirror/pool/main
+ dpkg-source -x ${p}_${v}.dsc td
+ orig=${p}_${v%-*}.orig.tar.gz
+ tar zxf $orig
+ rm $orig ${p}_${v}.*
+ cd $p
+ mkdir urk
+ echo urk >urk/urk
+ export GZIP=-1
+}
+mangle2 () {
+ cd ..
+ dpkg-source -b td
+ rm -rf $p td
+ cd $tmp
+ t-archive-none $p
+ t-archive-query
+ chk2
+}
+
+# 3.0 (quilt), multiple patches, tarbomb orig
+mangle1 example 1.0-1
+tar zvcf ../$orig *
+mangle2
+
+# 3.0 (quilt), multiple patches, tarbomb orig with dot
+mangle1 example 1.0-1
+tar zvcf ../$orig .
+mangle2
+
echo done.