summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/tests.pri
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2013-10-14 05:57:02 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-14 15:12:43 +0200
commit338e24b48601a3cfdcde0977b6c9390d33d51c9f (patch)
tree373a661e8c028a9a4a1a25327da10ab5a8496b33 /tests/auto/widgets/tests.pri
parentff9e250a7a8865ae3d7664e5ef41fd79d9f5606e (diff)
Turn on to run all widgets tests by make check. Move widgets test to tests/auto.
Change-Id: If3617d86ea44f665a44a54b6ba57935b69220a9e Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tests/auto/widgets/tests.pri')
-rw-r--r--tests/auto/widgets/tests.pri24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/widgets/tests.pri b/tests/auto/widgets/tests.pri
new file mode 100644
index 000000000..3d3979986
--- /dev/null
+++ b/tests/auto/widgets/tests.pri
@@ -0,0 +1,24 @@
+TEMPLATE = app
+
+CONFIG += testcase
+VPATH += $$_PRO_FILE_PWD_
+TARGET = tst_$$TARGET
+
+# Load mobilityconfig if Qt Mobility is available
+load(mobilityconfig, true)
+contains(MOBILITY_CONFIG, multimedia) {
+ # This define is used by tests depending on Qt Multimedia
+ DEFINES -= WTF_USE_QT_MULTIMEDIA=0
+ DEFINES += WTF_USE_QT_MULTIMEDIA=1
+}
+
+SOURCES += $${TARGET}.cpp
+INCLUDEPATH += \
+ $$PWD \
+ $$PWD/../Api
+
+QT += testlib network webenginewidgets widgets
+include($$QTWEBENGINE_ROOT/common.pri)
+
+# This define is used by some tests to look up resources in the source tree
+DEFINES += TESTS_SOURCE_DIR=\\\"$$PWD/\\\"