1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 18:57:14 +01:00

make test targets

This commit is contained in:
Roman Bovsunivskiy 2010-02-28 19:06:57 +00:00
parent 180d4a92ac
commit ae1e479fa4
9 changed files with 44 additions and 50 deletions

View File

@ -7,10 +7,10 @@ SUBDIRS = src doc
DOLLAR = $
build_tests.commands = ./unit_tests.sh make build
build_tests.commands = ./unit_tests.sh make build_tests
build_tests.depends = all
run_tests.commands = ./unit_tests.sh make run
run_tests.commands = ./unit_tests.sh make run_tests
run_tests.depends = all
testclean.commands = /usr/bin/env python testclean.py

View File

@ -50,11 +50,12 @@ win32:CONFIG += console
win32:LIBS += ../../common/release/common.lib
win32:PRE_TARGETDEPS = ../../common/release/common.lib
run.commands = echo "Running tests..." && \
run_tests.commands = echo "Running tests..." && \
./${TARGET} && \
echo "OK" || { echo "FAILED"; exit 1; }
run.depends = all
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
build.depends = all
QMAKE_EXTRA_TARGETS += run build

View File

@ -46,15 +46,14 @@ QMAKE_CXXFLAGS += $$CPPUNIT_CFLAGS
LIBS += $$LIBS_FWCOMPILER $$LIBS_FWBUILDER $$CPPUNIT_LIBS
run.commands = echo "Running tests..." && \
run_tests.commands = echo "Running tests..." && \
./${TARGET} && \
echo "OK" || { echo "FAILED"; exit 1; }
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
INCLUDEPATH += ../../../common \

View File

@ -68,13 +68,12 @@ LIBS += ../../../parsers/libfwbparser.a $$ANTLR_LIBS
DEFINES += $$ANTLR_DEFINES
run.commands = echo "Running tests..." && \
run_tests.commands = echo "Running tests..." && \
./${TARGET} && echo "Running gcov..." && \
gcov ${SOURCES} >/dev/null 2>/dev/null && \
echo "OK" || { echo "FAILED"; exit 1; }
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests

View File

@ -42,12 +42,11 @@ QMAKE_CXXFLAGS += $$CPPUNIT_CFLAGS
LIBS += $$LIBS_FWCOMPILER $$LIBS_FWBUILDER $$CPPUNIT_LIBS
LIBS += -lgcov -lcppunit
run.commands = echo "Running tests..." && ./${TARGET} && echo "OK" || echo "FAILED"
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.commands = echo "Running tests..." && ./${TARGET} && echo "OK" || echo "FAILED"
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
INCLUDEPATH += ../../../common \
../../../iptlib \

View File

@ -41,10 +41,8 @@ QMAKE_CXXFLAGS += $$CPPUNIT_CFLAGS
LIBS += $$LIBS_FWCOMPILER $$LIBS_FWBUILDER $$CPPUNIT_LIBS
LIBS += -lcppunit
run.commands = ./${TARGET}
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.commands = ./${TARGET}
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests

View File

@ -373,15 +373,14 @@ win32:PRE_TARGETDEPS = ../../../common/release/common.lib
run.commands = echo "Running tests..."; \
run_tests.commands = echo "Running tests..."; \
cp -f test.fwb test_work.fwb; \
./${TARGET}; \
rm test_work.fwb
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
contains( HAVE_ANTLR_RUNTIME, 1 ) {

View File

@ -374,17 +374,16 @@ win32:PRE_TARGETDEPS = ../../../common/release/common.lib
run.commands = echo "Running tests..." \
run_tests.commands = echo "Running tests..." \
rm *.gc??;\
cp -f test_data.fwb test_data_work.fwb; \
./${TARGET} && \
echo "OK" || echo "FAILED"; \
rm test_data_work.fwb;
run.depends = all
run_test.depends = run
build_test.depends = all
clean_test.depends = all
QMAKE_EXTRA_TARGETS += run run_test build_test clean_test
run_tests.depends = run
build_tests.depends = all
clean_tests.depends = all
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
contains( HAVE_ANTLR_RUNTIME, 1 ) {

View File

@ -1,12 +1,12 @@
DOLLAR = $
build.commands = echo "Building tests..."; \
./unit_tests.sh make build_test
build_tests.commands = echo "Building tests..."; \
./unit_tests.sh make build_tests
run.commands = echo "Running tests..."; \
./unit_tests.sh make run_test
run_tests.commands = echo "Running tests..."; \
./unit_tests.sh make run_tests
clean.commands = echo "Cleaning tests..."; \
./unit_tests.sh make clean_test
clean_tests.commands = echo "Cleaning tests..."; \
./unit_tests.sh make clean_tests
QMAKE_EXTRA_TARGETS += run clean build
QMAKE_EXTRA_TARGETS += run_tests clean_tests build_tests