# HG changeset patch # User Iain Williamson # Date 1265133448 0 # Node ID 69334660be7af6492d0131cd588345dc1a5a5c06 # Parent 860699b2b94415011d7ba7ebe4f8edd66a11ba69 Fixing Bug 1569 - excessive recompilation in incremental tracecompiler builds diff -r 860699b2b944 -r 69334660be7a sbsv2/raptor/lib/flm/e32abiv2.flm --- a/sbsv2/raptor/lib/flm/e32abiv2.flm Tue Feb 02 16:08:55 2010 +0000 +++ b/sbsv2/raptor/lib/flm/e32abiv2.flm Tue Feb 02 17:57:28 2010 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of the License "Eclipse Public License v1.0" @@ -757,7 +757,7 @@ $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME))) # $4 is for language specific options (e.g. C++ vs C) -$(1): $(2) $(PROJECT_META) $(if $(MULTIFILE_ENABLED),,$(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT)) $(if $(USE_TRACE_COMPILER),$(TRACE_MARKER),) $(if $(LINKERFEEDBACK_STAGE2),$(FEEDBACKFILE),) +$(1): $(2) $(PROJECT_META) $(if $(MULTIFILE_ENABLED),,$(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT)) $(if $(LINKERFEEDBACK_STAGE2),$(FEEDBACKFILE),) | $(if $(USE_TRACE_COMPILER),$(TRACE_MARKER),) $(call startrule,compile,,$(2)) \ $(if $(PERTURBSTARTTIME), $(RANSLEEP) $(PERTURBMSECS) ;,) \ $(if $(MULTIFILE_ENABLED), echo $(2) $(3) > $(MULTIFILE_VIAFILE) ;,) \ diff -r 860699b2b944 -r 69334660be7a sbsv2/raptor/lib/flm/win32.flm --- a/sbsv2/raptor/lib/flm/win32.flm Tue Feb 02 16:08:55 2010 +0000 +++ b/sbsv2/raptor/lib/flm/win32.flm Tue Feb 02 17:57:28 2010 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of the License "Eclipse Public License v1.0" @@ -375,7 +375,7 @@ $(eval DEPENDFILENAME:=$(call mapwin32file,$(1),.o.d)) $(eval DEPENDFILE:=$(wildcard $(DEPENDFILENAME))) - $(call mapwin32file,$(1),.o): $(1) $(PROJECT_META) $(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT) $(if $(USE_TRACE_COMPILER),$(TRACE_MARKER)) + $(call mapwin32file,$(1),.o): $(1) $(PROJECT_META) $(if $(DEPENDFILE),,RESOURCE BITMAP EXPORT) | $(if $(USE_TRACE_COMPILER),$(TRACE_MARKER)) $(call startrule,win32compile2object,,$(1)) \ $(CC) $$(if $$(filter %.C,$(1)),-lang c) $(CFLAGS) $(OPTION_CW) \ $(if $(STDCPP_BUILD),$$(if $$(filter %.c %.C,$(1)),,$$(call makemacrodef,$(OPT.DEFINE),$(STDCPP_WCHAR_DEF))),) \ diff -r 860699b2b944 -r 69334660be7a sbsv2/raptor/test/smoke_suite/tracecompiler_incremental.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/tracecompiler_incremental.py Tue Feb 02 17:57:28 2010 +0000 @@ -0,0 +1,54 @@ +# +# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +from raptor_tests import SmokeTest + +def run(): + t = SmokeTest() + t.description = "Test incremental rebuilding with TC on" + + t.id = "114a" + t.name = "tracecompiler_incremental_prebuild" + t.usebash = 1 + t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5.tracecompiler.udeb -f - -m ${SBSMAKEFILE}" + t.countmatch = [ ["name='compile'",3] ] + t.targets = [ + "$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso", + "$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso", + "$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.lib", + "$(EPOCROOT)/epoc32/release/armv5/lib/testTC.lib", + "$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll", + "$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map", + "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitTraces.h", + "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitmainTraces.h", + "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitpermparserTraces.h", + "$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/fixed_id.definitions", + "$(EPOCROOT)/epoc32/ost_dictionaries/testTC_0x1000008d_Dictionary.xml", + "$(EPOCROOT)/epoc32/include/internal/symbiantraces/autogen/testTC_0x1000008d_TraceDefinitions.h" + ] + t.run() + + t.id = "114b" + t.name = "tracecompiler_incremental_rebuild" + t.command = "touch smoke_suite/test_resources/tracecompiler/testTC/src/wlanhwinit.cpp && sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5.tracecompiler.udeb -f - -m ${SBSMAKEFILE}" + t.countmatch = [ ["name='compile'",1] ] + t.targets = [] + t.run() + + t.id = "114" + t.name = "tracecompiler_incremental" + return t + diff -r 860699b2b944 -r 69334660be7a sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py --- a/sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py Tue Feb 02 16:08:55 2010 +0000 +++ b/sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py Tue Feb 02 17:57:28 2010 +0000 @@ -14,13 +14,21 @@ # Description: # -from raptor_tests import CheckWhatSmokeTest,AntiTargetSmokeTest +from raptor_tests import CheckWhatSmokeTest,SmokeTest import re def run(): + t = SmokeTest() + t.description = "Trace Compiler Whatlog Clean" + t.id = "112a" + t.name = "tracecompiler_whatlog_clean" + t.usebash = True + t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5.tracecompiler CLEAN" + t.run("windows") + t = CheckWhatSmokeTest() t.description = "Trace Compiler Whatlog test" - t.id = "112" + t.id = "112b" t.name = "tracecompiler_whatlog" t.usebash = True t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}" @@ -57,6 +65,7 @@ "$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/testTC_0x1000008d_TraceDefinitions.h" ] t.run("windows") + t.id = "112" return t