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

[StGIT PATCH 5/5] Add test_patches target to Makefile

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Jun 6, 2008, 20:46 UTC
Message-ID
<20080606204611.8805.45597.stgit@localhost.localdomain>
In-Reply-To
<20080606204322.8805.32313.stgit@localhost.localdomain>
This target tests individual patches in the series.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
---
 Makefile |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index c890b8e..e5c002a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,8 @@ PREFIX	?= $(HOME)
 DESTDIR	?= /
 PYTHON	?= python
 
+TEST_PATCHES ?= ..
+
 all:
 	$(PYTHON) setup.py build
 
@@ -14,6 +16,11 @@ doc:
 test:
 	cd t && $(MAKE) all
 
+test_patches:
+	for patch in $$(stg series --noprefix $(TEST_PATCHES)); do \
+		stg goto $$patch && $(MAKE) test || break; \
+	done
+
 clean:
 	for dir in Documentation t; do \
 		(cd $$dir && $(MAKE) clean); \
@@ -26,4 +33,4 @@ clean:
 tags:
 	ctags -e -R stgit/*
 
-.PHONY: all install doc test clean
+.PHONY: all install doc test test_patches clean
Previous: Karl HasselströmNext: Karl Hasselström
Message 11 of 12 in “Proposed patches”
  1. 0/5 Proposed patchesCatalin Marinas, Jun 6, 2008
  2. 1/5 Rename Repository.head to Repository.head_refCatalin Marinas, Jun 6, 2008
  3. Karl HasselströmJun 7, 2008
  4. 2/5 Create a git.Branch class as ancestor of stack.StackCatalin Marinas, Jun 6, 2008
  5. Karl HasselströmJun 7, 2008
  6. 3/5 Add stack creation and initialisation support to lib.StackCatalin Marinas, Jun 6, 2008
  7. Karl HasselströmJun 7, 2008
  8. Catalin MarinasJun 8, 2008
  9. 4/5 Convert "init" to the new StGIT infrastructureCatalin Marinas, Jun 6, 2008
  10. Karl HasselströmJun 7, 2008
  11. 5/5 Add test_patches target to MakefileCatalin Marinas, Jun 6, 2008
  12. Karl HasselströmJun 7, 2008

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.