sbsv2/raptor/test/smoke_suite/dll_armv6.py
author timothy.murphy@nokia.com
Tue, 02 Mar 2010 09:17:29 +0000
changeset 297 7029b5be2b15
parent 25 2b76b04e296d
permissions -rw-r--r--
SF Bug 2113 - make test actually test so that it would actually fail if the output was wrong.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     1
#
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     2
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     3
# All rights reserved.
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     4
# This component and the accompanying materials are made available
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     6
# which accompanies this distribution, and is available
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     8
#
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
     9
# Initial Contributors:
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    11
#
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    12
# Contributors:
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    13
#
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    14
# Description: 
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    15
#
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    16
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    17
from raptor_tests import AntiTargetSmokeTest
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    18
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    19
def run():
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    20
	t = AntiTargetSmokeTest()
22
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    21
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    22
	rootcommand = "sbs -b smoke_suite/test_resources/simple_dll/bld.inf"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    23
	targets = [
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    24
		"$(EPOCROOT)/epoc32/release/armv6/udeb/createstaticdll.dll.sym",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    25
		"$(EPOCROOT)/epoc32/release/armv6/urel/createstaticdll.dll.sym",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    26
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.dso",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.dso",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/armv6/udeb/createstaticdll.dll",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/armv6/urel/createstaticdll.dll"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    30
		]
22
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    31
	antitargets = [
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll.lib",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/release/armv5/lib/createstaticdll{000a0000}.lib"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    34
		]
22
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    35
	buildtargets = [
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    36
		"createstaticdll_dll/armv6/udeb/CreateStaticDLL.o",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    37
		"createstaticdll_dll/armv6/urel/CreateStaticDLL.o",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    38
		"createstaticdll_dll/armv6/udeb/armv6_specific.o",
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    39
		"createstaticdll_dll/armv6/urel/armv6_specific.o"
22
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    40
	]
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    41
	
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    42
	t.id = "0097a"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    43
	t.name = "dll_armv6_rvct"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    44
	t.command = rootcommand + " -c armv6"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    45
	t.targets = targets
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    46
	t.antitargets = antitargets
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    47
	t.addbuildtargets("smoke_suite/test_resources/simple_dll/bld.inf", buildtargets)
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    48
	t.run()
22
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    49
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    50
	t.id = "0097b"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    51
	t.name = "dll_armv6_clean"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    52
	t.command = rootcommand + " -c armv6 clean"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    53
	t.targets = []
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    54
	t.antitargets = []
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    55
	t.run()
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    56
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    57
	t.id = "0097c"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    58
	t.name = "dll_armv6_gcce"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    59
	t.command = rootcommand + " -c arm.v6.udeb.gcce4_3_2 -c arm.v6.urel.gcce4_3_2"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    60
	t.targets = targets
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    61
	t.antitargets = antitargets
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    62
	t.addbuildtargets("smoke_suite/test_resources/simple_dll/bld.inf", buildtargets)
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    63
	t.run()
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    64
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    65
	t.id = "97"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    66
	t.name = "dll_armv6"
072f869b0bc5 Catch up to wip branch
timothy.murphy@nokia.com
parents: 3
diff changeset
    67
	t.print_result()
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    68
	return t