sbsv2/raptor/test/smoke_suite/dependencies.py
author Richard Taylor <richard.i.taylor@nokia.com>
Wed, 14 Jul 2010 14:50:01 +0100
changeset 616 24e4ef208cca
parent 591 22486c9c7b15
child 625 a1925fb7753a
permissions -rw-r--r--
sbs version 2.14.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
# Description: 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
from raptor_tests import AntiTargetSmokeTest
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
from raptor_meta import BldInfFile
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
import os
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
def run():
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
	t = AntiTargetSmokeTest()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
	t.usebash = True
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
	genericTargets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
		"$(EPOCROOT)/epoc32/release/armv5/udeb/dependency.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/armv5/udeb/dependency.exe.map",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/armv5/urel/dependency.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/armv5/urel/dependency.exe.map",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
		"$(EPOCROOT)/epoc32/release/winscw/urel/dependency.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/winscw/urel/dependency.exe.map",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/winscw/udeb/dependency.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/include/dependency.rsg",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
		"$(EPOCROOT)/epoc32/data/z/resource/apps/dependency.rsc",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/dependency.rsc",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/dependency.rsc",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
		"$(EPOCROOT)/epoc32/include/main.rsg",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
		"$(EPOCROOT)/epoc32/data/z/resource/apps/main.rsc",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/main.rsc",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/main.rsc"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
		]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
	windowsTargets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
		"$(EPOCROOT)/epoc32/release/tools2/rel/dependency.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
		"$(EPOCROOT)/epoc32/tools/dependency.exe"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
	linuxTargets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
		"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/dependency",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
		"$(EPOCROOT)/epoc32/tools/dependency"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
	# Set general host platform specifics from first test run, but assume Windows initially
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
	hostPlatform = "windows"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
	hostPlatformTargets = genericTargets + windowsTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
	hostPlatformOffset = ""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    55
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    56
	t.id = "0098a"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    57
	t.name = "baseline_build"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    58
	t.description = "Build a component with source and resource files that are dependent on header files exported in the build"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    59
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    60
		cp smoke_suite/test_resources/dependencies/src/dependency1.cpp smoke_suite/test_resources/dependencies/dependency.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    61
		cp smoke_suite/test_resources/dependencies/src/dependency1.rss smoke_suite/test_resources/dependencies/dependency.rss
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    62
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    63
	t.mustnotmatch = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    64
		"<warning>Missing dependency detected: .*</warning>"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    65
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    66
	t.targets = hostPlatformTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    67
	t.run(hostPlatform)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    68
	if t.result == AntiTargetSmokeTest.SKIP:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    69
		hostPlatform = "linux"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    70
		hostPlatformTargets = genericTargets + linuxTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    71
		hostPlatformOffset = "$(HOSTPLATFORM_DIR)/"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    72
		t.targets = hostPlatformTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    73
		t.run(hostPlatform)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    74
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    75
	# Ensure we don't clean up from the previous build in the following two tests
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    76
	t.targets = []
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    77
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    78
	# Core expected outcome for the following two tests
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    79
	t.mustmatch = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    80
		".*recipe name='compile' target='.*dependency\.o'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    81
		".*recipe name='win32compile2object' target='.*dependency\.o'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    82
		".*recipe name='compile2object' target='.*dependency\.o'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    83
		".*recipe name='resourcecompile' target='.*dependency\.rsc'"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    84
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    85
	t.countmatch = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    86
		[".*recipe name='compile'", 2],
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    87
		[".*recipe name='win32compile2object'", 2],
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    88
		[".*recipe name='compile2object'", 1],
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    89
		[".*recipe name='resourcecompile'", 1]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    90
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    91
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    92
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    93
	t.id = "0098b"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    94
	t.name ="touched_header_dependencies"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    95
	t.description = "Touch the exported header files and check that only the related source and resource files are re-built"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    96
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    97
		sleep 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    98
		touch $(EPOCROOT)/epoc32/include/dependency.h
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    99
		touch $(EPOCROOT)/epoc32/include/dependency.rh
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   100
		sbs -f- -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   101
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   102
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   103
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   104
	t.id = "0098c"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   105
	t.name ="redundant_header_dependencies"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   106
	t.description = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   107
		Build the component again, but manipulate it so that (a) it no longer has a dependency on the exported header files and
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   108
		(b) the header files have been removed and (c) the header files are no longer exported.  Check that only the related source
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   109
		and resource files are re-built"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   110
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   111
		cp smoke_suite/test_resources/dependencies/src/dependency2.cpp smoke_suite/test_resources/dependencies/dependency.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   112
		cp smoke_suite/test_resources/dependencies/src/dependency2.rss smoke_suite/test_resources/dependencies/dependency.rss
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   113
		rm -rf $(EPOCROOT)/epoc32/include/dependency.h
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   114
		rm -rf $(EPOCROOT)/epoc32/include/dependency.rh
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   115
		sbs -f- --noexport -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   116
	t.mustnotmatch = []
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   117
	# Note that the resource build does not exhibit a missing dependency as its dependency files are generated in a separate stage where
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   118
	# the target file isn't actually a target of that stage
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   119
	t.mustmatch.extend([
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   120
		"<warning>Missing dependency detected: .*/epoc32/include/dependency.h</warning>"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   121
		])
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   122
	t.warnings = 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   123
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   124
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   125
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   126
	t.id = "0098d"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   127
	t.name ="invalid_dependency_files"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   128
	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   129
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   130
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   131
		sleep 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   132
		touch smoke_suite/test_resources/dependencies/dependency.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   133
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   134
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   135
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   136
		echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> """+buildLocation+"""/dependency__resource_apps_sc.rpp.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   137
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   138
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   139
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   140
	t.mustmatch = []
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   141
	t.countmatch = []
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   142
	t.warnings = 0
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   143
	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   144
	t.targets = hostPlatformTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   145
	t.run(hostPlatform)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   146
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   147
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   148
	t.id = "0098e"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   149
	t.name ="no_depend_include"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   150
	t.description = "Invalidate dependency files in order to confirm they aren't processed when --no-depend-include is used"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   151
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   152
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   153
		sleep 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   154
		touch smoke_suite/test_resources/dependencies/dependency.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   155
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   156
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   157
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   158
		sbs --no-depend-include -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   159
	t.errors = 0		
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   160
	t.targets = hostPlatformTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   161
	t.run(hostPlatform)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   162
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   163
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   164
	t.id = "0098f"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   165
	t.name ="no_depend_generate"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   166
	t.description = "Invalidate and remove dependency files in order to confirm they are neither included nor re-generated when --no-depend-generate is used"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   167
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   168
	t.command = """
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   169
		sleep 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   170
		touch smoke_suite/test_resources/dependencies/dependency.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   171
		touch smoke_suite/test_resources/dependencies/main.cpp
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   172
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   173
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   174
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/"""+hostPlatformOffset+"""dependency.o.d
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   175
		sbs --no-depend-generate -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   176
	t.antitargets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   177
		buildLocation+"/armv5/urel/main.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   178
		buildLocation+"/armv5/udeb/main.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   179
		buildLocation+"/winscw/urel/main.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   180
		buildLocation+"/winscw/udeb/main.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   181
		buildLocation+"/dependency_exe/tools2/rel/"+hostPlatformOffset+"main.o.d"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   182
		]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   183
	t.targets = hostPlatformTargets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   184
	t.run(hostPlatform)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   185
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   186
	# clean-up
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   187
	os.remove("smoke_suite/test_resources/dependencies/dependency.cpp")
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   188
	os.remove("smoke_suite/test_resources/dependencies/dependency.rss")
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   189
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   190
	t.id = "98"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   191
	t.name = "dependencies"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   192
	t.print_result()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   193
	return t
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   194