chiark / gitweb /
test suite: Test that we can copy an orig from bpd
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Jan 2019 16:40:14 +0000 (16:40 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 6 Jan 2019 16:40:14 +0000 (16:40 +0000)
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>
tests/tests/push-buildproductsdir

index 505d1054b6faa99e6e683dbe0e1fc0f8559c7115..cc1c5e2c31803998bc40eb0d11b12fa98ee7ce3a 100755 (executable)
@@ -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