1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-19 17:57:22 +01:00
This commit is contained in:
Roman Bovsunivskiy 2010-02-21 18:59:53 +00:00
parent a79fae857a
commit 55e7d19608

View File

@ -7,17 +7,42 @@ SUBDIRS = src doc
DOLLAR = $
tests.commands = for directory in `find . -name unit_tests`; \
build_tests.commands = for directory in `find . -name unit_tests`; \
do \
home=`pwd`; \
echo; \
echo "Building test in "$${DOLLAR}$${DOLLAR}directory; \
cd $${DOLLAR}$${DOLLAR}directory; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC; \
make; \
cd $${DOLLAR}$${DOLLAR}home; \
done
build_tests.depends = all
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 -spec $${DOLLAR}$${DOLLAR}QMAKESPEC; \
make run || exit 1; \
make run; \
cd $${DOLLAR}$${DOLLAR}home; \
done
run_tests.depends = all
testclean.commands = for directory in `find . -name unit_tests`; \
do \
home=`pwd`; \
echo; \
echo "Cleaning test files in "$${DOLLAR}$${DOLLAR}directory; \
cd $${DOLLAR}$${DOLLAR}directory; \
qmake -spec $${DOLLAR}$${DOLLAR}QMAKESPEC; \
make clean; \
cd $${DOLLAR}$${DOLLAR}home; \
done
tests.depends = all
tests.depends = run_tests
QMAKE_EXTRA_TARGETS += build_tests run_tests tests testclean
QMAKE_EXTRA_TARGETS += tests