chiark / gitweb /
Test suite: tartree-edit: Provide facility for comparing sets of git refs
[dgit.git] / tests / lib
index d131e7b2a8dc4a6328a32d8cb1016135a896ba58..7f459aa2cf2f258fc124de9fce0ceeb342ea1ddc 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -9,9 +9,12 @@ set -o pipefail
 
 t-set-intree
 
-: ${DGIT_TEST_DEBUG:=-D}
+: ${DGIT_TEST_DEBUG=-D}
 export DGIT_TEST_DEBUG
 
+export GIT_COMMITTER_DATE='1440253867 +0100'
+export GIT_AUTHOR_DATE='1440253867 +0100'
+
 root=`pwd`
 troot=$root/tests
 testname="${DGIT_TEST_TESTNAME-${0##*/}}"
@@ -45,6 +48,11 @@ incoming             = $tmp/incoming
 run_dinstall           = 0
 END
 
+t-git-next-date () {
+       GIT_COMMITTER_DATE="$(( ${GIT_COMMITTER_DATE%% *} + 1 )) ${GIT_COMMITTER_DATE#* }"
+       GIT_AUTHOR_DATE="$GIT_COMMITTER_DATE"
+}
+
 t-expect-fail () {
        local mpat="$1"; shift
 
@@ -602,6 +610,10 @@ t-restrict () {
        (cd $root; t-restriction-$restriction >&2)
 }
 
+t-dependencies () {
+       : "Hopefully installed: $*"
+}
+
 t-chain-test () {
        local ct=$1
        local d=${0%/*}