public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* run one test
@ 2019-09-25 20:41 DJ Delorie
  2019-09-25 21:12 ` Carlos O'Donell
  2019-09-26  9:10 ` Szabolcs Nagy
  0 siblings, 2 replies; 18+ messages in thread
From: DJ Delorie @ 2019-09-25 20:41 UTC (permalink / raw)
  To: libc-alpha


One of the small items that was mentioned at Cauldron was "how do to
re-run just one test?"

While it can be done with a suitable command line make invocation,
this is a lot easier...

I'll turn it into a real patch once we bikeshed the target name ;-)

diff --git a/Makefile b/Makefile
index 67ddd01bfe..c424d9ee02 100644
--- a/Makefile
+++ b/Makefile
@@ -499,3 +499,11 @@ FORCE:
 
 iconvdata/% localedata/% po/%: FORCE
 	$(MAKE) $(PARALLELMFLAGS) -C $(@D) $(@F)
+
+# Convenience target to rerun one test, from the top of the build tree
+# Example: make onetest t=wcsmbs/test-wcsnlen
+onetest :
+	@-rm -f $(objpfx)$t.out
+	$(MAKE) subdir=$(dir $t) -C $(dir $t) ..=../ $(objpfx)$t.out
+	@cat $(objpfx)$t.test-result
+	@cat $(objpfx)$t.out

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-10-18 19:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 20:41 run one test DJ Delorie
2019-09-25 21:12 ` Carlos O'Donell
2019-09-25 21:18   ` DJ Delorie
2019-09-26  9:10 ` Szabolcs Nagy
2019-09-30 19:37   ` [v2, with help] " DJ Delorie
2019-09-30 19:47     ` Carlos O'Donell
2019-09-30 19:58       ` DJ Delorie
2019-09-30 20:51         ` Carlos O'Donell
2019-09-30 20:07       ` [v3, " DJ Delorie
2019-09-30 20:57         ` Carlos O'Donell
2019-10-02 18:44         ` [v4, " DJ Delorie
2019-10-18 19:06           ` Carlos O'Donell
2019-10-18 19:47             ` DJ Delorie
2019-09-30 20:12     ` [v2, " Andreas Schwab
2019-09-30 20:20       ` DJ Delorie
2019-09-30 20:26         ` Andreas Schwab
2019-10-04 12:36     ` Florian Weimer
2019-10-04 17:33       ` DJ Delorie

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 read-only IMAP folder(s) and NNTP newsgroup(s).