summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-04 20:52:11 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-04 22:11:07 +0000
commit22585c56d8f02ebddddf7f3c28482705095ab35f (patch)
tree816e122db18ba9be79a201de6fb744cf243295cd
parentba4cd51f727438b7f2e437df9c674f3f533c5317 (diff)
test suite: Run git-fsck a lot
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--tests/lib15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index b776305..579ddda 100644
--- a/tests/lib
+++ b/tests/lib
@@ -349,7 +349,22 @@ t-git-dir-check () {
esac
}
+t-git-fsck () {
+ git fsck --no-dangling --strict
+}
+
+t-fscks () {
+ (
+ shopt -s nullglob
+ for d in $tmp/*/.git $tmp/git/*.git; do
+ cd "$d"
+ t-git-fsck
+ done
+ )
+}
+
t-ok () {
+ t-fscks
echo ok.
}