git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add test-chmtime: a utility to change mtime on files

From
EWEric 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
Previous: Johannes SchindelinNext: Eric Wong
Message 8 of 9 in “Add test-chmtime: a utility to change mtime on files”
  1. Add test-chmtime: a utility to change mtime on filesEric Wong, Feb 25, 2007
  2. Update tests to use test-chmtimeEric Wong, Feb 25, 2007
  3. Junio C HamanoFeb 25, 2007
  4. Johannes SchindelinFeb 25, 2007
  5. Eric WongFeb 25, 2007
  6. Junio C HamanoFeb 25, 2007
  7. Johannes SchindelinFeb 25, 2007
  8. Eric WongFeb 25, 2007
  9. Add test-chmtime: a utility to change mtime on filesEric Wong, Feb 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.