sbsv2/raptor/test/smoke_suite/featurevariants.py
changeset 399 d84804af662b
parent 347 018461a64038
child 472 d1500715c073
equal deleted inserted replaced
382:b8a82bb868e0 399:d84804af662b
     1 #
     1 #
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of the License "Eclipse Public License v1.0"
     5 # under the terms of the License "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12 # Contributors:
    12 # Contributors:
    13 #
    13 #
    14 # Description: 
    14 # Description: 
    15 #
    15 #
    16 
    16 
    17 from raptor_tests import SmokeTest
    17 from raptor_tests import AntiTargetSmokeTest, ReplaceEnvs
    18 import os
    18 import os
    19 
    19 
    20 def run():
    20 def run():
    21 	t = SmokeTest()
    21 	t = AntiTargetSmokeTest()
    22 	
    22 	t.usebash = True
    23 	# tests for building feature variants
    23 	
    24 	t.id = "56"
    24 	preBuiltTargets = [
    25 	t.name = "featurevariants"
       
    26 	t.usebash = True
       
    27 	t.command = "sbs -b smoke_suite/test_resources/bv/bld.inf -c armv5 " + \
       
    28                 "-c armv5.test_bv_1 -c armv5.test_bv_2 -c armv5.test_bv_3 " + \
       
    29                 "--configpath=test/smoke_suite/test_resources/bv -f-"
       
    30 	t.targets = [
       
    31 		# prebuilt files
       
    32 		"$(EPOCROOT)/epoc32/release/armv5/udeb/dummy.lib",
    25 		"$(EPOCROOT)/epoc32/release/armv5/udeb/dummy.lib",
    33 		"$(EPOCROOT)/epoc32/release/armv5/urel/dummy.lib",
    26 		"$(EPOCROOT)/epoc32/release/armv5/urel/dummy.lib",
    34 		"$(EPOCROOT)/epoc32/release/armv5/udeb/debfake.lib",
    27 		"$(EPOCROOT)/epoc32/release/armv5/udeb/debfake.lib",
    35 		"$(EPOCROOT)/epoc32/release/armv5/urel/relfake.lib",
    28 		"$(EPOCROOT)/epoc32/release/armv5/urel/relfake.lib"
    36 		
    29 		]
    37 		# built files
    30 	
       
    31 	invariantTargets = [
    38 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll",
    32 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll",
    39 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.map",
    33 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.map",
    40 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.sym",
    34 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_invariant.dll.sym",
    41 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll",
    35 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll",
    42 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.map",
    36 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.map",
    43 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.sym",
    37 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_invariant.dll.sym",
    44 
    38 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant.dso",
       
    39 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant{000a0000}.dso"
       
    40 		]
       
    41 	
       
    42 	variantTargetsDefaultTree = [
       
    43 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll",
       
    44 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll.map",
       
    45 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant1.dll.sym",
       
    46 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll",
       
    47 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll.map",
       
    48 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createstaticdll_variant2.dll.sym",
       
    49 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe",
       
    50 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe.map",
       
    51 		"$(EPOCROOT)/epoc32/release/armv5/udeb/createexe_variant3.exe.sym",
       
    52 
       
    53 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll",
       
    54 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll.map",
       
    55 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant1.dll.sym",
       
    56 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll",
       
    57 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll.map",
       
    58 		"$(EPOCROOT)/epoc32/release/armv5/urel/createstaticdll_variant2.dll.sym",
       
    59 		"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe",
       
    60 		"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe.map",
       
    61 		"$(EPOCROOT)/epoc32/release/armv5/urel/createexe_variant3.exe.sym"
       
    62 		]
       
    63 	
       
    64 	variantTargetsProductTrees = [		
    45 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll",
    65 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll",
    46 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.map",
    66 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.map",
       
    67 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.sym",
    47 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.vmap",
    68 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.vmap",
    48 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll",
    69 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll",
    49 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.map",
    70 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.map",
       
    71 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant1.dll.sym",
    50 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.vmap",
    72 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createstaticdll_variant2.dll.vmap",
       
    73 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe",
       
    74 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.map",
       
    75 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.sym",
    51 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.vmap",
    76 		"$(EPOCROOT)/epoc32/release/armv5.one/udeb/createexe_variant3.exe.vmap",
    52 
    77 
    53 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll",
    78 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll",
    54 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.map",
    79 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.map",
       
    80 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.sym",
    55 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.vmap",
    81 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant1.dll.vmap",
    56 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll",
    82 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll",
    57 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.map",
    83 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.map",
       
    84 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.sym",
    58 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.vmap",
    85 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createstaticdll_variant2.dll.vmap",
       
    86 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe",
       
    87 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.map",
       
    88 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.sym",		
    59 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.vmap",
    89 		"$(EPOCROOT)/epoc32/release/armv5.one/urel/createexe_variant3.exe.vmap",
    60 
    90 
    61 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll",
    91 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll",
    62 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.map",
    92 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.map",
       
    93 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.sym",
    63 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.vmap",
    94 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant1.dll.vmap",
    64 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll",
    95 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll",
    65 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.map",
    96 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.map",
       
    97 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.sym",
    66 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.vmap",
    98 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createstaticdll_variant2.dll.vmap",
       
    99 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe",
       
   100 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.map",
       
   101 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.sym",
    67 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.vmap",
   102 		"$(EPOCROOT)/epoc32/release/armv5.two/udeb/createexe_variant3.exe.vmap",
    68 		
   103 		
    69 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll",
   104 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll",
    70 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.map",
   105 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.map",
       
   106 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.sym",
    71 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.vmap",
   107 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant1.dll.vmap",
    72 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll",
   108 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll",
    73 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.map",
   109 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.map",
       
   110 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.sym",
    74 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.vmap",
   111 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createstaticdll_variant2.dll.vmap",
       
   112 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe",
       
   113 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.map",
       
   114 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.sym",
    75 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.vmap",
   115 		"$(EPOCROOT)/epoc32/release/armv5.two/urel/createexe_variant3.exe.vmap",
    76 
   116 
    77 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll",
   117 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll",
    78 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.map",
   118 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.map",
       
   119 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.sym",
    79 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.vmap",
   120 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant1.dll.vmap",
    80 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll",
   121 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll",
    81 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.map",
   122 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.map",
       
   123 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.sym",
    82 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.vmap",
   124 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createstaticdll_variant2.dll.vmap",
       
   125 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe",
       
   126 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.map",
       
   127 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.sym",
    83 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.vmap",
   128 		"$(EPOCROOT)/epoc32/release/armv5.three/udeb/createexe_variant3.exe.vmap",
    84 		
   129 		
    85 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll",
   130 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll",
    86 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.map",
   131 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.map",
       
   132 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.sym",
    87 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.vmap",
   133 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant1.dll.vmap",
    88 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll",
   134 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll",
    89 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.map",
   135 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.map",
       
   136 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.sym",
    90 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.vmap",
   137 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createstaticdll_variant2.dll.vmap",
       
   138 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe",
       
   139 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.map",
       
   140 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.sym",
    91 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.vmap",
   141 		"$(EPOCROOT)/epoc32/release/armv5.three/urel/createexe_variant3.exe.vmap",
    92 
   142 		]
    93 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant.dso",
   143 	
    94 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_invariant{000a0000}.dso",
   144 	variantTargetsGeneric = [
    95 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1.dso",
       
    96 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1{000a0000}.dso",
       
    97 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2.dso",
       
    98 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2{000a0000}.dso",
       
    99 
       
   100 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var1.rsc",
   145 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var1.rsc",
   101 		"$(EPOCROOT)/epoc32/include/dummy_var1.rsg",
   146 		"$(EPOCROOT)/epoc32/include/dummy_var1.rsg",
   102 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var2.rsc",
   147 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var2.rsc",
   103 		"$(EPOCROOT)/epoc32/include/dummy_var2.rsg",
   148 		"$(EPOCROOT)/epoc32/include/dummy_var2.rsg",
   104 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var3.rsc",
   149 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_var3.rsc",
   105 		"$(EPOCROOT)/epoc32/include/dummy_var3.rsg",
   150 		"$(EPOCROOT)/epoc32/include/dummy_var3.rsg",
   106 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_inv.rsc",
   151 		"$(EPOCROOT)/epoc32/data/z/resource/apps/dummy_inv.rsc",
   107 		"$(EPOCROOT)/epoc32/include/dummy_inv.rsg"
   152 		"$(EPOCROOT)/epoc32/include/dummy_inv.rsg",
   108 		]
   153 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1.dso",
   109 	t.addbuildtargets('smoke_suite/test_resources/bv/bld.inf', [
   154 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant1{000a0000}.dso",
       
   155 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2.dso",
       
   156 		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll_variant2{000a0000}.dso"
       
   157 		]
       
   158 	
       
   159 	invariantBuildTargets = [
   110 		"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o",
   160 		"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o",
   111 		"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o.d",
   161 		"createstaticdll_invariant_dll/armv5/udeb/CreateStaticDLL_invariant.o.d",
   112 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant_udeb_objects.via",
   162 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant_udeb_objects.via",
   113 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.def",
   163 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.def",
   114 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.dso",
   164 		"createstaticdll_invariant_dll/armv5/udeb/createstaticdll_invariant{000a0000}.dso",
   117 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant_urel_objects.via",
   167 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant_urel_objects.via",
   118 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.def",
   168 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.def",
   119 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.dso",
   169 		"createstaticdll_invariant_dll/armv5/urel/createstaticdll_invariant{000a0000}.dso",
   120 		
   170 		
   121 		"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp",
   171 		"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp",
   122 		"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp.d",
   172 		"dummy_inv_dll/dummy_inv__resource_apps_sc.rpp.d"
   123 		"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp",
   173 		]
   124 		"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp.d",
   174 
   125 		"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp",
   175 	variantBuildTargetsDefaultTree = [
   126 		"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp.d",
   176 		"createstaticdll_variant1_dll/armv5/udeb/CreateStaticDLL_variant1.o",
   127 		"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp",
   177 		"createstaticdll_variant1_dll/armv5/udeb/CreateStaticDLL_variant1.o.d",
   128 		"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp.d",
   178 		"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1_udeb_objects.via",
   129 		
   179 		"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1{000a0000}.def",
   130 		
   180 		"createstaticdll_variant1_dll/armv5/udeb/createstaticdll_variant1{000a0000}.dso",
       
   181 		"createstaticdll_variant1_dll/armv5/urel/CreateStaticDLL_variant1.o",
       
   182 		"createstaticdll_variant1_dll/armv5/urel/CreateStaticDLL_variant1.o.d",
       
   183 		"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1_urel_objects.via",
       
   184 		"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1{000a0000}.def",
       
   185 		"createstaticdll_variant1_dll/armv5/urel/createstaticdll_variant1{000a0000}.dso",
       
   186 		
       
   187 		"createstaticdll_variant2_dll/armv5/udeb/CreateStaticDLL_variant2.o",
       
   188 		"createstaticdll_variant2_dll/armv5/udeb/CreateStaticDLL_variant2.o.d",
       
   189 		"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2_udeb_objects.via",
       
   190 		"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2{000a0000}.def",
       
   191 		"createstaticdll_variant2_dll/armv5/udeb/createstaticdll_variant2{000a0000}.dso",
       
   192 		"createstaticdll_variant2_dll/armv5/urel/CreateStaticDLL_variant2.o",
       
   193 		"createstaticdll_variant2_dll/armv5/urel/CreateStaticDLL_variant2.o.d",
       
   194 		"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2_urel_objects.via",
       
   195 		"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2{000a0000}.def",
       
   196 		"createstaticdll_variant2_dll/armv5/urel/createstaticdll_variant2{000a0000}.dso",
       
   197 		
       
   198 		"createexe_variant3_exe/armv5/udeb/CreateEXE_variant3.o",
       
   199 		"createexe_variant3_exe/armv5/udeb/CreateEXE_variant3.o.d",
       
   200 		"createexe_variant3_exe/armv5/udeb/createexe_variant3_udeb_objects.via",
       
   201 		"createexe_variant3_exe/armv5/urel/CreateEXE_variant3.o",
       
   202 		"createexe_variant3_exe/armv5/urel/CreateEXE_variant3.o.d",
       
   203 		"createexe_variant3_exe/armv5/urel/createexe_variant3_urel_objects.via"
       
   204 		]
       
   205 	
       
   206 	variantBuildTargetsProductTrees = [		
   131 		"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o",
   207 		"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o",
   132 		"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o.d",
   208 		"createstaticdll_variant1_dll/armv5.one/udeb/CreateStaticDLL_variant1.o.d",
   133 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1_udeb_objects.via",
   209 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1_udeb_objects.via",
   134 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.def",
   210 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.def",
   135 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.dso",
   211 		"createstaticdll_variant1_dll/armv5.one/udeb/createstaticdll_variant1{000a0000}.dso",
   155 		"createexe_variant3_exe/armv5.one/udeb/createexe_variant3_udeb_objects.via",
   231 		"createexe_variant3_exe/armv5.one/udeb/createexe_variant3_udeb_objects.via",
   156 		"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o",
   232 		"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o",
   157 		"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o.d",
   233 		"createexe_variant3_exe/armv5.one/urel/CreateEXE_variant3.o.d",
   158 		"createexe_variant3_exe/armv5.one/urel/createexe_variant3_urel_objects.via",
   234 		"createexe_variant3_exe/armv5.one/urel/createexe_variant3_urel_objects.via",
   159 		
   235 		
   160 		
       
   161 		"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o",
   236 		"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o",
   162 		"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o.d",
   237 		"createstaticdll_variant1_dll/armv5.two/udeb/CreateStaticDLL_variant1.o.d",
   163 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1_udeb_objects.via",
   238 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1_udeb_objects.via",
   164 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.def",
   239 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.def",
   165 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.dso",
   240 		"createstaticdll_variant1_dll/armv5.two/udeb/createstaticdll_variant1{000a0000}.dso",
   185 		"createexe_variant3_exe/armv5.two/udeb/createexe_variant3_udeb_objects.via",
   260 		"createexe_variant3_exe/armv5.two/udeb/createexe_variant3_udeb_objects.via",
   186 		"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o",
   261 		"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o",
   187 		"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o.d",
   262 		"createexe_variant3_exe/armv5.two/urel/CreateEXE_variant3.o.d",
   188 		"createexe_variant3_exe/armv5.two/urel/createexe_variant3_urel_objects.via",
   263 		"createexe_variant3_exe/armv5.two/urel/createexe_variant3_urel_objects.via",
   189 		
   264 		
   190 		
       
   191 		"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o",
   265 		"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o",
   192 		"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o.d",
   266 		"createstaticdll_variant1_dll/armv5.three/udeb/CreateStaticDLL_variant1.o.d",
   193 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1_udeb_objects.via",
   267 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1_udeb_objects.via",
   194 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.def",
   268 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.def",
   195 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.dso",
   269 		"createstaticdll_variant1_dll/armv5.three/udeb/createstaticdll_variant1{000a0000}.dso",
   214 		"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o.d",
   288 		"createexe_variant3_exe/armv5.three/udeb/CreateEXE_variant3.o.d",
   215 		"createexe_variant3_exe/armv5.three/udeb/createexe_variant3_udeb_objects.via",
   289 		"createexe_variant3_exe/armv5.three/udeb/createexe_variant3_udeb_objects.via",
   216 		"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o",
   290 		"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o",
   217 		"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o.d",
   291 		"createexe_variant3_exe/armv5.three/urel/CreateEXE_variant3.o.d",
   218 		"createexe_variant3_exe/armv5.three/urel/createexe_variant3_urel_objects.via"
   292 		"createexe_variant3_exe/armv5.three/urel/createexe_variant3_urel_objects.via"
   219 	])
   293 		]
       
   294 	
       
   295 	variantBuildTargetsGeneric = [
       
   296 		"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp",
       
   297 		"dummy_var1_dll/dummy_var1__resource_apps_sc.rpp.d",
       
   298 		"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp",
       
   299 		"dummy_var2_dll/dummy_var2__resource_apps_sc.rpp.d",
       
   300 		"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp",
       
   301 		"dummy_var3_exe/dummy_var3__resource_apps_sc.rpp.d"
       
   302 		]
       
   303 	
       
   304 	sbscommand = "sbs -b smoke_suite/test_resources/bv/bld.inf -c armv5 " + \
       
   305 				"-c armv5.test_bv_1 -c armv5.test_bv_2 -c armv5.test_bv_3 -f- " + \
       
   306 				"--configpath=test/smoke_suite/test_resources/bv/config/variants"
       
   307 	
       
   308 	t.id = "56a"
       
   309 	t.description = """Build variant and invariant components.
       
   310 		In this default mode of operation, all components build for the non-product armv5 config whereas
       
   311 		only variant components build for the armv5.* bv configs."""
       
   312 	t.name = "featurevariant_build"
       
   313 	t.command = sbscommand
       
   314 	t.targets = preBuiltTargets + invariantTargets + variantTargetsGeneric + variantTargetsDefaultTree + variantTargetsProductTrees							
       
   315 	t.addbuildtargets('smoke_suite/test_resources/bv/bld.inf',
       
   316 				invariantBuildTargets + variantBuildTargetsGeneric + variantBuildTargetsDefaultTree + variantBuildTargetsProductTrees	
       
   317 				)
   220 	# Test that static libs are linked from the invariant place.
   318 	# Test that static libs are linked from the invariant place.
   221 	t.mustmatch = [
   319 	t.mustmatch = [
   222 		"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib",
   320 		"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib",
   223 		"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib"
   321 		"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib"
   224 	]
   322 		]
   225 	t.run()
   323 	t.run()
   226 	
   324 	
       
   325 	t.id = "56b"
       
   326 	t.description = """Build variant and invariant components using an os_properties.xml that sets FEATUREVARIANTSAFE=1.
       
   327 		With FEATUREVARIANTSAFE only invariant components build for the non-product armv5 config and
       
   328 		only variant components build for the armv5.* bv configs.""" 
       
   329 	t.name = "featurevariant_build_featurevariantsafe"
       
   330 	t.command = sbscommand + " --configpath=test/smoke_suite/test_resources/bv/config/properties"
       
   331 	t.targets = preBuiltTargets + invariantTargets + variantTargetsGeneric + variantTargetsProductTrees
       
   332 	t.addbuildtargets('smoke_suite/test_resources/bv/bld.inf',
       
   333 				invariantBuildTargets + variantBuildTargetsGeneric + variantBuildTargetsProductTrees	
       
   334 				)
       
   335 	t.antitargets = variantTargetsDefaultTree
       
   336 	t.addbuildantitargets('smoke_suite/test_resources/bv/bld.inf',
       
   337 				variantBuildTargetsDefaultTree
       
   338 				)
       
   339 	# Test that static libs are linked from the invariant place.
       
   340 	t.mustmatch = [
       
   341 		"armlink.*epoc32/release/armv5/urel/bv_static_lib.lib",
       
   342 		"armlink.*epoc32/release/armv5/udeb/bv_static_lib.lib"
       
   343 		]
       
   344 	t.run()
       
   345 
   227 	
   346 	
   228 	# tests for the createvmap script
   347 	# tests for the createvmap script
   229 	createvmap = "python $(SBS_HOME)/bin/createvmap.py"
   348 	createvmap = "python $(SBS_HOME)/bin/createvmap.py"
   230 	vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap"
   349 	vmapfile = "$(EPOCROOT)/epoc32/build/test.vmap"
   231 	vmap = " -o " + vmapfile
   350 	vmap = " -o " + vmapfile
   245 	listC = " -f " + bvdata + "/listC.txt"
   364 	listC = " -f " + bvdata + "/listC.txt"
   246 	srcWith = " -s " + bvdata + "/with_macros.cpp"
   365 	srcWith = " -s " + bvdata + "/with_macros.cpp"
   247 	srcWithout = " -s " + bvdata + "/without_macros.cpp"
   366 	srcWithout = " -s " + bvdata + "/without_macros.cpp"
   248 	badSrc = " -s " + bvdata + "/with_errors.cpp"
   367 	badSrc = " -s " + bvdata + "/with_errors.cpp"
   249 
   368 
   250 	t.id = "56a"
   369 	t.id = "56c"
   251 	t.name = "createvmap exits with an error"
   370 	t.name = "createvmap exits with an error"
   252 	t.usebash = True
   371 	t.usebash = True
   253 	t.command = createvmap
   372 	t.command = createvmap
   254 	t.returncode = 1
   373 	t.returncode = 1
   255 	t.targets = []
   374 	t.targets = []
   256 	t.mustmatch = []
   375 	t.mustmatch = []
   257 	t.run()
   376 	t.run()
   258 
   377 
   259 	
   378 	
   260 	t.id = "56b"
   379 	t.id = "56d"
   261 	t.name = "createvmap shows cpp errors"
   380 	t.name = "createvmap shows cpp errors"
   262 	t.usebash = True
   381 	t.usebash = True
   263 	t.command = createvmap + vmap + bvcpp + preinc + listA + badSrc
   382 	t.command = createvmap + vmap + bvcpp + preinc + listA + badSrc
   264 	t.returncode = 1
   383 	t.returncode = 1
   265 	t.targets = []
   384 	t.targets = []
   266 	t.mustmatch = ["#error this code is broken"]
   385 	t.mustmatch = ["#error this code is broken"]
   267 	t.run()
   386 	t.run()
   268 	
   387 	
   269 	
   388 	
   270 	t.id = "56c"
   389 	t.id = "56e"
   271 	t.name = "createvmap errors on missing feature list"
   390 	t.name = "createvmap errors on missing feature list"
   272 	t.usebash = True
   391 	t.usebash = True
   273 	t.command = createvmap + vmap + bvcpp + preinc + listC + srcWith
   392 	t.command = createvmap + vmap + bvcpp + preinc + listC + srcWith
   274 	t.returncode = 1
   393 	t.returncode = 1
   275 	t.targets = []
   394 	t.targets = []
   276 	t.mustmatch = ["The feature list '.*listC.txt' does not exist"]
   395 	t.mustmatch = ["The feature list '.*listC.txt' does not exist"]
   277 	t.run()
   396 	t.run()
   278 	
   397 	
   279 	
   398 	
   280 	t.id = "56d"
   399 	t.id = "56f"
   281 	t.name = "createvmap warns on featureless code"
   400 	t.name = "createvmap warns on featureless code"
   282 	t.usebash = True
   401 	t.usebash = True
   283 	t.command = createvmap + vmap + bvcpp + preinc + listA + srcWithout
   402 	t.command = createvmap + vmap + bvcpp + preinc + listA + srcWithout
   284 	t.returncode = 0
   403 	t.returncode = 0
   285 	t.targets = [vmapfile]
   404 	t.targets = [vmapfile]
   286 	t.mustmatch = ["warning: No feature macros were found in the source"]
   405 	t.mustmatch = ["warning: No feature macros were found in the source"]
   287 	t.run()
   406 	t.run()
   288 	
   407 	
   289 	
   408 	
   290 	t.id = "56e"
   409 	t.id = "56g"
   291 	t.name = "createvmap creates the right vmap file"
   410 	t.name = "createvmap creates the right vmap file"
   292 	t.usebash = True
   411 	t.usebash = True
   293 	t.command = createvmap + vmap + bvcpp + preinc + listA + listB + srcWith + srcWithout + " && cat " + vmapfile
   412 	t.command = createvmap + vmap + bvcpp + preinc + listA + listB + srcWith + srcWithout + " && cat " + vmapfile
   294 	t.returncode = 0
   413 	t.returncode = 0
   295 	t.targets = [vmapfile]
   414 	t.targets = [vmapfile]