diff options
author | Wolf-Michael Bolle <wolf-michael.bolle@nokia.com> | 2012-01-11 11:40:37 +0100 |
---|---|---|
committer | David Faure <faure@kde.org> | 2012-01-11 11:43:15 +0100 |
commit | 4b3c1cb93772c56a150eb7b1d91d3b40ac3cf8d9 (patch) | |
tree | 6661c1d339a6096e5bc0ec1b735b3544d9a6206b | |
parent | b541f13b4581e3ac99151fb17c36937dc820e5e4 (diff) |
Get unit tests to work.
Change-Id: I0633cca7276f727b99b5675389b9ede3c50733d0
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: David Faure <faure@kde.org>
-rw-r--r-- | tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro | 2 | ||||
-rw-r--r-- | tests/auto/qmimetype/qmimetype.pro | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro b/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro index d062bf2..7acf00b 100644 --- a/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro +++ b/tests/auto/qmimedatabase/qmimedatabase-xml/qmimedatabase-xml.pro @@ -30,7 +30,7 @@ contains(QMAKE_CXX, --sysroot): { QMAKE_EXTRA_TARGETS += check check.depends = $$TARGET - check.commands = ./$$TARGET -xunitxml -o $${TARGET}.xml + 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 diff --git a/tests/auto/qmimetype/qmimetype.pro b/tests/auto/qmimetype/qmimetype.pro index b4d0965..552fefe 100644 --- a/tests/auto/qmimetype/qmimetype.pro +++ b/tests/auto/qmimetype/qmimetype.pro @@ -21,7 +21,7 @@ HEADERS += tst_qmimetype.h QMAKE_EXTRA_TARGETS += check check.depends = $$TARGET -check.commands = ./$$TARGET -xunitxml -o $${TARGET}.xml +check.commands = LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$$OUT_PWD/../../../src/mimetypes ./$$TARGET -xunitxml -o $${TARGET}.xml exists($${TARGET}.xml): { tests_results.files += $${TARGET}.xml |