summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-02-25 00:59:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-25 19:09:56 (GMT)
commit56cf9806a97f5fe9a91c38aa3eb8cec0c76480e6 (patch)
treea94108f3d67327d47269a4021a95b4afc23b0eed /t/test-lib.sh
parent17e48368751ae8df7ed0332ae8ef900ce983fce6 (diff)
downloadgit-56cf9806a97f5fe9a91c38aa3eb8cec0c76480e6.zip
git-56cf9806a97f5fe9a91c38aa3eb8cec0c76480e6.tar.gz
git-56cf9806a97f5fe9a91c38aa3eb8cec0c76480e6.tar.bz2
Update tests to use test-chmtime
test-lib: Make sure test-chmtime has been built before starting. t4200-rerere: Removed non-portable date dependency and avoid touch Avoid "test -a" which isn't portable, either lib-git-svn: Use test-chmtime instead of Perl one-liner to poke Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index a403fe0..c075474 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -264,6 +264,12 @@ test -d ../templates/blt || {
error "You haven't built things yet, have you?"
}
+if ! test -x ../test-chmtime; then
+ echo >&2 'You need to build test-chmtime:'
+ echo >&2 'Run "make test-chmtime" in the source (toplevel) directory'
+ exit 1
+fi
+
# Test repository
test=trash
rm -fr "$test"