mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-10 23:22:33 +02:00
Added call to qmake before compiling unit tests to generate Makefile. Also, fixed clean_tests target. (fixed #1826, i hope)
This commit is contained in:
+12
-3
@@ -7,15 +7,24 @@ SUBDIRS = src doc
|
|||||||
|
|
||||||
DOLLAR = $
|
DOLLAR = $
|
||||||
|
|
||||||
build_tests.commands = cd src/unit_tests; make build_tests; cd -
|
build_tests.commands = cd src/unit_tests; \
|
||||||
|
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
|
||||||
|
./unit_tests.sh make build_tests; \
|
||||||
|
cd -
|
||||||
build_tests.depends = all
|
build_tests.depends = all
|
||||||
|
|
||||||
run_tests.commands = cd src/unit_tests; make run_tests; cd -
|
run_tests.commands = cd src/unit_tests; \
|
||||||
|
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
|
||||||
|
./unit_tests.sh make run_tests; \
|
||||||
|
cd -
|
||||||
run_tests.depends = all
|
run_tests.depends = all
|
||||||
|
|
||||||
tests.depends = run_tests
|
tests.depends = run_tests
|
||||||
|
|
||||||
clean_tests.commands = cd src/unit_tests; make clean_tests; cd -
|
clean_tests.commands = cd src/unit_tests; \
|
||||||
|
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC && \
|
||||||
|
./unit_tests.sh make clean_tests; \
|
||||||
|
cd -
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += build_tests run_tests clean_tests tests
|
QMAKE_EXTRA_TARGETS += build_tests run_tests clean_tests tests
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ run_tests.commands = echo "Running tests..."; \
|
|||||||
./${TARGET}
|
./${TARGET}
|
||||||
run_tests.depends = build_tests
|
run_tests.depends = build_tests
|
||||||
build_tests.depends = all
|
build_tests.depends = all
|
||||||
clean_tests.depends = all
|
clean_tests.depends = clean
|
||||||
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
|
QMAKE_EXTRA_TARGETS += run_tests build_tests clean_tests
|
||||||
|
|
||||||
INCLUDEPATH += $$ANTLR_INCLUDEPATH
|
INCLUDEPATH += $$ANTLR_INCLUDEPATH
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set +x
|
||||||
|
|
||||||
commands=$@
|
commands=$@
|
||||||
|
|
||||||
for directory in `find . -maxdepth 1 -name '*[tT]est' -type d -regex '\./[A-Za-z0-9\-\_]*'`
|
for directory in `find . -maxdepth 1 -name '*[tT]est' -type d -regex '\./[A-Za-z0-9\-\_]*'`
|
||||||
|
|||||||
Reference in New Issue
Block a user