From: Jacob Keller <jacob.e.keller@intel.com>
To: git@vger.kernel.org
Cc: Jacob Keller <jacob.e.keller@intel.com>
Subject: [PATCH] makefile: add ability to run specific test files
Date: Wed, 9 Jul 2014 15:36:52 -0700 [thread overview]
Message-ID: <1404945412-10197-2-git-send-email-jacob.e.keller@intel.com> (raw)
Running a specific test file manually does not obtain the exact
environment setup by the Makefile. Add ability to run any of the tests
in the t/ directory so that a user can more quickly debug a failing
test. Otherwise, the entire test suite needs to be run, which can take a
vary long time.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
---
Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 07ea1058379a..86bdc4ed1ee9 100644
--- a/Makefile
+++ b/Makefile
@@ -2262,13 +2262,18 @@ export TEST_NO_MALLOC_CHECK
### Testing rules
+T = $(sort $(wildcard t/t[0-9][0-9][0-9][0-9]-*.sh))
+
+$(T):
+ $(MAKE) -C t $(notdir $@)
+
test: all
$(MAKE) -C t/ all
perf: all
$(MAKE) -C t/perf/ all
-.PHONY: test perf
+.PHONY: test perf $(T)
test-ctype$X: ctype.o
--
2.0.1.475.g9b8d714
next reply other threads:[~2014-07-09 22:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-09 22:36 Jacob Keller [this message]
2014-07-09 22:59 ` [PATCH] makefile: add ability to run specific test files Junio C Hamano
2014-07-09 23:49 ` Keller, Jacob E
2014-07-10 4:14 ` Junio C Hamano
2014-07-10 20:39 ` Keller, Jacob E
2014-07-10 20:44 ` Jeff King
2014-07-10 22:31 ` Keller, Jacob E
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1404945412-10197-2-git-send-email-jacob.e.keller@intel.com \
--to=jacob.e.keller@intel.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).