sbsv2/raptor/test/smoke_suite/extension_whattarget.py
author Richard Taylor <richard.i.taylor@nokia.com>
Wed, 14 Jul 2010 14:50:01 +0100
changeset 616 24e4ef208cca
parent 591 22486c9c7b15
permissions -rw-r--r--
sbs version 2.14.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
# Description: 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
from raptor_tests import CheckWhatSmokeTest
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
import re
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
def run():
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
	t = CheckWhatSmokeTest()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
	t.id = "68"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	t.description = "Test output from WHAT target"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
	t.name = "extension_whattarget"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
	t.command = "sbs -b smoke_suite/test_resources/simple_extension/bld.inf" + \
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
			" WHAT -f - -m ${SBSMAKEFILE}"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
	t.regexlinefilter = \
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
			re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
	t.hostossensitive = False
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
	t.usebash = True
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
	t.targets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
		"$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
		]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
	t.stdout = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config=''>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.mk'/>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/clean.meta'/>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.mk'/>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
		"<export destination='$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta' source='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/build.meta'/>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_udeb'>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt</build>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='armv5_urel'>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt</build>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_urel'>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
		"<build>$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt</build>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
		"<whatlog bldinf='$(SBS_HOME)/test/smoke_suite/test_resources/simple_extension/bld.inf' mmp='' config='winscw_udeb'>",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
		"<build>$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt</build>"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
	return t