mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-10 23:22:33 +02:00
stop when unit test fails
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user