[Pixman] [PATCH 7/7] build-win32: Add 'check' target

Andrea Canciani ranma42 at gmail.com
Sun Sep 4 13:53:45 PDT 2011


On win32 the tests are built but they are not run automatically by the
build system.

A minimal 'check' target (depending on the tests being built) can
simply run them and log to the console their success/failure.
---
 Makefile.win32      |    5 +++++
 test/Makefile.win32 |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/Makefile.win32 b/Makefile.win32
index 5b74878..91cd12a 100644
--- a/Makefile.win32
+++ b/Makefile.win32
@@ -14,7 +14,12 @@ clean_r:
 	@$(MAKE) -C pixman -f Makefile.win32 clean
 	@$(MAKE) -C test   -f Makefile.win32 clean
 
+check_r:
+	@$(MAKE) -C test -f Makefile.win32 check
+
 # Base targets
 all: test_r
 
 clean: clean_r
+
+check: check_r
diff --git a/test/Makefile.win32 b/test/Makefile.win32
index c857db9..307ba0c 100644
--- a/test/Makefile.win32
+++ b/test/Makefile.win32
@@ -18,6 +18,9 @@ BENCHS  = $(patsubst %,   $(CFG_VAR)/%.exe, $(BENCHMARKS))
 
 all: inform $(TESTS) $(BENCHS)
 
+check: inform $(TESTS)
+	@for test in $(TESTS) ; do ./$$test && echo "PASS: $$test" || echo "FAIL: $$test" ; done
+
 $(CFG_VAR)/libutils.lib: $(libutils_OBJECTS)
 	@$(AR) $(PIXMAN_ARFLAGS) -OUT:$@ $^
 
-- 
1.7.4.4



More information about the Pixman mailing list