stop when unit test fails

This commit is contained in:
Vadim Kurland
2010-01-07 02:44:25 +00:00
parent 67d3cb722d
commit d1ec37c97a
6 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -1 +1 @@
#define BUILD_NUM 2316
#define BUILD_NUM 2317
+1 -1
View File
@@ -14,7 +14,7 @@ tests.commands = for directory in `find . -name unit_tests`; \
echo "Running test in "$${DOLLAR}$${DOLLAR}directory; \
cd $${DOLLAR}$${DOLLAR}directory; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC; \
make run; \
make run || exit 1; \
cd $${DOLLAR}$${DOLLAR}home; \
done
+5 -2
View File
@@ -52,8 +52,11 @@ win32:CONFIG += console
win32:LIBS += ../../common/release/common.lib
win32:PRE_TARGETDEPS = ../../common/release/common.lib
run.commands = echo "Running tests..." && ./${TARGET} && \
echo "Running gcov..." && gcov ${SOURCES} >/dev/null 2>/dev/null && echo "OK" || echo "FAILED"
run.commands = echo "Running tests..." && \
./${TARGET} && \
echo "Running gcov..." && \
gcov ${SOURCES} >/dev/null 2>/dev/null && \
echo "OK" || { echo "FAILED"; exit 1 }
run.depends = all
QMAKE_EXTRA_TARGETS += run
+7 -1
View File
@@ -28,7 +28,13 @@ QMAKE_CLEAN = *.gc??
LIBS += $$LIBS_FWCOMPILER $$LIBS_FWBUILDER $$CPPUNIT_LIBS
LIBS += -lgcov # -lcppunit
run.commands = ./${TARGET} && gcov -o . ../../FWBTree.cpp >/dev/null 2>/dev/null
#run.commands = ./${TARGET} && gcov -o . ../../FWBTree.cpp >/dev/null 2>/dev/null
run.commands = echo "Running tests..." && \
./${TARGET} && echo "Running gcov..." && \
gcov ${SOURCES} >/dev/null 2>/dev/null && \
echo "OK" || { echo "FAILED"; exit 1 }
run.depends = all
QMAKE_EXTRA_TARGETS += run
@@ -58,9 +58,10 @@ LIBS += ../../../parsers/libfwbparser.a $$ANTLR_LIBS
DEFINES += $$ANTLR_DEFINES
run.commands = echo "Running tests..." \
&& ./${TARGET} && echo "Running gcov..." && \
run.commands = echo "Running tests..." && \
./${TARGET} && echo "Running gcov..." && \
gcov ${SOURCES} >/dev/null 2>/dev/null && \
echo "OK" || echo "FAILED"
echo "OK" || { echo "FAILED"; exit 1 }
run.depends = all
QMAKE_EXTRA_TARGETS += run
+1 -1
View File
@@ -6,7 +6,7 @@ run.commands = echo "Running tests..." && \
home=`pwd`; \
cd $${DOLLAR}$${DOLLAR}directory; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC; \
make run; \
make run || exit 1; \
cd $${DOLLAR}$${DOLLAR}home; \
done