chiark / gitweb /
test suite: gitattributes: More testing of clone: check sums
[dgit.git] / tests / tests / gitattributes
index 83fa6102ef430f7ecc2a3899fac68e6ddeef484a..6197dbd5231727ba17c1694d6ffdeb0eea435de9 100755 (executable)
@@ -149,7 +149,7 @@ t-dgit-warn-check () {
        LC_MESSAGES=C t-dgit "$@" 2>&1 |tee ../$err
 
        set +e
-       fgrep 'warning: source tree contains .gitattributes' ../$err
+       egrep 'warning: .* contains \.gitattributes' ../$err
        rc=$?
        set -e
 
@@ -229,4 +229,18 @@ sfmt_setup 1.0-1 quilt
 sfmt_import norm
 sfmt_import absurd --force-import-gitapply-absurd
 
+: ----- 'test clone (with "3.0 (quilt)")' -----
+
+mv $origtar ${dscf%.dsc}.* $tmp/mirror/pool/main/
+t-archive-query sid
+
+t-dgit-warn-check 0 -cdgit.default.setup-gitattributes=false \
+       clone $p sid $p.clone.broken
+cd $p.clone.broken
+
+sums=$p.clone.broken
+sums_check_broken
+
+cd ..
+
 #t-ok