summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-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.
}