sbsv2/raptor/test/smoke_suite/pdll_arm.py
author Richard Taylor <richard.i.taylor@nokia.com>
Fri, 30 Apr 2010 16:52:27 +0100
branchwip
changeset 506 efe4a967495a
parent 171 083d88a8550e
permissions -rw-r--r--
test changes for abiv1 kit property
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     1
#
171
083d88a8550e Fixing qt_helloworld test id. Fixing copyright notices.
Iain Williamson <iain.williamson@nokia.com>
parents: 170
diff changeset
     2
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     3
# All rights reserved.
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     4
# This component and the accompanying materials are made available
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     6
# which accompanies this distribution, and is available
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     8
#
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     9
# Initial Contributors:
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    11
#
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    12
# Contributors:
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    13
#
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    14
# Description: 
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    15
#
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    16
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    17
from raptor_tests import AntiTargetSmokeTest
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    18
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    19
def run():
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    20
	t = AntiTargetSmokeTest()
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    21
	t.usebash = True
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    22
	
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    23
	command = "sbs -b smoke_suite/test_resources/simple_dll/pbld.inf -c %s -f -"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    24
	maintargets = [
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    25
		"$(EPOCROOT)/epoc32/release/%s/udeb/createstaticpdll.dll.sym",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    26
		"$(EPOCROOT)/epoc32/release/%s/urel/createstaticpdll.dll.sym",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/%s/udeb/createstaticpdll.dll",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/%s/urel/createstaticpdll.dll"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    29
		]
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    30
	armv5targets = [
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll.dso",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll{000a0000}.dso"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    33
		]
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    34
	buildtargets =  [
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    35
		"createstaticpdll_dll/%s/udeb/CreateStaticDLL.o",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    36
		"createstaticpdll_dll/%s/urel/CreateStaticDLL.o"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    37
		]
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    38
	mustmatch = [
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    39
		r".*\busrt\d_\d\.lib\b.*",
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    40
		r".*\bscppnwdl\.dso\b.*"
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    41
		]
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    42
	mustnotmatch = [
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    43
		".*ksrt.*"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    44
		]
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    45
	
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    46
	t.id = "0109a"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    47
	t.name = "pdll_armv5_rvct"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    48
	t.command = command % "armv5"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    49
	t.targets = map(lambda p: p % "armv5", maintargets + armv5targets)[:]	# Shallow, as we optionally extend later and then re-use
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    50
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv5", buildtargets))
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    51
	t.mustmatch = mustmatch
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    52
	t.mustnotmatch = mustnotmatch
506
efe4a967495a test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents: 171
diff changeset
    53
	t.run()
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    54
		
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    55
	t.id = "0109b"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    56
	t.name = "pdll_armv5_clean"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    57
	t.command = command % "armv5" + " clean"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    58
	t.targets = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    59
	t.mustmatch = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    60
	t.mustnotmatch = []
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    61
	t.run()
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    62
	
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    63
	t.id = "0109c"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    64
	t.name = "pdll_armv5_gcce"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    65
	t.command = command % "gcce_armv5"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    66
	t.targets = map(lambda p: p % "armv5", maintargets + armv5targets)
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    67
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv5", buildtargets))
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    68
	t.mustmatch = mustmatch
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    69
	t.mustnotmatch = mustnotmatch
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    70
	t.run()
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    71
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    72
	t.id = "0109d"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    73
	t.name = "pdll_armv5_gcce_clean"
83
b806641dda89 Adding test ids. Fixing pdll test code to use its own def files.
Iain Williamson <iain.williamson@nokia.com>
parents: 82
diff changeset
    74
	t.command = command % "gcce_armv5" + " clean"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    75
	t.targets = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    76
	t.mustmatch = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    77
	t.mustnotmatch = []
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    78
	t.run()
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    79
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    80
	t.id = "0109e"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    81
	t.name = "pdll_armv7_rvct"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    82
	t.command = command % "armv7"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    83
	t.targets = map(lambda p: p % "armv7", maintargets)[:]	# Shallow, as we optionally extend later and then re-use
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    84
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv7", buildtargets))
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    85
	t.mustmatch = mustmatch
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    86
	t.mustnotmatch = mustnotmatch
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    87
	t.run()
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    88
	
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    89
	t.id = "0109f"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    90
	t.name = "pdll_armv7_clean"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    91
	t.command = command % "armv7" + " clean"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    92
	t.targets = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    93
	t.mustmatch = []
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    94
	t.mustnotmatch = []
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    95
	t.run()
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
    96
	
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
    97
	t.id = "0109g"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    98
	t.name = "pdll_armv7_gcce"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    99
	t.command = command % "arm.v7.udeb.gcce4_3_2 -c arm.v7.urel.gcce4_3_2"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   100
	t.targets = map(lambda p: p % "armv7", maintargets)
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   101
	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv7", buildtargets))
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   102
	t.mustmatch = mustmatch
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   103
	t.mustnotmatch = mustnotmatch
82
2c3a3c79b512 Review rework: Removing result trackers
Iain Williamson <iain.williamson@nokia.com>
parents: 80
diff changeset
   104
	t.run()
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   105
170
d1af983e283d Renumbering commandline, pdll_arm and toolchain_macro tests to avoid duplicates.
Iain Williamson <iain.williamson@nokia.com>
parents: 83
diff changeset
   106
	t.id = "109"
80
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   107
	t.name = "pdll_arm"
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   108
	t.print_result()
cc878ffa65f3 Adding a patchable constants dll (PDLL) targettype + tests
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
   109
	return t