Re: [PATCH] Add test-chmtime: a utility to change mtime on files
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Feb 25, 2007, 02:15 UTC
- Message-ID
- <20070225021512.GA31849@mayonaise.dyndns.org>
- In-Reply-To
- <Pine.LNX.4.63.0702250220130.22628@wbgn013.biozentrum.uni-wuerzburg.de>
As brought up by Johannes Schindelin, some people run tests within the t/ directory and often without make. We need to check and inform those users to build test-chmtime before running those tests.
Signed-off-by: Eric Wong <normalperson@yhbt.net> --- t/test-lib.sh | 6 ++++++ 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"
-- 1.5.0.137.ge6502