diff options
author | Wolf-Michael Bolle <wolf-michael.bolle@nokia.com> | 2011-12-11 19:53:31 +0100 |
---|---|---|
committer | Wolf-Michael Bolle <wolf-michael.bolle@nokia.com> | 2011-12-11 19:53:31 +0100 |
commit | f19784bb6d2a9f7b1741c50ed2210046e4a6498e (patch) | |
tree | 1c81151a00ee582b703323c2df61e5301b508277 | |
parent | 45d4ab57cd2316f78efe68670e2c65d221f5cfd4 (diff) |
Install tests to /usr/share/QtMimeTypes-tests
5 files changed, 53 insertions, 0 deletions
diff --git a/tests/auto/qdeclarativemimedatabase/qdeclarativemimedatabase.pro b/tests/auto/qdeclarativemimedatabase/qdeclarativemimedatabase.pro index e0e456e..cd42209 100644 --- a/tests/auto/qdeclarativemimedatabase/qdeclarativemimedatabase.pro +++ b/tests/auto/qdeclarativemimedatabase/qdeclarativemimedatabase.pro @@ -13,3 +13,16 @@ SOURCES += tst_qdeclarativemimedatabase.cpp # this reads the QML files from the same directory as this pro file DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\".\\\"\" + +testcases.files += testdata_list.js tst_qdeclarativemimedatabase.qml + +unix:!symbian { + maemo5 { + target.path = /opt/usr/lib/QtMimeTypes-tests/qdeclarativemimedatabase + testcases.path = /opt/usr/lib/QtMimeTypes-tests/qdeclarativemimedatabase + } else { + target.path = /usr/lib/QtMimeTypes-tests/qdeclarativemimedatabase + testcases.path = /usr/lib/QtMimeTypes-tests/qdeclarativemimedatabase + } + INSTALLS += testcases target +} diff --git a/tests/auto/qdeclarativemimetype/qdeclarativemimetype.pro b/tests/auto/qdeclarativemimetype/qdeclarativemimetype.pro index f6f503d..a265265 100644 --- a/tests/auto/qdeclarativemimetype/qdeclarativemimetype.pro +++ b/tests/auto/qdeclarativemimetype/qdeclarativemimetype.pro @@ -13,3 +13,16 @@ SOURCES += tst_qdeclarativemimetype.cpp # this reads the QML files from the same directory as this pro file DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\".\\\"\" + +testcases.files += tst_qdeclarativemimetypedata.js tst_qdeclarativemimetypeproperties.qml tst_qdeclarativemimetype.qml + +unix:!symbian { + maemo5 { + target.path = /opt/usr/lib/QtMimeTypes-tests/qdeclarativemimetype + testcases.path = /opt/usr/lib/QtMimeTypes-tests/qdeclarativemimetype + } else { + target.path = /usr/lib/QtMimeTypes-tests/qdeclarativemimetype + testcases.path = /usr/lib/QtMimeTypes-tests/qdeclarativemimetype + } + INSTALLS += testcases target +} diff --git a/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro b/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro index b49ea06..de39695 100644 --- a/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro +++ b/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro @@ -19,3 +19,12 @@ HEADERS += ../tst_qmimedatabase.h DEFINES += SRCDIR='"\\"$$PWD/../\\""' QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -Wshadow -Wno-long-long -Wnon-virtual-dtor + +unix:!symbian { + maemo5 { + target.path = /opt/usr/lib/QtMimeTypes-tests/qmimedatabase-cache + } else { + target.path = /usr/lib/QtMimeTypes-tests/qmimedatabase-cache + } + INSTALLS += target +} diff --git a/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro b/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro index e31d74f..e534235 100644 --- a/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro +++ b/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro @@ -19,3 +19,12 @@ HEADERS += ../tst_qmimedatabase.h DEFINES += SRCDIR='"\\"$$PWD/../\\""' QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -Wshadow -Wno-long-long -Wnon-virtual-dtor + +unix:!symbian { + maemo5 { + target.path = /opt/usr/lib/QtMimeTypes-tests/qmimedatabase-xml + } else { + target.path = /usr/lib/QtMimeTypes-tests/qmimedatabase-xml + } + INSTALLS += target +} diff --git a/tests/auto/qmimetype/qmimetype.pro b/tests/auto/qmimetype/qmimetype.pro index 7af9e9f..59e1212 100644 --- a/tests/auto/qmimetype/qmimetype.pro +++ b/tests/auto/qmimetype/qmimetype.pro @@ -19,3 +19,12 @@ HEADERS += tst_qmimetype.h QMAKE_EXTRA_TARGETS += check check.depends = $$TARGET check.commands = ./$$TARGET -xunitxml -o unitTestResults.xml + +unix:!symbian { + maemo5 { + target.path = /opt/usr/lib/QtMimeTypes-tests/qmimetype + } else { + target.path = /usr/lib/QtMimeTypes-tests/qmimetype + } + INSTALLS += target +} |