sbsv2/raptor/test/smoke_suite/dependencies.py
branchfix
changeset 219 c3543adfd26e
parent 218 08ca0919c66d
child 221 8653efb0b76b
equal deleted inserted replaced
218:08ca0919c66d 219:c3543adfd26e
    92 		cp smoke_suite/test_resources/dependencies/src/dependency2.rss smoke_suite/test_resources/dependencies/dependency.rss
    92 		cp smoke_suite/test_resources/dependencies/src/dependency2.rss smoke_suite/test_resources/dependencies/dependency.rss
    93 		rm -rf $(EPOCROOT)/epoc32/include/dependency.h
    93 		rm -rf $(EPOCROOT)/epoc32/include/dependency.h
    94 		rm -rf $(EPOCROOT)/epoc32/include/dependency.rh
    94 		rm -rf $(EPOCROOT)/epoc32/include/dependency.rh
    95 		sbs -f- --noexport -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
    95 		sbs -f- --noexport -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
    96 	t.mustnotmatch = []
    96 	t.mustnotmatch = []
       
    97 	# Note that the resource build does not exhibit a missing dependency as its dependency files are generated in a separate stage where
       
    98 	# the target file isn't actually a target of that stage
    97 	t.mustmatch.extend([
    99 	t.mustmatch.extend([
    98 		"<warning>Missing dependency detected: $(EPOCROOT)/epoc32/include/dependency.h</warning>",
   100 		"<warning>Missing dependency detected: .*/epoc32/include/dependency.h</warning>"
    99 		"<warning>Missing dependency detected: $(EPOCROOT)/epoc32/include/dependency.rh</warning>",		
       
   100 		])
   101 		])
       
   102 	t.warnings = 1
   101 	t.run()
   103 	t.run()
   102 	
   104 	
   103 	t.id = "0098d"
   105 	t.id = "0098d"
   104 	t.name ="invalid_dependency_files"
   106 	t.name ="invalid_dependency_files"
   105 	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
   107 	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
   115 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean
   117 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean
   116 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
   118 		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
   117 	t.targets = targets
   119 	t.targets = targets
   118 	t.mustmatch = []
   120 	t.mustmatch = []
   119 	t.countmatch = []
   121 	t.countmatch = []
       
   122 	t.warnings = 0
   120 	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
   123 	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
   121 	t.run()
   124 	t.run()
   122 
   125 
   123 	t.errors = 0
   126 	t.errors = 0
   124 
   127