sbsv2/raptor/test/smoke_suite/dependencies.py
changeset 625 a1925fb7753a
parent 591 22486c9c7b15
child 674 37ee82a83d43
equal deleted inserted replaced
624:f70b728ea30c 625:a1925fb7753a
    84 	]
    84 	]
    85 	t.countmatch = [
    85 	t.countmatch = [
    86 		[".*recipe name='compile'", 2],
    86 		[".*recipe name='compile'", 2],
    87 		[".*recipe name='win32compile2object'", 2],
    87 		[".*recipe name='win32compile2object'", 2],
    88 		[".*recipe name='compile2object'", 1],
    88 		[".*recipe name='compile2object'", 1],
    89 		[".*recipe name='resourcecompile'", 1]
    89 		[".*recipe name='resourcecompile", 2]
    90 	]
    90 	]
    91 
    91 
    92 	
    92 	
    93 	t.id = "0098b"
    93 	t.id = "0098b"
    94 	t.name ="touched_header_dependencies"
    94 	t.name ="touched_header_dependencies"
   125 
   125 
   126 	t.id = "0098d"
   126 	t.id = "0098d"
   127 	t.name ="invalid_dependency_files"
   127 	t.name ="invalid_dependency_files"
   128 	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
   128 	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
   129 	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
   129 	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
   130 	t.command = """
   130         # use one long bash command so that we can capture 
   131 		sleep 1
   131 	# the output in a way that isn't messed up with all the ordering confused.
   132 		touch smoke_suite/test_resources/dependencies/dependency.cpp
   132 	t.command = " mkdir -p $(EPOCROOT)/epoc32/build/smoketestlogs ; { sleep 1 ; set -x ; \
   133 		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
   133 touch smoke_suite/test_resources/dependencies/dependency.cpp; \
   134 		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
   134 echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> %s/armv5/urel/dependency.o.d ; \
   135 		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
   135 echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> %s/winscw/urel/dependency.o.d ;\
   136 		echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> """+buildLocation+"""/dependency__resource_apps_sc.rpp.d
   136 echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> %s/dependency_exe/tools2/rel/%s/dependency.o.d ;\
   137 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel
   137 echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> %s/dependency__resource_apps.rsc.d ;\
   138 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean
   138 sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel ;\
   139 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
   139 sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean ;\
   140 	t.mustmatch = []
   140 sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel ; } > ${SBSLOGFILE} 2>&1; grep 'missing separator' ${SBSLOGFILE} " %(buildLocation, buildLocation, buildLocation, hostPlatformOffset, buildLocation)
       
   141 	# We expect an error from the first build due to the deliberate dependency file corruption
       
   142 	t.mustmatch = [
       
   143 		".*dependency.o.d:[0-9]+: \*\*\* missing separator"
       
   144 		]
   141 	t.countmatch = []
   145 	t.countmatch = []
   142 	t.warnings = 0
   146 	t.warnings = 0
   143 	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
   147 	t.errors = 0 
   144 	t.targets = hostPlatformTargets
   148 	t.targets = hostPlatformTargets
   145 	t.run(hostPlatform)
   149 	t.run(hostPlatform)
   146 
   150 
   147 
   151 
   148 	t.id = "0098e"
   152 	t.id = "0098e"
   154 		touch smoke_suite/test_resources/dependencies/dependency.cpp
   158 		touch smoke_suite/test_resources/dependencies/dependency.cpp
   155 		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
   159 		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
   156 		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
   160 		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
   157 		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
   161 		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
   158 		sbs --no-depend-include -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
   162 		sbs --no-depend-include -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
       
   163 	t.mustmatch = []
   159 	t.errors = 0		
   164 	t.errors = 0		
   160 	t.targets = hostPlatformTargets
   165 	t.targets = hostPlatformTargets
   161 	t.run(hostPlatform)
   166 	t.run(hostPlatform)
   162 
   167 
   163 
   168