Update particles autotests to not use SRCDIR
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 4 Oct 2011 04:17:50 +0000 (14:17 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 5 Oct 2011 02:48:05 +0000 (04:48 +0200)
Change-Id: I1b508756ffca6a05d495c52d84f46fcaeafe8797
Reviewed-on: http://codereview.qt-project.org/5947
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
42 files changed:
tests/auto/particles/qsgage/qsgage.pro
tests/auto/particles/qsgage/tst_qsgage.cpp
tests/auto/particles/qsgangleddirection/qsgangleddirection.pro
tests/auto/particles/qsgangleddirection/tst_qsgangleddirection.cpp
tests/auto/particles/qsgcumulativedirection/qsgcumulativedirection.pro
tests/auto/particles/qsgcumulativedirection/tst_qsgcumulativedirection.cpp
tests/auto/particles/qsgcustomaffector/qsgcustomaffector.pro
tests/auto/particles/qsgcustomaffector/tst_qsgcustomaffector.cpp
tests/auto/particles/qsgcustomparticle/qsgcustomparticle.pro
tests/auto/particles/qsgcustomparticle/tst_qsgcustomparticle.cpp
tests/auto/particles/qsgellipseextruder/qsgellipseextruder.pro
tests/auto/particles/qsgellipseextruder/tst_qsgellipseextruder.cpp
tests/auto/particles/qsgfriction/qsgfriction.pro
tests/auto/particles/qsgfriction/tst_qsgfriction.cpp
tests/auto/particles/qsggravity/qsggravity.pro
tests/auto/particles/qsggravity/tst_qsggravity.cpp
tests/auto/particles/qsgimageparticle/qsgimageparticle.pro
tests/auto/particles/qsgimageparticle/tst_qsgimageparticle.cpp
tests/auto/particles/qsgitemparticle/qsgitemparticle.pro
tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp
tests/auto/particles/qsglineextruder/qsglineextruder.pro
tests/auto/particles/qsglineextruder/tst_qsglineextruder.cpp
tests/auto/particles/qsgmaskextruder/qsgmaskextruder.pro
tests/auto/particles/qsgmaskextruder/tst_qsgmaskextruder.cpp
tests/auto/particles/qsgparticlegroup/qsgparticlegroup.pro
tests/auto/particles/qsgparticlegroup/tst_qsgparticlegroup.cpp
tests/auto/particles/qsgparticlesystem/qsgparticlesystem.pro
tests/auto/particles/qsgparticlesystem/tst_qsgparticlesystem.cpp
tests/auto/particles/qsgpointattractor/qsgpointattractor.pro
tests/auto/particles/qsgpointattractor/tst_qsgpointattractor.cpp
tests/auto/particles/qsgpointdirection/qsgpointdirection.pro
tests/auto/particles/qsgpointdirection/tst_qsgpointdirection.cpp
tests/auto/particles/qsgrectangleextruder/qsgrectangleextruder.pro
tests/auto/particles/qsgrectangleextruder/tst_qsgrectangleextruder.cpp
tests/auto/particles/qsgtargetdirection/qsgtargetdirection.pro
tests/auto/particles/qsgtargetdirection/tst_qsgtargetdirection.cpp
tests/auto/particles/qsgtrailemitter/qsgtrailemitter.pro
tests/auto/particles/qsgtrailemitter/tst_qsgtrailemitter.cpp
tests/auto/particles/qsgturbulence/qsgturbulence.pro
tests/auto/particles/qsgturbulence/tst_qsgturbulence.cpp
tests/auto/particles/qsgwander/qsgwander.pro
tests/auto/particles/qsgwander/tst_qsgwander.cpp

index 3ca0740..17b3b13 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgage.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 884c210..d595e6e 100644 (file)
@@ -62,7 +62,7 @@ tst_qsgage::tst_qsgage()
 
 void tst_qsgage::test_kill()
 {
-    QSGView* view = createView(SRCDIR "/data/kill.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/kill.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
@@ -82,7 +82,7 @@ void tst_qsgage::test_kill()
 
 void tst_qsgage::test_jump()
 {
-    QSGView* view = createView(SRCDIR "/data/jump.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/jump.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
@@ -103,7 +103,7 @@ void tst_qsgage::test_jump()
 
 void tst_qsgage::test_onceOff()
 {
-    QSGView* view = createView(SRCDIR "/data/onceoff.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/onceoff.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
@@ -125,7 +125,7 @@ void tst_qsgage::test_onceOff()
 
 void tst_qsgage::test_sustained()
 {
-    QSGView* view = createView(SRCDIR "/data/sustained.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/sustained.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index a90b00b..5c055a4 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgangleddirection.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 0cc2c8b..4e65fa4 100644 (file)
@@ -60,7 +60,7 @@ tst_qsgangleddirection::tst_qsgangleddirection()
 
 void tst_qsgangleddirection::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 03d9ca2..fdfee46 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgcumulativedirection.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 0c54ad8..1c4e98c 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgcumulativedirection::tst_qsgcumulativedirection()
 
 void tst_qsgcumulativedirection::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 1484491..91b4e73 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgcustomaffector.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 6ae2aa5..ec86fc7 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgcustomaffector::tst_qsgcustomaffector()
 
 void tst_qsgcustomaffector::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index a151daf..d963c13 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgcustomparticle.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 74ef8af..01d557d 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgcustomparticle::tst_qsgcustomparticle()
 
 void tst_qsgcustomparticle::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QVERIFY(view);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
index 5315686..8bdb2f1 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgellipseextruder.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index f398936..a5aa91b 100644 (file)
@@ -75,7 +75,7 @@ bool tst_qsgellipseextruder::inCircle(qreal x, qreal y, qreal r, bool borderOnly
 
 void tst_qsgellipseextruder::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     //Filled
index a56f4b4..6793006 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgfriction.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 8981275..c56e004 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgfriction::tst_qsgfriction()
 
 void tst_qsgfriction::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     //Default is just slowed a little
index d7a7bbd..3f68b4e 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsggravity.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 584ec18..e99aa1e 100644 (file)
@@ -59,7 +59,7 @@ tst_qsggravity::tst_qsggravity()
 
 void tst_qsggravity::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index d1197f0..5563ecd 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgimageparticle.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 5e6e77c..423e842 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgimageparticle::tst_qsgimageparticle()
 
 void tst_qsgimageparticle::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index e2d2c67..fd3eac9 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgitemparticle.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 440ebaf..2d18764 100644 (file)
@@ -60,7 +60,7 @@ tst_qsgitemparticle::tst_qsgitemparticle()
 
 void tst_qsgitemparticle::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index ccafa70..243c441 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsglineextruder.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 6a7cfe4..602985b 100644 (file)
@@ -59,7 +59,7 @@ tst_qsglineextruder::tst_qsglineextruder()
 
 void tst_qsglineextruder::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 8cd5302..f04e61e 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgmaskextruder.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 1ac33a0..483ad93 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgmaskextruder::tst_qsgmaskextruder()
 
 void tst_qsgmaskextruder::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 40e799d..ff23437 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgparticlegroup.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 21eb52b..5cf170c 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgparticlegroup::tst_qsgparticlegroup()
 
 void tst_qsgparticlegroup::test_instantTransition()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     //A frame or two worth of particles will be missed, the transition doesn't take effect on the frame it's spawned (QTBUG-21781)
index 6ba836a..525ecb8 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgparticlesystem.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index d5a0a2a..cf00a00 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgparticlesystem::tst_qsgparticlesystem()
 
 void tst_qsgparticlesystem::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index b2acf47..b112dcd 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgpointattractor.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 33fc670..40877c4 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgpointattractor::tst_qsgpointattractor()
 
 void tst_qsgpointattractor::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 6a02503..52e970f 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgpointdirection.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 89d0f31..56ef9cb 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgpointdirection::tst_qsgpointdirection()
 
 void tst_qsgpointdirection::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 207aa13..5b04c64 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgrectangleextruder.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 1e45f81..80def8b 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgrectangleextruder::tst_qsgrectangleextruder()
 
 void tst_qsgrectangleextruder::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 397957e..c6959b3 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgtargetdirection.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index c5d84f5..642ef28 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgtargetdirection::tst_qsgtargetdirection()
 
 void tst_qsgtargetdirection::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 914d0e5..3a9c66a 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgtrailemitter.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index a92b791..e6073ef 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgtrailemitter::tst_qsgtrailemitter()
 
 void tst_qsgtrailemitter::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);
index 1c38cda..f179fea 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgturbulence.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index c7feb3c..202de29 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgturbulence::tst_qsgturbulence()
 
 void tst_qsgturbulence::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     //Note that the noise image built-in provides the 'randomness', so this test should be stable so long as it and the size
index b8bb4ae..5be0083 100644 (file)
@@ -3,7 +3,9 @@ contains(QT_CONFIG,declarative): QT += declarative
 SOURCES += tst_qsgwander.cpp
 macx:CONFIG -= app_bundle
 
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 
index 24b718c..6e7bc17 100644 (file)
@@ -59,7 +59,7 @@ tst_qsgwander::tst_qsgwander()
 
 void tst_qsgwander::test_basic()
 {
-    QSGView* view = createView(SRCDIR "/data/basic.qml", 600);
+    QSGView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
     QSGParticleSystem* system = view->rootObject()->findChild<QSGParticleSystem*>("system");
 
     QCOMPARE(system->groupData[0]->size(), 500);