summaryrefslogtreecommitdiff
path: root/tests/functional/functional.pro
blob: 44e89f42751431387afda51a95b6ee9331663807 (plain)
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
# Definitions
TD=/usr/share/test-definition/testdefinition
SUITENAME=mcompositor-functional-tests

# Stupid qmake wants to link everything.
QMAKE_LINK = @: IGNORE THIS LINE

# The init script will be part of mcompositor-utils.
initScript.files = mcompositor-test-init.py
initScript.path = /usr/bin
PRE_TARGETDEPS += $${initScript.files}
INSTALLS += initScript

# Install all test scripts.
scripts.files += test*.py
scripts.path = /usr/share/meegotouch/testscripts/$$SUITENAME
INSTALLS += scripts

# Simple and easy way to build tests.xml.
metadata.target = tests.xml
metadata.depends = $${scripts.files} setandsuite.testdata
metadata.input = $${metadata.depends}
metadata.output = $${metadata.target}
metadata.commands = ./createTestXml $${scripts.path} $${metadata.input};
metadata.commands += xmllint --noout --schema $$TD-syntax.xsd --schema $$TD-tm_terms.xsd $${metadata.output};
QMAKE_EXTRA_COMPILERS += metadata
QMAKE_EXTRA_TARGETS += metadata
PRE_TARGETDEPS += $${metadata.output}

# Make make clean work.
clean.depends += compiler_metadata_clean
QMAKE_EXTRA_TARGETS += clean

# If we added metadata to INSTALLS it would regenerate tests.xml every
# time you install.
mdinst.depends = $${metadata.output}
mdinst.files = $${metadata.output}
mdinst.path = /usr/share/$$SUITENAME
mdinst.CONFIG = no_check_exist
INSTALLS += mdinst