From: Catalin Marinas Date: Sun, 8 Jun 2008 22:20:16 +0000 (+0100) Subject: Add test_patches target to Makefile X-Git-Tag: v0.15-rc1~210 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/f26b503649c4e249201c9ae09b0705e8ed24a949?ds=sidebyside Add test_patches target to Makefile This target tests individual patches in the series. Signed-off-by: Catalin Marinas --- 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