sbsv2/raptor/test/smoke_suite/smp.py
author timothy.murphy@nokia.com
Thu, 25 Mar 2010 13:43:28 +0000
branchfix
changeset 408 a819f9223567
parent 3 e1eecf4d390d
permissions -rw-r--r--
fix: stop using "magic" numbers in string operations for the copyannofile2log feature fix: When using the copylogfromannofile workaround, extract the build ID and build duration and add to the log as these are useful for analysis. The log should now be identical to the stdout file. fix: Remove extra blank lines from output in copylogfromannofile mode.

#
# Copyright (c) 2009 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 AntiTargetSmokeTest

def run():
	t = AntiTargetSmokeTest()
	t.id = "61"
	t.name = "smp"
	#
	# the command asks for ARMV5 and ARMV5SMP but the component only builds
	# code for ARMV5SMP according to its bld.inf file. so, check that the
	# ARMV5SMP binaries exist and the ARMV5 ones do not.
	#
	t.command = "sbs -b smoke_suite/test_resources/smp/bld.inf -c armv5 -c " + \
			"armv5.smp"
	t.targets = [
		"$(EPOCROOT)/epoc32/release/armv5smp/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5smp/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/armv5smp/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5smp/urel/test.exe.map"
		]
	t.addbuildtargets('smoke_suite/test_resources/smp/bld.inf', [
		"test_/armv5smp/udeb/test.o",
		"test_/armv5smp/urel/test.o"
	])
	t.antitargets = [
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map"
	]
	t.addbuildantitargets('smoke_suite/test_resources/smp/bld.inf', [
		"test_/armv5/udeb/test.o",
		"test_/armv5/urel/test.o"
		])
	t.run()
	return t