summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-02-23 13:07:40 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2010-02-23 13:07:40 (GMT)
commit7f3896f6c0cff6c6ddac1fba480dedbbf78c2df1 (patch)
tree7aec1d4ddc96eabbc039211bfad34ce2853a7189 /tests/benchmarks
parent9cf177099bfff8a00297f868b912723ca7b9551f (diff)
downloadQt-7f3896f6c0cff6c6ddac1fba480dedbbf78c2df1.zip
Qt-7f3896f6c0cff6c6ddac1fba480dedbbf78c2df1.tar.gz
Qt-7f3896f6c0cff6c6ddac1fba480dedbbf78c2df1.tar.bz2
Fixing deplyment on Symbian platform
Reviewed-by: TrustMe
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/declarative/script/script.pro11
-rw-r--r--tests/benchmarks/declarative/script/tst_script.cpp6
2 files changed, 16 insertions, 1 deletions
diff --git a/tests/benchmarks/declarative/script/script.pro b/tests/benchmarks/declarative/script/script.pro
index 48fea81..6255acc 100644
--- a/tests/benchmarks/declarative/script/script.pro
+++ b/tests/benchmarks/declarative/script/script.pro
@@ -7,5 +7,14 @@ CONFIG += release
SOURCES += tst_script.cpp
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+symbian* {
+ data.sources = data/*
+ data.path = data
+ DEPLOYMENT += data
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD\\\"
+}
+
+
+
diff --git a/tests/benchmarks/declarative/script/tst_script.cpp b/tests/benchmarks/declarative/script/tst_script.cpp
index dd21997..15902e4 100644
--- a/tests/benchmarks/declarative/script/tst_script.cpp
+++ b/tests/benchmarks/declarative/script/tst_script.cpp
@@ -48,6 +48,12 @@
#include <QScriptEngine>
#include <QScriptValue>
+#ifdef Q_OS_SYMBIAN
+// In Symbian OS test data is located in applications private dir
+// Application private dir is default serach path for files, so SRCDIR can be set to empty
+#define SRCDIR "."
+#endif
+
class tst_script : public QObject
{
Q_OBJECT