SOURCES += tst_qsgage.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
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);
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);
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);
SOURCES += tst_qsgangleddirection.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgcumulativedirection.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgcustomaffector.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgcustomparticle.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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");
SOURCES += tst_qsgellipseextruder.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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
SOURCES += tst_qsgfriction.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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
SOURCES += tst_qsggravity.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgimageparticle.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgitemparticle.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsglineextruder.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgmaskextruder.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgparticlegroup.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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)
SOURCES += tst_qsgparticlesystem.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgpointattractor.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgpointdirection.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgrectangleextruder.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgtargetdirection.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgtrailemitter.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);
SOURCES += tst_qsgturbulence.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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
SOURCES += tst_qsgwander.cpp
macx:CONFIG -= app_bundle
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+testDataFiles.files = data
+testDataFiles.path = .
+DEPLOYMENT += testDataFiles
CONFIG += parallel_test
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);