{"thread":{"id":"10728","subject":"[PATCH] Make it easier to run individual tests","startedAt":"2007-11-08T11:31:12Z","lastAt":"2007-11-08T11:31:12Z","messageCount":1,"participants":["David D Kilzer"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"58861","messageId":"1194521472-13172-1-git-send-email-ddkilzer@kilzer.net","threadId":"10728","inReplyTo":null,"subject":"[PATCH] Make it easier to run individual tests","fromName":"David D Kilzer","fromEmail":"ddkilzer@kilzer.net","sentAt":"2007-11-08T11:31:12Z","receivedAt":"2007-11-08T11:31:12Z","isPatch":true,"sender":{"key":"ddkilzer@kilzer.net","avatar":"https://avatars.githubusercontent.com/u/263571?v=4"},"body":"The following commands now work from the top-level source directory:\n$ make t/t0001-init.sh\n$ T=t0001-init.sh make test\n\nSigned-off-by: David D Kilzer <ddkilzer@kilzer.net>\n---\nFor the maint branch.\n\nI'm so lazy I wanted a way to run tests from the primary Makefile.\n\n Makefile   |    3 +++\n t/Makefile |    2 +-\n 2 files changed, 4 insertions(+), 1 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex e70e320..eb0f7da 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -961,6 +961,9 @@ export NO_SVN_TESTS\n test: all\n \t$(MAKE) -C t/ all\n \n+t/t%.sh: all\n+\tT=`basename $@` $(MAKE) -C t/ all\n+\n test-date$X: date.o ctype.o\n \n test-delta$X: diff-delta.o patch-delta.o\ndiff --git a/t/Makefile b/t/Makefile\nindex 72d7884..ae25561 100644\n--- a/t/Makefile\n+++ b/t/Makefile\n@@ -11,7 +11,7 @@ RM ?= rm -f\n # Shell quote;\n SHELL_PATH_SQ = $(subst ','\\'',$(SHELL_PATH))\n \n-T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)\n+T ?= $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)\n TSVN = $(wildcard t91[0-9][0-9]-*.sh)\n \n all: $(T) clean\n-- \n1.5.3.4\n"}]}