# HG changeset patch # User Iain Williamson # Date 1264513374 0 # Node ID 6080bce951bf5881fd245f61fd2b5d5ade5a862b # Parent 814aa35392ae27eda58625990736b2270eb6c08a# Parent a803b4fa1dd713b6a0786e608de054992a391b94 Merging Bug 1494 fix back in diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/lib/flm/e32abiv2.flm --- a/sbsv2/raptor/lib/flm/e32abiv2.flm Tue Jan 26 13:40:07 2010 +0000 +++ b/sbsv2/raptor/lib/flm/e32abiv2.flm Tue Jan 26 13:42:54 2010 +0000 @@ -697,6 +697,7 @@ # Users can turn TC on by setting it to 1 in user config. ifneq ($(USE_TRACE_COMPILER),) include $(FLMHOME)/tracecompiler.mk + WHATRELEASE:=$(WHATRELEASE) $(TRACE_DICTIONARY) $(AUTOGEN_HEADER) endif CC_CPPONLY_ARGS:=$(SYMBIAN_CCFLAGS) $(if $(DEBUG_INFO),-g) $(DEBUG_FORMAT) \ diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/lib/flm/tracecompiler.mk --- a/sbsv2/raptor/lib/flm/tracecompiler.mk Tue Jan 26 13:40:07 2010 +0000 +++ b/sbsv2/raptor/lib/flm/tracecompiler.mk Tue Jan 26 13:42:54 2010 +0000 @@ -25,6 +25,9 @@ TRACE_PRJNAME:=$(TARGET)_$(TARGETTYPE) endif +TRACE_DICTIONARY:=$(EPOCROOT)/epoc32/ost_dictionaries/$(TRACE_PRJNAME)_0x$(UID_TC)_Dictionary.xml +AUTOGEN_HEADER:=$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/$(TRACE_PRJNAME)_0x$(UID_TC)_TraceDefinitions.h + $(if $(FLMDEBUG),$(info TRACE_PATH = $(TRACE_PATH))) # Run trace compiler only if TRACE_PATH exists diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/lib/flm/win32.flm --- a/sbsv2/raptor/lib/flm/win32.flm Tue Jan 26 13:40:07 2010 +0000 +++ b/sbsv2/raptor/lib/flm/win32.flm Tue Jan 26 13:42:54 2010 +0000 @@ -50,6 +50,7 @@ MAINLINKAS:= NEWLIBFILE:= RELEASABLES:= +TC_RELEASABLES:= STATLIBDIR:= STDCPP_BUILD:= STDCPPTAGFILE:= @@ -204,7 +205,7 @@ # Run trace compiler ##################################### TRACE_MARKER_PATH:=$(OUTPUTPATH) -ifeq ($(UID3),) +ifeq ($(subst 0,,$(UID3)),) ifeq ($(UID2),) USE_TRACE_COMPILER:= else @@ -218,6 +219,7 @@ # Users can turn TC on by setting it to 1 in user config. ifneq ($(USE_TRACE_COMPILER),) include $(FLMHOME)/tracecompiler.mk + TC_RELEASABLES:=$(TRACE_DICTIONARY) $(AUTOGEN_HEADER) endif @@ -688,4 +690,4 @@ # make the output directories while reading makefile - some build engines prefer this $(call makepath,$(CREATABLEPATHS)) # for the --what option and the log file -$(call raptor_release,$(RELEASABLES)) +$(call raptor_release,$(RELEASABLES) $(TC_RELEASABLES)) diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/test/common/raptor_tests.py --- a/sbsv2/raptor/test/common/raptor_tests.py Tue Jan 26 13:40:07 2010 +0000 +++ b/sbsv2/raptor/test/common/raptor_tests.py Tue Jan 26 13:42:54 2010 +0000 @@ -165,8 +165,9 @@ except: print "\nEPOCROOT-CLEAN ERROR:" print (sys.exc_type.__name__ + ":"), \ - sys.exc_value, "\n", \ - traceback.print_tb(sys.exc_traceback) + sys.exc_value + if sys.exc_type.__name__ != "WindowsError": + print traceback.print_tb(sys.exc_traceback) # This loop handles folders for name in dirs: @@ -181,8 +182,9 @@ except: print "\nEPOCROOT-CLEAN ERROR:" print (sys.exc_type.__name__ + ":"), \ - sys.exc_value, "\n", \ - traceback.print_tb(sys.exc_traceback) + sys.exc_value + if sys.exc_type.__name__ != "WindowsError": + print traceback.print_tb(sys.exc_traceback) except IOError,e: print e diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/test/smoke_suite/tracecompiler_general.py --- a/sbsv2/raptor/test/smoke_suite/tracecompiler_general.py Tue Jan 26 13:40:07 2010 +0000 +++ b/sbsv2/raptor/test/smoke_suite/tracecompiler_general.py Tue Jan 26 13:42:54 2010 +0000 @@ -1,3 +1,18 @@ +# +# Copyright (c) 2009-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 from raptor_tests import AntiTargetSmokeTest @@ -199,7 +214,7 @@ failed.append(t.name) - t.name = "traceccompiler_general" + t.name = "tracecompiler_general" t.result = result print "\nOverall Result : " + result.upper() + "\n" diff -r 814aa35392ae -r 6080bce951bf sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py Tue Jan 26 13:42:54 2010 +0000 @@ -0,0 +1,62 @@ +# +# 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 CheckWhatSmokeTest,AntiTargetSmokeTest +import re + +def run(): + t = CheckWhatSmokeTest() + t.description = "Trace Compiler Whatlog test" + t.id = "xxx" + 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}" + t.hostossensitive = False + t.regexlinefilter = re.compile("^<(whatlog|export|build>|resource>|bitmap>)") + 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", + "$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll", + "$(EPOCROOT)/epoc32/release/armv5/urel/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.stdout = [ + "", + "", + "$(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", + "$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll", + "$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map", + "$(EPOCROOT)/epoc32/ost_dictionaries/testTC_0x1000008d_Dictionary.xml", + "$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/testTC_0x1000008d_TraceDefinitions.h" + ] + t.run("windows") + + return t +