sbsv2/raptor/test/smoke_suite/parallel_parsing.py
changeset 602 3145852acc89
child 674 37ee82a83d43
equal deleted inserted replaced
600:6d08f4a05d93 602:3145852acc89
       
     1 #
       
     2 # Copyright (c) 2009 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 SmokeTest
       
    18 
       
    19 def run():
       
    20 	t = SmokeTest()
       
    21 	t.usebash = True
       
    22 	result = SmokeTest.PASS
       
    23 
       
    24 	description = """This test covers parallel parsing."""
       
    25 	command = "cd $(SBS_HOME)/test/smoke_suite/test_resources/pp/ && sbs --command=$(SBS_HOME)/test/smoke_suite/test_resources/pp/ppbldinf_commandfile -c armv5 -c winscw --pp=on --noexport -m ${SBSMAKEFILE} -f - | grep recipe "
       
    26 
       
    27 	mmpcount = 10 # how many mmps in this parallel parsing test
       
    28 
       
    29 	
       
    30 	target_templ = [
       
    31 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test_pp#.exe",
       
    32 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test_pp#.exe.map",
       
    33 		"$(EPOCROOT)/epoc32/release/armv5/urel/test_pp#.exe",
       
    34 		"$(EPOCROOT)/epoc32/release/armv5/urel/test_pp#.exe.map",
       
    35 		"$(EPOCROOT)/epoc32/release/armv5/udeb/test_pp#.exe.sym",
       
    36 		"$(EPOCROOT)/epoc32/release/armv5/urel/test_pp#.exe.sym"
       
    37 	]
       
    38 
       
    39 	targets = []
       
    40 
       
    41 	# Build up target list for 10 similar executables
       
    42 	for num in range(1,mmpcount):
       
    43 		for atarget in target_templ:
       
    44 			targets.append(atarget.replace('pp#','pp'+ str(num)))
       
    45 
       
    46 	mustmatch = [
       
    47 		".*<recipe .*name='makefile_generation.*",
       
    48 	]
       
    49 	mustnotmatch = [
       
    50 		".*<recipe .*name='makefile_generation_export.*",
       
    51 		".*<error[^><]*>.*"
       
    52 	]
       
    53 
       
    54 	warnings = 0
       
    55 		
       
    56 	t.id = "104"
       
    57 	t.name = "parallel_parsing"
       
    58 	t.description = description
       
    59 	t.command = command 
       
    60 	t.targets = targets
       
    61 	t.mustmatch = mustmatch
       
    62 	t.mustnotmatch = mustnotmatch
       
    63 	t.warnings = warnings
       
    64 	t.run()
       
    65 	return t