From df8e84c712a62c700be66d030539482647492db1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 6 Jan 2019 16:40:14 +0000 Subject: [PATCH] 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 --- tests/tests/push-buildproductsdir | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2