diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-01-06 16:40:14 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-01-06 16:40:14 +0000 |
commit | df8e84c712a62c700be66d030539482647492db1 (patch) | |
tree | 8076983c39343beb65e0c3b023d6c6a8de4c4725 /tests | |
parent | a44387b654d8d6a079efc16e76b23530ec7b651b (diff) |
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/push-buildproductsdir | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tests/push-buildproductsdir b/tests/tests/push-buildproductsdir index 505d105..cc1c5e2 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 |