sbsv2/raptor/test/smoke_suite/qt.py
branchfix
changeset 170 d1af983e283d
parent 159 9758784ab2d3
child 171 083d88a8550e
equal deleted inserted replaced
159:9758784ab2d3 170:d1af983e283d
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 # This test case requires install of Qt. 
       
    16 
       
    17 from raptor_tests import SmokeTest
       
    18 
       
    19 def run():
       
    20 	t = SmokeTest()
       
    21 
       
    22 	t.description = "Ensure Raptor builds Qt applications successfully"	
       
    23 
       
    24 	t.id = "00xx"	# TO DO: update ID
       
    25 	t.name = "qt_helloworld"
       
    26 	t.command = "cd smoke_suite/test_resources/qt && qmake -spec symbian-sbsv2 && sbs"
       
    27 	t.targets = [
       
    28 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/bld.inf",
       
    29 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.loc",
       
    30 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt.rss",
       
    31 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_reg.rss",
       
    32 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/helloworldqt_template.pkg",
       
    33 			"$(SBS_HOME)/test/smoke_suite/test_resources/qt/Makefile",
       
    34 			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe",
       
    35 			"$(EPOCROOT)/epoc32/release/armv5/udeb/helloworldqt.exe.map",
       
    36 			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe",
       
    37 			"$(EPOCROOT)/epoc32/release/armv5/urel/helloworldqt.exe.map",
       
    38 			"$(EPOCROOT)/epoc32/release/winscw/udeb/helloworldqt.exe",
       
    39 			"$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe",
       
    40 			"$(EPOCROOT)/epoc32/release/winscw/urel/helloworldqt.exe.map"
       
    41 		]
       
    42 	t.addbuildtargets('smoke_suite/test_resources/qt/bld.inf', [
       
    43 		"helloworldqt_exe/armv5/udeb/helloworld.o",
       
    44 		"helloworldqt_exe/armv5/udeb/helloworld.o.d",
       
    45 		"helloworldqt_exe/armv5/urel/helloworld.o",
       
    46 		"helloworldqt_exe/armv5/urel/helloworld.o.d",
       
    47 		"helloworldqt_exe/winscw/udeb/helloworld.o",
       
    48 		"helloworldqt_exe/winscw/udeb/helloworld.o.d",	
       
    49 		"helloworldqt_exe/winscw/urel/helloworld.o",
       
    50 		"helloworldqt_exe/winscw/urel/helloworld.o.d"
       
    51 	])
       
    52 	t.run("windows")
       
    53 
       
    54 	return t
       
    55