sbsv2/raptor/test/smoke_suite/tracecompiler_whatlog.py
author Iain Williamson <iain.williamson@nokia.com>
Tue, 19 Jan 2010 18:53:34 +0000
branchfix
changeset 163 c3eca3dd5925
child 167 e400eed89539
permissions -rw-r--r--
Fixing bug 1494 (tracecompiler whatlog) properly this time
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
163
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     1
#
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     3
# All rights reserved.
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     4
# This component and the accompanying materials are made available
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     6
# which accompanies this distribution, and is available
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     8
#
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
     9
# Initial Contributors:
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    11
#
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    12
# Contributors:
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    13
#
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    14
# Description: 
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    15
#
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    16
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    17
from raptor_tests import CheckWhatSmokeTest,AntiTargetSmokeTest
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    18
import re
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    19
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    20
def run():
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    21
	t = CheckWhatSmokeTest()
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    22
	t.description = "Trace Compiler Whatlog test"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    23
	t.id = "xxx"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    24
	t.name = "tracecompiler_whatlog"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    25
	t.usebash = True
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    26
	t.command = "sbs -b smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf -c armv5.tracecompiler -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE}"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    27
	t.hostossensitive = False
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    28
	t.regexlinefilter = re.compile("^<(whatlog|export|build>|resource>|bitmap>)")
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    29
	t.targets = [
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    30
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.lib",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/release/armv5/lib/testTC.lib",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    34
		"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    35
		"$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    36
		"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    37
		"$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    38
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitTraces.h",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    39
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitmainTraces.h",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    40
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/wlanhwinitpermparserTraces.h",	
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    41
		"$(SBS_HOME)/test/smoke_suite/test_resources/tracecompiler/testTC/traces/fixed_id.definitions",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    42
		"$(EPOCROOT)/epoc32/ost_dictionaries/testTC_0x1000008d_Dictionary.xml",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    43
		"$(EPOCROOT)/epoc32/include/internal/symbiantraces/autogen/testTC_0x1000008d_TraceDefinitions.h"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    44
		]
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    45
	t.stdout = [
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    46
		"<whatlog bldinf='I:/team/sbsv2/raptor/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf' mmp='I:/team/sbsv2/raptor/test/smoke_suite/test_resources/tracecompiler/testTC/group/testTC.mmp' config='armv5_urel.tracecompiler'>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    47
		"<whatlog bldinf='I:/team/sbsv2/raptor/test/smoke_suite/test_resources/tracecompiler/testTC/group/bld.inf' mmp='I:/team/sbsv2/raptor/test/smoke_suite/test_resources/tracecompiler/testTC/group/testTC.mmp' config='armv5_udeb.tracecompiler'>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    48
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC.dso</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    49
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.dso</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    50
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC{000a0000}.lib</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    51
		"<build>$(EPOCROOT)/epoc32/release/armv5/lib/testTC.lib</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    52
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    53
		"<build>$(EPOCROOT)/epoc32/release/armv5/udeb/testTC.dll.map</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    54
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    55
		"<build>$(EPOCROOT)/epoc32/release/armv5/urel/testTC.dll.map</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    56
		"<build>$(EPOCROOT)/epoc32/ost_dictionaries/testTC_0x1000008d_Dictionary.xml</build>",
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    57
		"<build>$(EPOCROOT)/epoc32/include/internal/SymbianTraces/autogen/testTC_0x1000008d_TraceDefinitions.h</build>"
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    58
		]		
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    59
	t.run("windows")
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    60
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    61
	return t
c3eca3dd5925 Fixing bug 1494 (tracecompiler whatlog) properly this time
Iain Williamson <iain.williamson@nokia.com>
parents:
diff changeset
    62