# HG changeset patch # User Richard Taylor # Date 1264413377 0 # Node ID e65788ec4aa96747876cb6146b29df0bd5baed70 # Parent 608cc482dea8929fc39fa40724f161e609c4f352# Parent dbb43cb033574c2f04bf3aa4b1031eb28dc9eb5e merge from fix diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/RELEASE-NOTES.txt --- a/sbsv2/raptor/RELEASE-NOTES.txt Mon Jan 25 09:50:36 2010 +0000 +++ b/sbsv2/raptor/RELEASE-NOTES.txt Mon Jan 25 09:56:17 2010 +0000 @@ -49,6 +49,7 @@ The output is in CSV format. Defect Fixes: +- fix for ARM9E + ARMV5 pre-processing confusion - SF bug 1570: Adding then removing a capability can produce incorrect result: e.g. ALL TCB -TCB becomes ALL -TCB but it should be just ALL diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/bin/sbs.bat --- a/sbsv2/raptor/bin/sbs.bat Mon Jan 25 09:50:36 2010 +0000 +++ b/sbsv2/raptor/bin/sbs.bat Mon Jan 25 09:56:17 2010 +0000 @@ -23,9 +23,9 @@ @IF NOT "%SBS_HOME%"=="" goto foundhome @SET RAPTORBINDIR=%~dp0 @SET WD=%cd% -@cd %RAPTORBINDIR%\.. +@cd /d %RAPTORBINDIR%\.. @SET SBS_HOME=%cd% -@cd %WD% +@cd /d %WD% :foundhome @REM Use the python set by the environment if possible diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/python/raptor_meta.py diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/test/smoke_suite/exe_checksource.py --- a/sbsv2/raptor/test/smoke_suite/exe_checksource.py Mon Jan 25 09:50:36 2010 +0000 +++ b/sbsv2/raptor/test/smoke_suite/exe_checksource.py Mon Jan 25 09:56:17 2010 +0000 @@ -33,9 +33,8 @@ cmd3 = "grep -i '.*checksource errors found.*' ${SBSLOGFILE}" t.command = cmd1 + " && " + cmd2 + " && " + cmd3 - t.mustmatch = [ - ".* 5 checksource errors found.*" - ] + t.mustmatch_singleline = ["[1-9] checksource errors found"] + t.returncode = 1 t.run("windows") return t diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/bld.inf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/bld.inf Mon Jan 25 09:56:17 2010 +0000 @@ -0,0 +1,43 @@ +/* +* 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: +* +*/ + +PRJ_PLATFORMS +armv5 armv6 armv7 + +PRJ_EXPORTS +variantplatforms.flm /epoc32/tools/makefile_templates/tools/variantplatforms.flm +variantplatforms.xml /epoc32/tools/makefile_templates/tools/variantplatforms.xml + +/* + set the FLM parameter based on the pre-processing macros, so that we can + test that this bld.inf is actually processed for each of the platforms + that we expect - including ones that are extensions of ARMV5 (eg. ARM9E) +*/ +#if defined(ARM9E) +#define PARAMETER arm9e +#elif defined(ARMV7) +#define PARAMETER armv7 +#elif defined(ARMV6) +#define PARAMETER armv6 +#else +#define PARAMETER armv5 +#endif + +PRJ_EXTENSIONS +start extension tools/variantplatforms +option VP PARAMETER +end diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/variantplatforms.flm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/variantplatforms.flm Mon Jan 25 09:56:17 2010 +0000 @@ -0,0 +1,2 @@ + +$(call raptor_phony_recipe,name,ALL,,echo "building variant platform $(VP)") diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/variantplatforms.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/test_resources/variantplatforms/variantplatforms.xml Mon Jan 25 09:56:17 2010 +0000 @@ -0,0 +1,8 @@ + + + + + + + + diff -r 608cc482dea8 -r e65788ec4aa9 sbsv2/raptor/test/smoke_suite/variantplatforms.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv2/raptor/test/smoke_suite/variantplatforms.py Mon Jan 25 09:56:17 2010 +0000 @@ -0,0 +1,38 @@ +# +# 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.id = "300" + t.name = "variantplatforms" + t.description = "Can all the variant platforms be built at the same time." + + variantplatforms = ["armv5", "armv6", "armv7", "arm9e"] + + t.usebash = True + t.command = "sbs -b smoke_suite/test_resources/variantplatforms/bld.inf -f-" + t.mustmatch_singleline = [] + + for vp in variantplatforms: + t.command += " -c " + vp + t.mustmatch_singleline.append("building variant platform " + vp) + + t.run() + + t.print_result() + return t