sbsv2/raptor/test/smoke_suite/qt.py
author kunmitta <>
Tue, 02 Feb 2010 10:06:46 +0000
branchwip
changeset 325 226aba1c0d68
parent 106 acb06ca7ad48
permissions -rw-r--r--
Add a workaround to enable the Qt team to link their code against Symbian DLL's
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
105
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     1
#
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     3
# All rights reserved.
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     4
# This component and the accompanying materials are made available
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     6
# which accompanies this distribution, and is available
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     8
#
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
     9
# Initial Contributors:
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    11
#
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    12
# Contributors:
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    13
#
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    14
# Description: 
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    15
# This test case requires install of Qt. 
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    16
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    17
from raptor_tests import SmokeTest
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    18
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    19
def run():
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    20
	t = SmokeTest()
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    21
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    22
	t.description = "Ensure Raptor builds Qt applications successfully"	
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    23
106
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    24
	t.id = "00xx"	# TO DO: update ID
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    25
	t.name = "qt_helloworld"
105
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    26
	t.command = "cd smoke_suite/test_resources/qt && qmake -spec symbian-sbsv2 && sbs"
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    27
	t.targets = [
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    28
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/bld.inf",
106
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    29
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.loc",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    30
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.rss",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    31
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_reg.rss",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    32
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_template.pkg",
105
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    33
			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/Makefile",
106
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    34
			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    35
			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.map",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    36
			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    37
			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.map",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    38
			"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworldqt.exe",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    39
			"$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    40
			"$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe.map"
105
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    41
		]
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    42
	t.addbuildtargets('smoke_suite/test_resources/qt/bld.inf', [
106
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    43
		"helloworldqt_exe/armv5/udeb/helloworld.o",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    44
		"helloworldqt_exe/armv5/udeb/helloworld.o.d",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    45
		"helloworldqt_exe/armv5/urel/helloworld.o",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    46
		"helloworldqt_exe/armv5/urel/helloworld.o.d",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    47
		"helloworldqt_exe/winscw/udeb/helloworld.o",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    48
		"helloworldqt_exe/winscw/udeb/helloworld.o.d",	
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    49
		"helloworldqt_exe/winscw/urel/helloworld.o",
acb06ca7ad48 update Qt test
yiluzhu
parents: 105
diff changeset
    50
		"helloworldqt_exe/winscw/urel/helloworld.o.d"
105
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    51
	])
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    52
	t.run("windows")
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    53
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    54
	return t
d4f6f170ebe2 Release: move Qt test to smoke suite.
yiluzhu
parents:
diff changeset
    55