From d14cd35ececf3c783f30b242a080de479d36f61c Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 8 May 2012 15:39:50 +0000
Subject: [PATCH] - Adapted Makefile for buildbot
---
tests/Makefile | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/tests/Makefile b/tests/Makefile
index a44d8dcad..460858ad1 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -167,10 +167,19 @@ clean:
rm -f $(APPS) *.c
check: $(APPS)
- echo "Running checks (Success if all tests PASSED)"
+ echo "Running checks (Success if all tests PASSED)"
+ RETURN=0; \
for i in $(APPS); \
do \
echo " - $${i}"; \
- ./$${i} | grep -v 'PASS$$' | grep -v -- '-----' | grep -v '^$$'; \
+ RESULT=`./$${i} | grep -v 'PASS$$' | grep -v -- '-----' | grep -v '^$$'`; \
+ FAILED=`echo $$RESULT |grep FAILED`; \
+ echo " $$RESULT"; \
+ if [ "$$FAILED" != "" ]; \
+ then \
+ echo "**** Failed ***************"; \
+ RETURN=1; \
+ fi; \
echo ""; \
- done
+ done; \
+ if [ "$$RETURN" -eq 1 ]; then exit 1; fi