From 85809902a85307b0668abf816baea402393d8324 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Oct 2016 18:34:40 +0100 Subject: [PATCH 1/1] Test suite: Add test that #840989 is fixed Signed-off-by: Ian Jackson --- debian/tests/control | 2 +- .../pkg-srcs/example_1.0-1.100.debian.tar.xz | Bin 0 -> 2108 bytes tests/pkg-srcs/example_1.0-1.100.dsc | 22 ++++++++++++++++++ tests/tests/clone-clogsigpipe | 10 ++++++++ 4 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/pkg-srcs/example_1.0-1.100.debian.tar.xz create mode 100644 tests/pkg-srcs/example_1.0-1.100.dsc create mode 100755 tests/tests/clone-clogsigpipe diff --git a/debian/tests/control b/debian/tests/control index 4971be00..5e5b0d23 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -21,7 +21,7 @@ Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8) Restrictions: x-dgit-git-only -Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast gitconfig import-native import-nonnative inarchivecopy mismatches-contents mismatches-dscchanges newtag-clone-nogit oldnewtagalt oldtag-clone-nogit overwrite-chkclog overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay unrepresentable version-opt +Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-clogsigpipe clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast gitconfig import-native import-nonnative inarchivecopy mismatches-contents mismatches-dscchanges newtag-clone-nogit oldnewtagalt oldtag-clone-nogit overwrite-chkclog overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay unrepresentable version-opt Tests-Directory: tests/tests Depends: dgit, dgit-infrastructure, devscripts, debhelper (>=8) diff --git a/tests/pkg-srcs/example_1.0-1.100.debian.tar.xz b/tests/pkg-srcs/example_1.0-1.100.debian.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..ea8ec34c63c35cf7a7d1bb32b7bfdd415e083fe0 GIT binary patch literal 2108 zcmV-C2*daNH+ooF000E$*0e?f03iVu0001VFXf}-Z~q7RT>vr}NNor1@tIyK_)om{ z6G3Rf3tP$4y+5f(>kB2c^0uX8>%W!;_=~y)f5$#>0EAG0sc5HWe^}4Nn~e*1jYwv7 zP33g7A0CJoBDGiMr&+Rw>>`z$b3s$=Yc}`SCJJEJC8RCvd#m|YJ9+%gJN0M9&xD~w ztW$EF!hV6_od&XpGQj+|=tLv?Vrql|R^wrA?Xn%b(eHa(A2jYV4idHxuGiK2mkniTh{$(KcJcMCnT=OU;J3 z5Z|8OMo%lU6jgk0bg(8`&XC<=M}eX%T0w&_O5z!1v2lTdds52dp*LDkaBJsLOO8%p z)-Xa}Lh(l}#Gl$_T(5_aPWlRGogRxE=f~88>xb#yMhmn`Sl36LqLfEt8U;UuEO8i% z6vBwuEgUT~b3ghpz1&#Mp)q0r!wXL{pMhpiU&_<8expNwW=i#++8{4wRPiwo3i}a6 zZi8xrr06FHtODIrH=K>YNT;*0>EVbivkZ&;ex*J77Je{+I=m(E*!s-+oFr4K=&M?c zdpx-O*g1#s?u`d=`5z(M5uK0crbz{Z5OVJ&}Pq;DWCoaxRce8ec!u|0a}#Q+Gs^MuVYn3I|rhe?LV2wRXI?@1!^ zIV%`(djMsZD8Fqka{8kuLceY0Sy+`KoK0`KNG{h&OZTuz?&^>@(V|^rc)x#oUYL%z zZGRiXx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bc730f941db49de57e9678fb0b07bd95507bb44 236 example_1.0.orig-docs.tar.gz + 4bff9170ce9b10cb59937195c5ae2c73719fe150 373 example_1.0.orig.tar.gz + 86c31eba5e08c1765f8e557b97e59d7e1fd9c208 2108 example_1.0-1.100.debian.tar.xz +Checksums-Sha256: + ad9671f6b25cdd9f0573f803f702448a45a45183db1d79701aa760bccbeed29c 236 example_1.0.orig-docs.tar.gz + a3ef7c951152f3ec754f96fd483457aa88ba06df3084e6f1cc7c25b669567c17 373 example_1.0.orig.tar.gz + 163f1a753f0ea382148df8d9553240d503781badf03c600946f1400534da1349 2108 example_1.0-1.100.debian.tar.xz +Files: + cb0cb5487b1e5bcb82547396b4fe93e5 236 example_1.0.orig-docs.tar.gz + 599f47808a7754c66aea3cda1b3208d6 373 example_1.0.orig.tar.gz + 4b7f5d286eff2608107c77c96584a01a 2108 example_1.0-1.100.debian.tar.xz diff --git a/tests/tests/clone-clogsigpipe b/tests/tests/clone-clogsigpipe new file mode 100755 index 00000000..ff5f303e --- /dev/null +++ b/tests/tests/clone-clogsigpipe @@ -0,0 +1,10 @@ +#!/bin/bash +set -e +. tests/lib + +t-archive example 1.0-1.100 +t-git-none + +t-dgit clone $p + +echo ok. -- 2.30.2