sbsv2/raptor/test/smoke_suite/dependencies.py
author Jon Chatten
Mon, 01 Feb 2010 15:30:46 +0000
branchfix
changeset 220 f7d68ecb923e
parent 219 c3543adfd26e
child 221 8653efb0b76b
permissions -rw-r--r--
Add support for NO_DEPEND_GENERATE to makefile calls and respond accordingly in FLMs. Remove remaining bits of the old (and redundant) DEPEND_SKIP variant from interfaces and FLMs. Correct CLI option storage.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
218
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     1
#
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     3
# All rights reserved.
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     4
# This component and the accompanying materials are made available
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     6
# which accompanies this distribution, and is available
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     8
#
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
     9
# Initial Contributors:
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    11
#
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    12
# Contributors:
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    13
#
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    14
# Description: 
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    15
#
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    16
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    17
from raptor_tests import AntiTargetSmokeTest
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    18
from raptor_meta import BldInfFile
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    19
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    20
def run():
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    21
	t = AntiTargetSmokeTest()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    22
	t.usebash = True
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    23
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    24
	targets = [
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    25
		"$(EPOCROOT)/epoc32/release/armv5/udeb/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    26
		"$(EPOCROOT)/epoc32/release/armv5/udeb/dependency.exe.map",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/armv5/urel/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/armv5/urel/dependency.exe.map",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/winscw/urel/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    30
		"$(EPOCROOT)/epoc32/release/winscw/urel/dependency.exe.map",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/winscw/udeb/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/tools2/rel/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/tools/dependency.exe",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    34
		"$(EPOCROOT)/epoc32/include/dependency.rsg",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    35
		"$(EPOCROOT)/epoc32/data/z/resource/apps/dependency.rsc",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    36
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/dependency.rsc",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    37
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/dependency.rsc",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    38
		"$(EPOCROOT)/epoc32/include/main.rsg",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    39
		"$(EPOCROOT)/epoc32/data/z/resource/apps/main.rsc",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    40
		"$(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/apps/main.rsc",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    41
		"$(EPOCROOT)/epoc32/release/winscw/urel/z/resource/apps/main.rsc"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    42
		]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    43
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    44
	t.id = "0098a"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    45
	t.name = "baseline_build"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    46
	t.description = "Build a component with source and resource files that are dependent on header files exported in the build"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    47
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    48
		cp smoke_suite/test_resources/dependencies/src/dependency1.cpp smoke_suite/test_resources/dependencies/dependency.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    49
		cp smoke_suite/test_resources/dependencies/src/dependency1.rss smoke_suite/test_resources/dependencies/dependency.rss
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    50
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    51
	t.targets = targets
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    52
	t.mustnotmatch = [
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    53
		"<warning>Missing dependency detected: .*</warning>"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    54
	]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    55
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    56
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    57
	# Ensure we don't clean up from the previous build in the following two tests
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    58
	t.targets = []
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    59
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    60
	# Core expected outcome for the following two tests
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    61
	t.mustmatch = [
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    62
		".*recipe name='compile' target='.*dependency\.o'",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    63
		".*recipe name='win32compile2object' target='.*dependency\.o'",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    64
		".*recipe name='compile2object' target='.*dependency\.o'",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    65
		".*recipe name='resourcecompile' target='.*dependency\.rsc'"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    66
	]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    67
	t.countmatch = [
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    68
		[".*recipe name='compile'", 2],
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    69
		[".*recipe name='win32compile2object'", 2],
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    70
		[".*recipe name='compile2object'", 1],
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    71
		[".*recipe name='resourcecompile'", 1]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    72
	]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    73
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    74
	t.id = "0098b"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    75
	t.name ="touched_header_dependencies"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    76
	t.description = "Touch the exported header files and check that only the related source and resource files are re-built"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    77
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    78
		sleep 1
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    79
		touch $(EPOCROOT)/epoc32/include/dependency.h
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    80
		touch $(EPOCROOT)/epoc32/include/dependency.rh
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    81
		sbs -f- -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    82
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    83
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    84
	t.id = "0098c"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    85
	t.name ="redundant_header_dependencies"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    86
	t.description = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    87
		Build the component again, but manipulate it so that (a) it no longer has a dependency on the exported header files and
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    88
		(b) the header files have been removed and (c) the header files are no longer exported.  Check that only the related source
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    89
		and resource files are re-built"""
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    90
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    91
		cp smoke_suite/test_resources/dependencies/src/dependency2.cpp smoke_suite/test_resources/dependencies/dependency.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    92
		cp smoke_suite/test_resources/dependencies/src/dependency2.rss smoke_suite/test_resources/dependencies/dependency.rss
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    93
		rm -rf $(EPOCROOT)/epoc32/include/dependency.h
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    94
		rm -rf $(EPOCROOT)/epoc32/include/dependency.rh
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    95
		sbs -f- --noexport -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    96
	t.mustnotmatch = []
219
c3543adfd26e Add --no-depend-generate to the front-end CLI.
Jon Chatten
parents: 218
diff changeset
    97
	# Note that the resource build does not exhibit a missing dependency as its dependency files are generated in a separate stage where
c3543adfd26e Add --no-depend-generate to the front-end CLI.
Jon Chatten
parents: 218
diff changeset
    98
	# the target file isn't actually a target of that stage
218
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
    99
	t.mustmatch.extend([
219
c3543adfd26e Add --no-depend-generate to the front-end CLI.
Jon Chatten
parents: 218
diff changeset
   100
		"<warning>Missing dependency detected: .*/epoc32/include/dependency.h</warning>"
218
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   101
		])
219
c3543adfd26e Add --no-depend-generate to the front-end CLI.
Jon Chatten
parents: 218
diff changeset
   102
	t.warnings = 1
218
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   103
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   104
	
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   105
	t.id = "0098d"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   106
	t.name ="invalid_dependency_files"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   107
	t.description = "Invalidate dependency files, then make sure we can clean and re-build successfully"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   108
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   109
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   110
		sleep 1
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   111
		touch smoke_suite/test_resources/dependencies/dependency.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   112
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   113
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   114
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   115
		echo INVALIDATE_RESOURCE_DEPENDENCY_FILE >> """+buildLocation+"""/dependency__resource_apps_sc.rpp.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   116
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   117
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel clean
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   118
		sbs -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   119
	t.targets = targets
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   120
	t.mustmatch = []
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   121
	t.countmatch = []
219
c3543adfd26e Add --no-depend-generate to the front-end CLI.
Jon Chatten
parents: 218
diff changeset
   122
	t.warnings = 0
218
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   123
	t.errors = 1 # We expect an error from the first build due to the deliberate dependency file corruption
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   124
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   125
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   126
	t.errors = 0
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   127
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   128
	t.id = "0098e"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   129
	t.name ="no_depend_include"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   130
	t.description = "Invalidate dependency files in order to confirm they aren't processed when --no-depend-include is used"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   131
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   132
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   133
		sleep 1
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   134
		touch smoke_suite/test_resources/dependencies/dependency.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   135
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   136
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   137
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   138
		sbs --no-depend-include -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   139
	t.targets = targets
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   140
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   141
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   142
	t.id = "0098f"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   143
	t.name ="no_depend_generate"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   144
	t.description = "Invalidate and remove dependency files in order to confirm they are neither included nor re-generated when --no-depend-generate is used"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   145
	buildLocation = "$(EPOCROOT)/epoc32/build/" + BldInfFile.outputPathFragment('smoke_suite/test_resources/dependencies/bld.inf') + "/dependency_"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   146
	t.command = """
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   147
		sleep 1
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   148
		touch smoke_suite/test_resources/dependencies/dependency.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   149
		touch smoke_suite/test_resources/dependencies/main.cpp
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   150
		echo INVALIDATE_ARMV5_DEPENDENCY_FILE >> """+buildLocation+"""/armv5/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   151
		echo INVALIDATE_WINSCW_DEPENDENCY_FILE >> """+buildLocation+"""/winscw/urel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   152
		echo INVALIDATE_TOOLS2_DEPENDENCY_FILE >> """+buildLocation+"""/dependency_exe/tools2/rel/dependency.o.d
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   153
		sbs --no-depend-generate -b smoke_suite/test_resources/dependencies/bld.inf -c default -c tools2_rel"""		
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   154
	t.targets = targets
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   155
	t.antitargets = [
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   156
		buildLocation+"/armv5/urel/main.o.d",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   157
		buildLocation+"/armv5/udeb/main.o.d",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   158
		buildLocation+"/winscw/urel/main.o.d",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   159
		buildLocation+"/winscw/udeb/main.o.d",
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   160
		buildLocation+"/dependency_exe/tools2/rel/main.o.d"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   161
		]
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   162
	t.run()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   163
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   164
	t.id = "98"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   165
	t.name = "dependencies"
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   166
	t.print_result()
08ca0919c66d First draft tests covering new dependency functionality.
Jon Chatten
parents:
diff changeset
   167
	return t