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