sbsv2/raptor/test/smoke_suite/pdll_arm.py
changeset 13 c327db0664bb
child 18 de5b887c98f7
equal deleted inserted replaced
12:5e7562f67577 13:c327db0664bb
       
     1 #
       
     2 # Copyright (c) 2009-2010 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 #
       
    16 
       
    17 from raptor_tests import AntiTargetSmokeTest
       
    18 
       
    19 def run():
       
    20 	t = AntiTargetSmokeTest()
       
    21 	t.usebash = True
       
    22 	
       
    23 	command = "sbs -b smoke_suite/test_resources/simple_dll/pbld.inf -c %s -f -"
       
    24 	maintargets = [
       
    25 		"$(EPOCROOT)/epoc32/release/%s/udeb/createstaticpdll.dll.sym",
       
    26 		"$(EPOCROOT)/epoc32/release/%s/urel/createstaticpdll.dll.sym",
       
    27 		"$(EPOCROOT)/epoc32/release/%s/udeb/createstaticpdll.dll",
       
    28 		"$(EPOCROOT)/epoc32/release/%s/urel/createstaticpdll.dll"
       
    29 		]
       
    30 	armv5targets = [
       
    31 		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll.dso",
       
    32 		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll{000a0000}.dso"
       
    33 		]
       
    34 	abiv1libtargets = [
       
    35 		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll.lib",
       
    36 		"$(EPOCROOT)/epoc32/release/%s/lib/createstaticpdll{000a0000}.lib"
       
    37 		]
       
    38 	buildtargets =  [
       
    39 		"createstaticpdll_dll/%s/udeb/CreateStaticDLL.o",
       
    40 		"createstaticpdll_dll/%s/urel/CreateStaticDLL.o"
       
    41 		]
       
    42 	mustmatch = [
       
    43 		r".*\busrt\d_\d\.lib\b.*",
       
    44 		r".*\bscppnwdl\.dso\b.*"
       
    45 		]
       
    46 	mustnotmatch = [
       
    47 		".*ksrt.*"
       
    48 		]
       
    49 	
       
    50 	# Note that ABIv1 import libraries are only generated for RVCT-based armv5
       
    51 	# builds on Windows
       
    52 	
       
    53 	t.id = "0109a"
       
    54 	t.name = "pdll_armv5_rvct"
       
    55 	t.command = command % "armv5"
       
    56 	t.targets = map(lambda p: p % "armv5", maintargets + armv5targets)[:]	# Shallow, as we optionally extend later and then re-use
       
    57 	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv5", buildtargets))
       
    58 	t.mustmatch = mustmatch
       
    59 	t.mustnotmatch = mustnotmatch
       
    60 	t.run("linux")
       
    61 	if t.result == AntiTargetSmokeTest.SKIP:
       
    62 		t.targets.extend(map(lambda x: x % "armv5", abiv1libtargets))
       
    63 		t.run("windows")
       
    64 		
       
    65 	t.id = "0109b"
       
    66 	t.name = "pdll_armv5_clean"
       
    67 	t.command = command % "armv5" + " clean"
       
    68 	t.targets = []
       
    69 	t.mustmatch = []
       
    70 	t.mustnotmatch = []
       
    71 	t.run()
       
    72 	
       
    73 	t.id = "0109c"
       
    74 	t.name = "pdll_armv5_gcce"
       
    75 	t.command = command % "gcce_armv5"
       
    76 	t.targets = map(lambda p: p % "armv5", maintargets + armv5targets)
       
    77 	t.antitargets = map(lambda p: p % "armv5", abiv1libtargets)
       
    78 	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv5", buildtargets))
       
    79 	t.mustmatch = mustmatch
       
    80 	t.mustnotmatch = mustnotmatch
       
    81 	t.run()
       
    82 
       
    83 	t.id = "0109d"
       
    84 	t.name = "pdll_armv5_gcce_clean"
       
    85 	t.command = command % "gcce_armv5" + " clean"
       
    86 	t.targets = []
       
    87 	t.mustmatch = []
       
    88 	t.mustnotmatch = []
       
    89 	t.run()
       
    90 
       
    91 	t.id = "0109e"
       
    92 	t.name = "pdll_armv7_rvct"
       
    93 	t.command = command % "armv7"
       
    94 	t.targets = map(lambda p: p % "armv7", maintargets)[:]	# Shallow, as we optionally extend later and then re-use
       
    95 	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv7", buildtargets))
       
    96 	t.mustmatch = mustmatch
       
    97 	t.mustnotmatch = mustnotmatch
       
    98 	t.run()
       
    99 	
       
   100 	t.id = "0109f"
       
   101 	t.name = "pdll_armv7_clean"
       
   102 	t.command = command % "armv7" + " clean"
       
   103 	t.targets = []
       
   104 	t.mustmatch = []
       
   105 	t.mustnotmatch = []
       
   106 	t.run()
       
   107 	
       
   108 	t.id = "0109g"
       
   109 	t.name = "pdll_armv7_gcce"
       
   110 	t.command = command % "arm.v7.udeb.gcce4_3_2 -c arm.v7.urel.gcce4_3_2"
       
   111 	t.targets = map(lambda p: p % "armv7", maintargets)
       
   112 	t.antitargets = map(lambda p: p % "armv7", abiv1libtargets)
       
   113 	t.addbuildtargets('smoke_suite/test_resources/simple_dll/pbld.inf', map(lambda p: p % "armv7", buildtargets))
       
   114 	t.mustmatch = mustmatch
       
   115 	t.mustnotmatch = mustnotmatch
       
   116 	t.run()
       
   117 
       
   118 	t.id = "109"
       
   119 	t.name = "pdll_arm"
       
   120 	t.print_result()
       
   121 	return t