apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r574134 - /apr/apr/trunk/test/Makefile.in
Date Mon, 10 Sep 2007 05:32:35 GMT
Author: bojan
Date: Sun Sep  9 22:32:35 2007
New Revision: 574134

URL: http://svn.apache.org/viewvc?rev=574134&view=rev
Log:
Run all tests, then fail make if required

Modified:
    apr/apr/trunk/test/Makefile.in

Modified: apr/apr/trunk/test/Makefile.in
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/Makefile.in?rev=574134&r1=574133&r2=574134&view=diff
==============================================================================
--- apr/apr/trunk/test/Makefile.in (original)
+++ apr/apr/trunk/test/Makefile.in Sun Sep  9 22:32:35 2007
@@ -45,15 +45,20 @@
 LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) @LT_NO_INSTALL@ $(ALL_LDFLAGS)
-o $@
 
 check: $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE)
+	teststatus=0; \
+	progfailed=""; \
 	for prog in $(STDTEST_PORTABLE) $(STDTEST_NONPORTABLE); do \
 		./$$prog; \
 		status=$$?; \
 		if test $$status != 0; then \
-			echo "$$prog failed"; \
-			break; \
+			teststatus=$$status; \
+			progfailed="$$progfailed $$prog"; \
 		fi; \
 	done; \
-	exit $$status
+	if test $$teststatus != 0; then \
+		echo "Programs failed:$$progfailed"; \
+	fi; \
+	exit $$teststatus
 
 occhild@EXEEXT@: occhild.lo $(LOCAL_LIBS)
 	$(LINK_PROG) occhild.lo $(LOCAL_LIBS) $(ALL_LIBS)



Mime
View raw message