tsrc/unittestrunner/eunittest_ctc.pl
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
    40 
    40 
    41 $ignoredFileName = "ignored_ctc.txt";
    41 $ignoredFileName = "ignored_ctc.txt";
    42 $ignoredmodeSourceRelative = "1";
    42 $ignoredmodeSourceRelative = "1";
    43 
    43 
    44 $coverageSymbols = "MON.sym";
    44 $coverageSymbols = "MON.sym";
    45 #$ctcCommandPart1 = "ctcwrap -i d -2comp -no-conf-check -n";
    45 $ctcCommandPart1 = "ctcwrap -i d -n";
    46 $ctcCommandPart1 = "ctcwrap -i d -2comp -n";
    46 $ctcCommandPart2 = "abld build winscw udeb";
    47 $ctcCommandPart2 = "sbs.bat -c winscw_udeb";
    47 $ctcCommandPart2Test = "abld test build winscw udeb";
    48 $ctcCommandPart2Test = "sbs -c winscw_udeb.test";
       
    49 $ctcIgnoredPart1 = " -C \"EXCLUDE+";
    48 $ctcIgnoredPart1 = " -C \"EXCLUDE+";
    50 $ctcIgnoredPart2 = "\" ";
    49 $ctcIgnoredPart2 = "\" ";
    51 
    50 
    52 # from command line
    51 # from command line
    53 my ($param_noclean,
    52 my ($param_noclean,
   238 	    		# do cleaning
   237 	    		# do cleaning
   239 		    	unlink("$eunitSrcDllLocation$currentDllNameLine");
   238 		    	unlink("$eunitSrcDllLocation$currentDllNameLine");
   240 		    	unlink("$eunitDstDllLocation$currentDllNameLine");
   239 		    	unlink("$eunitDstDllLocation$currentDllNameLine");
   241 		    	if ($currentBuildModeLine =~ /$eunitTestBuildMode/)
   240 		    	if ($currentBuildModeLine =~ /$eunitTestBuildMode/)
   242 					{
   241 					{
   243 						doSystemCall("sbs -c winscw_udeb.test reallyclean ");
   242 						doSystemCall("abld test reallyclean winscw udeb ");
   244 		    	}
   243 		    	}
   245 		    	else
   244 		    	else
   246 		    	{
   245 		    	{
   247 		    		#doSystemCall("sbs -c winscw_udeb reallyclean ");
   246 		    		doSystemCall("abld reallyclean winscw udeb ");
   248 		    		doSystemCall("sbs REALLYCLEAN ");
       
   249 		    	}
   247 		    	}
   250 	    	}
   248 	    	}
   251 	    	else
   249 	    	else
   252 	    	{
   250 	    	{
   253 	    		print("no_cleanup param defined!\n");
   251 	    		print("no_cleanup param defined!\n");
   267 					print("previous dll was from same path - don't build again!\n");
   265 					print("previous dll was from same path - don't build again!\n");
   268 				}
   266 				}
   269 				else
   267 				else
   270 				{
   268 				{
   271 					print("previous dll was not from same path - build all!\n");
   269 					print("previous dll was not from same path - build all!\n");
       
   270 					doSystemCall("bldmake bldfiles");
   272 					
   271 					
   273 					if ($currentBuildModeLine =~ /$eunitTestBuildMode/)
   272 					if ($currentBuildModeLine =~ /$eunitTestBuildMode/)
   274 				    {
   273 					{
   275                         doSystemCall("sbs -c winscw_udeb.test reallyclean ");
   274 						doSystemCall("abld test reallyclean winscw udeb ");
   276                         doSystemCall("$ctcCommandPart1 $coverageResultsDir$coverageSymbols $excludedCmd $ctcCommandPart2Test");
   275 		    		doSystemCall("$ctcCommandPart1 $coverageResultsDir$coverageSymbols $excludedCmd $ctcCommandPart2Test");
   277 		    	    }
   276 		    	}
   278 		    	else
   277 		    	else
   279 		    	{
   278 		    	{
   280 		    		doSystemCall("sbs REALLYCLEAN ");
   279 		    		doSystemCall("abld reallyclean winscw udeb ");
   281 		    		doSystemCall("$ctcCommandPart1 $coverageResultsDir$coverageSymbols $excludedCmd $ctcCommandPart2");
   280 		    		doSystemCall("$ctcCommandPart1 $coverageResultsDir$coverageSymbols $excludedCmd $ctcCommandPart2");
   282 		    	}
   281 		    	}
   283 				}
   282 				}
   284 		
   283 		
   285 				#copy test dll to correct location
   284 				#copy test dll to correct location