forked from nemomobile-graveyard/meegotouch-systemui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtests.pro
65 lines (53 loc) · 1.64 KB
/
tests.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
TEMPLATE = subdirs
include(../shared.pri)
QT += meegographicssystemhelper
#
# Please note that there are several ways to temprorarily disable one or more
# tests. Using the new XML generator script it is possible to put a 'disabled'
# or a 'deleted' file into the test directory, so the test will still be
# compiled but left out from the xml (or the insignificant property will be set
# using the 'disabled' file).
#
contains(BUILD_FEATURES,coverage) {
#
# Sometimes if is faster like this, when you are working on a single unit
# test for a while.
#
subdirs = $$system(./unit_tests.sh)
for(suitename, subdirs):{
addSubDirs($${suitename})
}
} else {
subdirs=$$system(ls -1d ut_*/*.pro 2>/dev/null | sed 's!/.*!!')
for(suitename, subdirs):{
addSubDirs($${suitename})
}
}
contains(BUILD_FEATURES,nocheck) {
SUBDIRS =
}
QMAKE_STRIP = echo
check.target = check
check.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check
check-xml.target = check-xml
check-xml.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check-xml
QMAKE_CLEAN += **/*.log.xml
contains(BUILD_FEATURES,coverage) {
QMAKE_EXTRA_TARGETS += coverage
coverage.target = coverage
coverage.CONFIG = recursive
}
support_files.commands += $$PWD/gen-tests-xml.sh > $$OUT_PWD/tests.xml
support_files.target = support_files
support_files.files += $$OUT_PWD/tests.xml
support_files.path = /usr/share/system-ui-tests
support_files.CONFIG += no_check_exist
dummy_file.commands += touch $$OUT_PWD/keep_this_dir
dummy_file.target = dummy_file
dummy_file.files += $$OUT_PWD/keep_this_dir
dummy_file.path = /usr/lib/system-ui-tests
INSTALLS += \
support_files \
dummy_file