From 22585c56d8f02ebddddf7f3c28482705095ab35f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 4 Jan 2017 20:52:11 +0000 Subject: test suite: Run git-fsck a lot Signed-off-by: Ian Jackson --- tests/lib | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests') 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. } -- cgit v1.2.3