chiark / gitweb /
test suite: initial git-debrebase setup attempts - bugfixes
[dgit.git] / tests / tests / gitattributes
index 83fa6102ef430f7ecc2a3899fac68e6ddeef484a..9e1c246a476cf400c95b76af163663ef1c5938ca 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
 
@@ -178,6 +178,7 @@ sfmt_import () {
 
        t-dgit-warn-check 1 $dgitargs import-dsc ../$dscf +$branch
        git checkout $branch
+       touch af/*
        git reset --hard
 
        sums_check
@@ -229,4 +230,27 @@ sfmt_setup 1.0-1 quilt
 sfmt_import norm
 sfmt_import absurd --force-import-gitapply-absurd
 
-#t-ok
+: ----- '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-dgit-warn-check 1 clone $p sid $p.clone
+
+cd $p.clone
+sums=sums.clone
+branch=dgit/sid
+sums_check
+
+cd ..
+
+t-ok