sbsv2/raptor/test/smoke_suite/qt.py
author yiluzhu
Tue, 22 Dec 2009 15:37:16 +0000
branchwip
changeset 103 ea6129a5c67c
permissions -rw-r--r--
Add Qt test helloworld for Windows
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
103
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     1
#
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     3
# All rights reserved.
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     4
# This component and the accompanying materials are made available
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     6
# which accompanies this distribution, and is available
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     8
#
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
     9
# Initial Contributors:
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    11
#
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    12
# Contributors:
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    13
#
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    14
# Description: 
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    15
#
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    16
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    17
from raptor_tests import SmokeTest
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    18
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    19
def run():
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    20
	t = SmokeTest()
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    21
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    22
	t.description = "Ensure Raptor builds Qt applications successfully"	
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    23
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    24
	t.id = "00xx"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    25
	t.name = "qt_apps"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    26
	t.command = "cd smoke_suite/test_resources/qt && $(EPOCROOT)/epoc32/tools/qmake -spec symbian-sbsv2 && sbs -b bld.inf"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    27
	t.targets = [
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    28
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/bld.inf",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    29
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/qt_0xEe136753.mmp",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    30
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/qt.loc",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    31
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/qt.rss",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    32
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/qt_reg.rss",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    33
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/qt_template.pkg",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    34
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/Makefile",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    35
			"$(EPOCROOT)/epoc32/release/armv5/udeb/qt.exe",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    36
			"$(EPOCROOT)/epoc32/release/armv5/udeb/qt.exe.map",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    37
			"$(EPOCROOT)/epoc32/release/armv5/urel/qt.exe",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    38
			"$(EPOCROOT)/epoc32/release/armv5/urel/qt.exe.map",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    39
			"$(EPOCROOT)/epoc32/release/winscw/udeb/qt.exe",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    40
			"$(EPOCROOT)/epoc32/release/winscw/urel/qt.exe",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    41
			"$(EPOCROOT)/epoc32/release/winscw/urel/qt.exe.map"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    42
		]
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    43
	t.addbuildtargets('smoke_suite/test_resources/qt/bld.inf', [
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    44
		"qt_exe/armv5/udeb/helloworld.o",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    45
		"qt_exe/armv5/udeb/helloworld.o.d",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    46
		"qt_exe/armv5/urel/helloworld.o",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    47
		"qt_exe/armv5/urel/helloworld.o.d",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    48
		"qt_exe/winscw/udeb/helloworld.o",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    49
		"qt_exe/winscw/udeb/helloworld.o.d",	
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    50
		"qt_exe/winscw/urel/helloworld.o",
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    51
		"qt_exe/winscw/urel/helloworld.o.d"
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    52
	])
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    53
	t.run("windows")
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    54
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    55
	return t
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    56
ea6129a5c67c Add Qt test helloworld for Windows
yiluzhu
parents:
diff changeset
    57