mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-12 08:02:00 +02:00
Fixed #927
This commit is contained in:
+12
-2
@@ -5,7 +5,17 @@ TEMPLATE = subdirs
|
|||||||
|
|
||||||
SUBDIRS = src doc
|
SUBDIRS = src doc
|
||||||
|
|
||||||
tests.commands = cd src && cd compiler_lib && cd unit_tests && qmake && make run; \
|
DOLLAR = $
|
||||||
cd .. && cd .. && cd gui && unit_tests && qmake && make run
|
|
||||||
|
tests.commands = for directory in `find . -name unit_tests`; \
|
||||||
|
do \
|
||||||
|
home=`pwd`; \
|
||||||
|
echo; \
|
||||||
|
echo "Running test in "$${DOLLAR}$${DOLLAR}directory; \
|
||||||
|
cd $${DOLLAR}$${DOLLAR}directory; \
|
||||||
|
qmake; \
|
||||||
|
make run; \
|
||||||
|
cd $${DOLLAR}$${DOLLAR}home; \
|
||||||
|
done
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += tests
|
QMAKE_EXTRA_TARGETS += tests
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
|
DOLLAR = $
|
||||||
|
|
||||||
run.commands = echo "Running tests..." && \
|
run.commands = echo "Running tests..." && \
|
||||||
cd FWBTree && qmake && make run; cd ..; \
|
for directory in `find . -type d -maxdepth 1 -regex \'\./[A-Za-z0-9\-\_]*\'`; \
|
||||||
cd ImporterTest && qmake && make run; cd ..; \
|
do \
|
||||||
cd RCS && qmake && make run; cd ..; \
|
home=`pwd`; \
|
||||||
cd UsageResolverTest && qmake && make run; cd ..;
|
cd $${DOLLAR}$${DOLLAR}directory; \
|
||||||
|
qmake; \
|
||||||
|
make run; \
|
||||||
|
cd $${DOLLAR}$${DOLLAR}home; \
|
||||||
|
done
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += run
|
QMAKE_EXTRA_TARGETS += run
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
DOLLAR = $
|
||||||
|
|
||||||
|
run.commands = ./run-tests.sh
|
||||||
|
|
||||||
|
QMAKE_EXTRA_TARGETS += run
|
||||||
Reference in New Issue
Block a user