From 77c42e348c7612eda948b57acce99965ac8df9f7 Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Wed, 30 May 2012 15:28:55 +0200 Subject: [PATCH] Changed tests to work from install directory - Changed tests to use TESTDATA Change-Id: Iee07e4a98d2617e1bce4a3caaf67ea581479f3c7 Reviewed-by: Rohan McGovern --- tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro | 2 ++ tests/auto/qxmlformatter/qxmlformatter.pro | 2 ++ tests/auto/qxmlquery/qxmlquery.pro | 2 ++ 3 files changed, 6 insertions(+) diff --git a/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro b/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro index 261c02a..f8b4df1 100644 --- a/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro +++ b/tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro @@ -6,6 +6,8 @@ SOURCES += tst_qabstractxmlnodemodel.cpp \ ../qxmlquery/TestFundament.cpp HEADERS += TestNodeModel.h LoadingModel.h +TESTDATA = tree.xml + include (../xmlpatterns.pri) wince*: { diff --git a/tests/auto/qxmlformatter/qxmlformatter.pro b/tests/auto/qxmlformatter/qxmlformatter.pro index 71cf56d..6e9e262 100644 --- a/tests/auto/qxmlformatter/qxmlformatter.pro +++ b/tests/auto/qxmlformatter/qxmlformatter.pro @@ -3,6 +3,8 @@ CONFIG += testcase QT += testlib SOURCES += tst_qxmlformatter.cpp +TESTDATA = baselines/* input/* + include (../xmlpatterns.pri) wince*:{ diff --git a/tests/auto/qxmlquery/qxmlquery.pro b/tests/auto/qxmlquery/qxmlquery.pro index 66e1158..392a588 100644 --- a/tests/auto/qxmlquery/qxmlquery.pro +++ b/tests/auto/qxmlquery/qxmlquery.pro @@ -11,6 +11,8 @@ RESOURCES = input.qrc QT += network testlib +TESTDATA = data/* pushBaselines/* input.xml + wince* { DEFINES += SRCDIR=\\\"./\\\" } else { -- 2.7.4