chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag dgit/2.14 into `defence in dgit-repos-server' branch
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index b033dde2f78040b5a55ea06dd781d8fb1db5a772..5fcb6f656b82497e2726638c7ae2523bc5245064 100644
(file)
--- a/
tests/lib
+++ b/
tests/lib
@@
-349,6
+349,25
@@
t-git-dir-check () {
esac
}
esac
}
+t-git-fsck () {
+ git fsck --no-dangling --strict || ${expect_fsck_fail-false}
+}
+
+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.
+}
+
t-rm-dput-dropping () {
rm -f $tmp/${p}_${v}_*.upload
}
t-rm-dput-dropping () {
rm -f $tmp/${p}_${v}_*.upload
}
@@
-759,6
+778,16
@@
t-tstunt-parsechangelog () {
t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
}
t-tstunt dpkg-parsechangelog Dpkg/Changelog/Parse.pm
}
+t-tstunt-lintian () {
+ t-tstunt lintian
+}
+
+t-tstunt-debuild () {
+ : ${DGIT_TEST_REAL_DEBUILD:=$(type -p debuild)}
+ export DGIT_TEST_REAL_DEBUILD
+ t-tstunt debuild
+}
+
t-incoming-dsc () {
local dsc=${p}_${v}.dsc
incoming_dsc=$tmp/incoming/$dsc
t-incoming-dsc () {
local dsc=${p}_${v}.dsc
incoming_dsc=$tmp/incoming/$dsc