summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-01-12 18:24:31 +0100
committerWolf-Michael Bolle <wolf-michael.bolle@nokia.com>2012-01-13 11:04:12 +0100
commite8a26d9f4e081f8fab37dec38322515e72272556 (patch)
tree4c9e8379ef6c506e27e7c438c8756968dc8c96d8
parent4b3c1cb93772c56a150eb7b1d91d3b40ac3cf8d9 (diff)
Fix "make check" not running qmimedatabase-cache.
Also grabbed the rest of the settings from qmimedatabase-xml. But maybe that stuff should be shared in .pri files instead? Change-Id: I19c983b0790e4dc5051b7bd73a6e5f88b70855b2 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolf-Michael Bolle <wolf-michael.bolle@nokia.com>
-rw-r--r--tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro b/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro
index e731936..12056fc 100644
--- a/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro
+++ b/tests/auto/qmimedatabase/qmimedatabase-cache/qmimedatabase-cache.pro
@@ -17,7 +17,21 @@ CONFIG += depend_includepath
SOURCES += tst_qmimedatabase-cache.cpp
HEADERS += ../tst_qmimedatabase.h
-DEFINES += SRCDIR='"\\"$$PWD/../\\""'
+contains(QMAKE_CXX, --sysroot): {
+ unix:!symbian {
+ maemo5 {
+ DEFINES += SRCDIR='"\\"/opt/usr/lib/QtMimeTypes-tests/\\""'
+ } else {
+ DEFINES += SRCDIR='"\\"/usr/lib/QtMimeTypes-tests/\\""'
+ }
+ }
+} else {
+ DEFINES += SRCDIR='"\\"$$PWD/../\\""'
+
+ QMAKE_EXTRA_TARGETS += check
+ check.depends = $$TARGET
+ check.commands = LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$OUT_PWD/../../../../src/mimetypes ./$$TARGET -xunitxml -o $${TARGET}.xml
+}
QMAKE_CXXFLAGS += -W -Wall -Wextra -Werror -Wshadow -Wno-long-long -Wnon-virtual-dtor