Skip to content

Commit

Permalink
Remove Symbian-specific code from tests.
Browse files Browse the repository at this point in the history
Symbian is not a supported platform for Qt5, so this code is no longer
required.

Change-Id: I5cb6d3b41fbb9fa5fea6176ad949e4e7be7c30b5
Reviewed-on: http://codereview.qt-project.org/5767
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
  • Loading branch information
Jason McDonald authored and Qt by Nokia committed Sep 30, 2011
1 parent 2bb6c25 commit b1e650a
Show file tree
Hide file tree
Showing 220 changed files with 133 additions and 1,315 deletions.
4 changes: 1 addition & 3 deletions tests/auto/declarative/declarative.pro
Expand Up @@ -82,9 +82,7 @@ SGTESTS = \

SUBDIRS += $$PUBLICTESTS

!symbian: {
SUBDIRS += $$METATYPETESTS
}
SUBDIRS += $$METATYPETESTS

contains(QT_CONFIG, private_tests) {
SUBDIRS += $$PRIVATETESTS
Expand Down
12 changes: 2 additions & 10 deletions tests/auto/declarative/parserstress/parserstress.pro
Expand Up @@ -5,16 +5,8 @@ macx:CONFIG -= app_bundle
SOURCES += tst_parserstress.cpp

!isEmpty(QT.script.sources) {
symbian: {
importFiles.files = $$QT.script.sources\\..\\..\\tests\\auto\\qscriptjstestsuite\\tests
importFiles.path = .
DEPLOYMENT += importFiles
DEFINES += TESTDATADIR=tests
DEFINES += SRCDIR=.
} else {
DEFINES += TESTDATADIR=\\\"$$QT.script.sources/../../tests/auto/qscriptjstestsuite/tests\\\"
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += TESTDATADIR=\\\"$$QT.script.sources/../../tests/auto/qscriptjstestsuite/tests\\\"
DEFINES += SRCDIR=\\\"$$PWD\\\"
}

CONFIG += parallel_test
Expand Down
Expand Up @@ -3,13 +3,7 @@ contains(QT_CONFIG,declarative): QT += declarative opengl
SOURCES += tst_qdeclarativeanimations.cpp
macx:CONFIG -= app_bundle

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -55,11 +55,6 @@

#include "../../../shared/util.h"

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativeanimations : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -3,13 +3,7 @@ contains(QT_CONFIG,declarative): QT += declarative opengl
SOURCES += tst_qdeclarativebehaviors.cpp
macx:CONFIG -= app_bundle

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test insignificant_test

Expand Down
Expand Up @@ -50,11 +50,6 @@
#include <private/qsgitem_p.h>
#include "../../../shared/util.h"

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativebehaviors : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -4,13 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativebinding.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -45,13 +45,7 @@
#include <private/qsgrectangle_p.h>
#include "../../../shared/util.h"

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativebinding : public QObject

{
Q_OBJECT
public:
Expand Down
Expand Up @@ -4,13 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativechangeset.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -5,9 +5,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativecomponent.cpp

!symbian: {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -47,11 +47,6 @@
#include <QtDeclarative/qdeclarativeproperty.h>
#include <qcolor.h>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativecomponent : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -4,13 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativeconnection.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -46,13 +46,7 @@
#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativescriptstring.h>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativeconnection : public QObject

{
Q_OBJECT
public:
Expand Down
Expand Up @@ -3,9 +3,7 @@ contains(QT_CONFIG,declarative): QT += declarative
SOURCES += tst_qdeclarativecontext.cpp
macx:CONFIG -= app_bundle

!symbian: {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -46,11 +46,6 @@
#include <QDeclarativeComponent>
#include <QDeclarativeExpression>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativecontext : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -12,12 +12,6 @@ INCLUDEPATH += ../shared
# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
# LIBS += -lgcov

symbian {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
}

OTHER_FILES = data/test.qml \
data/test.js

Expand Down
Expand Up @@ -12,13 +12,7 @@ INCLUDEPATH += ../shared
# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
# LIBS += -lgcov

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test
#temporary
Expand Down
Expand Up @@ -53,11 +53,6 @@
#include "testhttpserver.h"
#include "../../../shared/util.h"

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

/*
This test covers evaluation of ECMAScript expressions and bindings from within
QML. This does not include static QML language issues.
Expand Down
Expand Up @@ -4,9 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativeengine.cpp

!symbian: {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -51,11 +51,6 @@
#include <QDeclarativeNetworkAccessManagerFactory>
#include <QDeclarativeExpression>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativeengine : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -3,9 +3,7 @@ contains(QT_CONFIG,declarative): QT += declarative
SOURCES += tst_qdeclarativeerror.cpp
macx:CONFIG -= app_bundle

!symbian: {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -43,11 +43,6 @@
#include <QDeclarativeError>
#include <QDebug>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativeerror : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -4,13 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativeexpression.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -45,11 +45,6 @@
#include <QtDeclarative/qdeclarativeexpression.h>
#include <QtDeclarative/qdeclarativescriptstring.h>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativeexpression : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -4,13 +4,7 @@ macx:CONFIG -= app_bundle

SOURCES += tst_qdeclarativefolderlistmodel.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test
QT += core-private gui-private declarative-private
Expand Up @@ -48,11 +48,6 @@
#include <QtCore/qabstractitemmodel.h>
#include <QDebug>

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

// From qdeclarastivefolderlistmodel.h
const int FileNameRole = Qt::UserRole+1;
const int FilePathRole = Qt::UserRole+2;
Expand Down
Expand Up @@ -5,13 +5,7 @@ macx:CONFIG -= app_bundle
HEADERS += ../../declarative/shared/testhttpserver.h
SOURCES += tst_qdeclarativefontloader.cpp ../../declarative/shared/testhttpserver.cpp

symbian: {
importFiles.files = data
importFiles.path = .
DEPLOYMENT += importFiles
} else {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -49,11 +49,6 @@

#define SERVER_PORT 14448

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

class tst_qdeclarativefontloader : public QObject
{
Q_OBJECT
Expand Down
Expand Up @@ -8,9 +8,7 @@ SOURCES += tst_qdeclarativeimageprovider.cpp
# QMAKE_CXXFLAGS = -fprofile-arcs -ftest-coverage
# LIBS += -lgcov

!symbian: {
DEFINES += SRCDIR=\\\"$$PWD\\\"
}
DEFINES += SRCDIR=\\\"$$PWD\\\"

CONFIG += parallel_test

Expand Down
Expand Up @@ -47,11 +47,6 @@
#include <QWaitCondition>
#include "../../../shared/util.h"

#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif

Q_DECLARE_METATYPE(QDeclarativeImageProvider*);

class tst_qdeclarativeimageprovider : public QObject
Expand Down

0 comments on commit b1e650a

Please sign in to comment.