sbsv2/raptor/test/smoke_suite/dependencies.py
changeset 713 7b7f0409fc00
parent 674 37ee82a83d43
equal deleted inserted replaced
712:df89378e9223 713:7b7f0409fc00
    42 	windowsTargets = [
    42 	windowsTargets = [
    43 		"$(EPOCROOT)/epoc32/release/tools2/rel/dependency.exe",
    43 		"$(EPOCROOT)/epoc32/release/tools2/rel/dependency.exe",
    44 		"$(EPOCROOT)/epoc32/tools/dependency.exe"
    44 		"$(EPOCROOT)/epoc32/tools/dependency.exe"
    45 	]
    45 	]
    46 	linuxTargets = [
    46 	linuxTargets = [
    47 		"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/dependency",
    47 		"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM32_DIR)/rel/dependency",
    48 		"$(EPOCROOT)/epoc32/tools/dependency"
    48 		"$(EPOCROOT)/epoc32/tools/dependency"
    49 	]
    49 	]
    50 
    50 
    51 	# Set general host platform specifics from first test run, but assume Windows initially
    51 	# Set general host platform specifics from first test run, but assume Windows initially
    52 	hostPlatform = "windows"
    52 	hostPlatform = "windows"
    66 	t.targets = hostPlatformTargets
    66 	t.targets = hostPlatformTargets
    67 	t.run(hostPlatform)
    67 	t.run(hostPlatform)
    68 	if t.result == AntiTargetSmokeTest.SKIP:
    68 	if t.result == AntiTargetSmokeTest.SKIP:
    69 		hostPlatform = "linux"
    69 		hostPlatform = "linux"
    70 		hostPlatformTargets = genericTargets + linuxTargets
    70 		hostPlatformTargets = genericTargets + linuxTargets
    71 		hostPlatformOffset = "$(HOSTPLATFORM_DIR)/"
    71 		hostPlatformOffset = "$(HOSTPLATFORM32_DIR)/"
    72 		t.targets = hostPlatformTargets
    72 		t.targets = hostPlatformTargets
    73 		t.run(hostPlatform)
    73 		t.run(hostPlatform)
    74 	
    74 	
    75 	# Ensure we don't clean up from the previous build in the following two tests
    75 	# Ensure we don't clean up from the previous build in the following two tests
    76 	t.targets = []
    76 	t.targets = []
   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         # use one long bash command so that we can capture 
   130         # use one long bash command so that we can capture 
   131 	# the output in a way that isn't messed up with all the ordering confused.
   131 	# the output in a way that isn't messed up with all the ordering confused.
   132 	t.command = " mkdir -p $(EPOCROOT)/epoc32/build/smoketestlogs ; { sleep 1 ; set -x ; \
   132 	t.command = " echo \"making directory for logfile ${SBSLOGFILE}\" ; mkdir -p `dirname ${SBSLOGFILE} 2>/dev/null` ; { sleep 1 ; set -x ; \
   133 touch smoke_suite/test_resources/dependencies/dependency.cpp; \
   133 touch smoke_suite/test_resources/dependencies/dependency.cpp; \
   134 echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> %s/armv5/urel/dependency.o.d ; \
   134 echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> %s/armv5/urel/dependency.o.d ; \
   135 echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> %s/winscw/urel/dependency.o.d ;\
   135 echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> %s/winscw/urel/dependency.o.d ;\
   136 echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> %s/dependency_exe/tools2/rel/%s/dependency.o.d ;\
   136 echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> %s/dependency_exe/tools2/rel/%s/dependency.o.d ;\
   137 echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> %s/dependency__resource_apps.rsc.d ;\
   137 echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> %s/dependency__resource_apps.rsc.d ;\