diff options
Diffstat (limited to 'tests/auto/tests.pro')
-rw-r--r-- | tests/auto/tests.pro | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/auto/tests.pro b/tests/auto/tests.pro new file mode 100644 index 00000000..3bfd9083 --- /dev/null +++ b/tests/auto/tests.pro @@ -0,0 +1,56 @@ +TEMPLATE = subdirs + +load(am-config) +requires(!disable-installer) + +SUBDIRS = \ + manual \ + application \ + applicationinfo \ + main \ + runtime \ + cryptography \ + signature \ + utilities \ + installationreport \ + packagecreator \ + packageextractor \ + packager-tool \ + applicationinstaller \ + debugwrapper \ + qml \ + yaml \ + configuration \ + +linux*:SUBDIRS += \ + sudo \ + processreader \ + systemreader \ + +OTHER_FILES += \ + tests.pri \ + data/create-test-packages.sh \ + data/certificates/create-test-certificates.sh \ + data/utilities.sh \ + +# sadly, the appman-packager is too complex to build as a host tool +!cross_compile { + prepareRecursiveTarget(check) + qtPrepareTool(APPMAN_PACKAGER, appman-packager) + + unix { + macos:ctype=UTF-8 + else:ctype=C.UTF-8 + + # create test data on the fly - this is needed for the CI server + testdata.target = testdata + testdata.depends = $$PWD/data/create-test-packages.sh $$APPMAN_PACKAGER_EXE + testdata.commands = (cd $$PWD/data ; LC_CTYPE=$$ctype ./create-test-packages.sh $$APPMAN_PACKAGER) + QMAKE_EXTRA_TARGETS += testdata + + # qmake would create a default check target implicitly, but since we need 'testdata' as an + # dependency, we have to set it up explicitly + check.depends = testdata $$check.depends + } + QMAKE_EXTRA_TARGETS *= check +} |