sbsv2/raptor/test/smoke_suite/mmp_keywords.py
changeset 616 24e4ef208cca
parent 591 22486c9c7b15
child 625 a1925fb7753a
equal deleted inserted replaced
613:839712f5a78c 616:24e4ef208cca
     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".
   224 	t.id = "75i"
   224 	t.id = "75i"
   225 	t.name = "mmp_9a"
   225 	t.name = "mmp_9a"
   226 	t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p armfpu_soft.mmp -c armv5_urel -f-"			
   226 	t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p armfpu_soft.mmp -c armv5_urel -f-"			
   227 	t.targets = []
   227 	t.targets = []
   228 	t.mustmatch = ["--fpu softvfp", "--fpu=softvfp"]
   228 	t.mustmatch = ["--fpu softvfp", "--fpu=softvfp"]
   229 	t.mustnotmatch = ["--fpu vfpv2", "--fpu=vfpv2"]
   229 	t.mustnotmatch = ["--fpu vfpv2", "--fpu softvfp\+", "--fpu=vfpv2", "--fpu=softvfp\+"]
   230 	t.warnings = 0
   230 	t.warnings = 0
   231 	t.run()
   231 	t.run()
   232 		
   232 		
   233 	t.id = "75j"
   233 	t.id = "75j"
   234 	t.name = "mmp_9b"
   234 	t.name = "mmp_9b"
   237 
   237 
   238 	t.mustmatch = ["--fpu vfpv2", "--fpu=vfpv2"]
   238 	t.mustmatch = ["--fpu vfpv2", "--fpu=vfpv2"]
   239 	t.mustnotmatch = ["--fpu softvfp", "--fpu=softvfp"]	
   239 	t.mustnotmatch = ["--fpu softvfp", "--fpu=softvfp"]	
   240 	t.run()
   240 	t.run()
   241 	
   241 	
       
   242 	t.id = "75ja"
       
   243 	t.name = "mmp_9c"
       
   244 	t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel REALLYCLEAN &&" \
       
   245 			+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -p \"armfpu_soft+vfpv2.mmp\" -c armv5_urel -f-"
       
   246 
       
   247 	t.mustmatch = ["--fpu softvfp\+vfpv2", "--fpu=vfpv2"]
       
   248 	t.mustnotmatch = ["--fpu vfpv2", "--fpu softvfp ", "--fpu=softvfp"]
       
   249 	t.run()
       
   250 
   242 	t.id = "75k"
   251 	t.id = "75k"
   243 	t.name = "mmp_10"
   252 	t.name = "mmp_10"
   244 	t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf  -c armv5_urel_gcce4_3_2 REALLYCLEAN &&" \
   253 	t.command = "sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf  -c armv5_urel_gcce4_3_2 REALLYCLEAN &&" \
   245 			+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 -f-"
   254 			+ " sbs -b $(SBS_HOME)/test/smoke_suite/test_resources/mmp/mmp9_10/bld.inf -c armv5_urel_gcce4_3_2 -f-"
   246 	t.countmatch = [
   255 	t.countmatch = [
   247 		["-mfloat-abi=soft", 2],
   256 		["-mfloat-abi=soft", 3],
   248 		["--fpu=softvfp", 2]
   257 		["--fpu=softvfp", 3] # gcce doesn't vary according to ARMFPU currently
   249 	]
   258 	]
   250 	t.mustmatch = []
   259 	t.mustmatch = []
   251 	t.mustnotmatch = ["--fpu=vfpv2"]
   260 	t.mustnotmatch = ["--fpu=vfpv2", "--fpu=softvfp\+"]
   252 	t.run()
   261 	t.run()
   253 	
   262 	
   254 	# Test keywords: compresstarget, nocompresstarget, bytepaircompresstarget, inflatecompresstarget
   263 	# Test keywords: compresstarget, nocompresstarget, bytepaircompresstarget, inflatecompresstarget
   255 	t.id = "75l"
   264 	t.id = "75l"
   256 	t.name = "mmp_11"
   265 	t.name = "mmp_11"
   289 	t.run()
   298 	t.run()
   290 
   299 
   291 	# Test keyword: EPOCNESTEDEXCEPTIONS
   300 	# Test keyword: EPOCNESTEDEXCEPTIONS
   292 	t.id = "75n"
   301 	t.id = "75n"
   293 	t.name = "epocnestedexceptions"
   302 	t.name = "epocnestedexceptions"
   294 	t.command = "sbs -b smoke_suite/test_resources/mmp/epocnestedexceptions/bld.inf -c armv5 -f-"
   303 	t.command = "sbs -b smoke_suite/test_resources/mmp/epocnestedexceptions/bld.inf -c armv5_udeb -f-"
   295 
   304 
   296 	# When EPOCNESTEDEXCEPTIONS is specified in the MMP file, a different static
   305 	# When EPOCNESTEDEXCEPTIONS is specified in the MMP file, a different static
   297 	# run-time library should be used.
   306 	# run-time library should be used.
   298 	t.mustmatch_singleline = ["usrt_nx_\d_\d\.lib"]
   307 	t.mustmatch_singleline = ["usrt_nx_\d_\d\.lib"]
   299 	t.mustnotmatch = ["usrt._.."]
   308 	t.mustnotmatch = ["usrt._.."]
   300 
   309 
   301 	t.countmatch = []
   310 	t.countmatch = []
   302 
   311 
   303 	# The new static run-time libraries don't yet exist.
   312 	# The new static run-time libraries don't yet exist.
   304 	t.errors = 1
   313 	t.errors = 1
   305 	t.warnings = 2
   314 	t.warnings = 1
   306 	t.targets = []
   315 	t.targets = []
   307 
   316 
   308 	t.run()
   317 	t.run()
   309 
   318 
   310 	t.id = "75"
   319 	t.id = "75"