From: Ian Jackson Date: Sun, 6 Jan 2019 16:40:14 +0000 (+0000) Subject: test suite: Test that we can copy an orig from bpd X-Git-Tag: archive/debian/8.3~11 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=df8e84c712a62c700be66d030539482647492db1 test suite: Test that we can copy an orig from bpd Manually move just the .orig from the bpd to `..'. Then check that when we are done they are (links to) the same file. Signed-off-by: Ian Jackson --- diff --git a/tests/tests/push-buildproductsdir b/tests/tests/push-buildproductsdir index 505d1054..cc1c5e2c 100755 --- a/tests/tests/push-buildproductsdir +++ b/tests/tests/push-buildproductsdir @@ -22,10 +22,18 @@ t-dgit --dpkg-buildpackage:-d build cd .. mkdir bpd mv $p*_* bpd/ +mv bpd/*orig* . cd $p t-dgit --build-products-dir=../bpd push t-pushed-good dgit/sid +cd .. +for f in ${p}_*.orig.*; do + in_ddd=$( stat -c %D:%i -L $f ) + in_bpd=$( stat -c %D:%i -L bpd/$f ) + test $in_ddd = $in_bpd +done + t-ok