# HG changeset patch # User yiluzhu # Date 1262604146 0 # Node ID d4f6f170ebe2c31f2e0ac8dacd8bec41023409e6 # Parent 0d3b07196a45f64d24343512b6be56580d78aa5f Release: move Qt test to smoke suite. diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/manual_suite/qt.py --- a/sbsv2/raptor/test/manual_suite/qt.py Tue Dec 29 15:47:35 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -# -# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). -# All rights reserved. -# This component and the accompanying materials are made available -# under the terms of the License "Eclipse Public License v1.0" -# which accompanies this distribution, and is available -# at the URL "http://www.eclipse.org/legal/epl-v10.html". -# -# Initial Contributors: -# Nokia Corporation - initial contribution. -# -# Contributors: -# -# Description: -# - -from raptor_tests import SmokeTest - -def run(): - t = SmokeTest() - - t.description = "Ensure Raptor builds Qt applications successfully" - - t.id = "00xx" - t.name = "qt_apps" - t.command = "cd manual_suite/test_resources/qt && qmake -spec symbian-sbsv2 && sbs" - t.targets = [ - "$(SBS_HOME)/test/manual_suite/test_resources/qt/bld.inf", - "$(SBS_HOME)/test/manual_suite/test_resources/qt/helloworld.loc", - "$(SBS_HOME)/test/manual_suite/test_resources/qt/helloworld.rss", - "$(SBS_HOME)/test/manual_suite/test_resources/qt/helloworld_reg.rss", - "$(SBS_HOME)/test/manual_suite/test_resources/qt/helloworld_template.pkg", - "$(SBS_HOME)/test/manual_suite/test_resources/qt/Makefile", - "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe", - "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map", - "$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe", - "$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map", - "$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe", - "$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe", - "$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map" - ] - t.addbuildtargets('manual_suite/test_resources/qt/bld.inf', [ - "helloworld_exe/armv5/udeb/helloworld.o", - "helloworld_exe/armv5/udeb/helloworld.o.d", - "helloworld_exe/armv5/urel/helloworld.o", - "helloworld_exe/armv5/urel/helloworld.o.d", - "helloworld_exe/winscw/udeb/helloworld.o", - "helloworld_exe/winscw/udeb/helloworld.o.d", - "helloworld_exe/winscw/urel/helloworld.o", - "helloworld_exe/winscw/urel/helloworld.o.d" - ]) - t.run("windows") - - return t - diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/manual_suite/test_resources/qt/helloworld.cpp --- a/sbsv2/raptor/test/manual_suite/test_resources/qt/helloworld.cpp Tue Dec 29 15:47:35 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -#include -#include - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QPushButton hello("Hello world!"); - hello.resize(100, 30); - - hello.show(); - return app.exec(); -} diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/manual_suite/test_resources/qt/helloworld.pro --- a/sbsv2/raptor/test/manual_suite/test_resources/qt/helloworld.pro Tue Dec 29 15:47:35 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - -TEMPLATE = app -TARGET = -DEPENDPATH += . -INCLUDEPATH += . - -# Input -SOURCES += helloworld.cpp diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/smoke_suite/qt.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/qt.py Mon Jan 04 11:22:26 2010 +0000 @@ -0,0 +1,55 @@ +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# This test case requires install of Qt. + +from raptor_tests import SmokeTest + +def run(): + t = SmokeTest() + + t.description = "Ensure Raptor builds Qt applications successfully" + + t.id = "00xx" + t.name = "qt_apps" + t.command = "cd smoke_suite/test_resources/qt && qmake -spec symbian-sbsv2 && sbs" + t.targets = [ + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/bld.inf", + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld.loc", + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld.rss", + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld_reg.rss", + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworld_template.pkg", + "$(SBS_HOME)/test/smoke_suite/test_resources/qt/Makefile", + "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe", + "$(EPOCROOT)/epoc32/release/armv5/udeb/helloworld.exe.map", + "$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe", + "$(EPOCROOT)/epoc32/release/armv5/urel/helloworld.exe.map", + "$(EPOCROOT)/epoc32/release/winscw/udeb/helloworld.exe", + "$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe", + "$(EPOCROOT)/epoc32/release/winscw/urel/helloworld.exe.map" + ] + t.addbuildtargets('smoke_suite/test_resources/qt/bld.inf', [ + "helloworld_exe/armv5/udeb/helloworld.o", + "helloworld_exe/armv5/udeb/helloworld.o.d", + "helloworld_exe/armv5/urel/helloworld.o", + "helloworld_exe/armv5/urel/helloworld.o.d", + "helloworld_exe/winscw/udeb/helloworld.o", + "helloworld_exe/winscw/udeb/helloworld.o.d", + "helloworld_exe/winscw/urel/helloworld.o", + "helloworld_exe/winscw/urel/helloworld.o.d" + ]) + t.run("windows") + + return t + diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/smoke_suite/test_resources/qt/helloworld.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/qt/helloworld.cpp Mon Jan 04 11:22:26 2010 +0000 @@ -0,0 +1,13 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + QPushButton hello("Hello world!"); + hello.resize(100, 30); + + hello.show(); + return app.exec(); +} diff -r 0d3b07196a45 -r d4f6f170ebe2 sbsv2/raptor/test/smoke_suite/test_resources/qt/helloworld.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/qt/helloworld.pro Mon Jan 04 11:22:26 2010 +0000 @@ -0,0 +1,8 @@ + +TEMPLATE = app +TARGET = +DEPENDPATH += . +INCLUDEPATH += . + +# Input +SOURCES += helloworld.cpp