summaryrefslogtreecommitdiffstats
path: root/tests/tests.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.pro')
-rw-r--r--tests/tests.pro22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/tests.pro b/tests/tests.pro
index da0f4b60c..06876e66d 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -1,7 +1,27 @@
CONFIG += ordered
TEMPLATE = subdirs
-SUBDIRS += downloadspeed \
+
+EXTRASUBDIRS = \
+ downloadspeed \
environmentvariable \
extractarchiveoperationtest \
fileengineclient \
fileengineserver
+
+
+include(../installerfw.pri)
+
+!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) {
+ for(SUBDIR, EXTRASUBDIRS) {
+ mkdir.commands += $$QMAKE_MKDIR $$SUBDIR $${IFW_NEWLINE}
+ }
+ QMAKE_EXTRA_TARGETS += mkdir
+}
+
+for(SUBDIR, EXTRASUBDIRS) {
+ tests.commands += cd $$SUBDIR && $(QMAKE) -r $$PWD/$$SUBDIR && $(MAKE) $${IFW_NEWLINE}
+}
+!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) {
+ tests.depends = mkdir
+}
+QMAKE_EXTRA_TARGETS += tests