sbsv2/raptor/test/smoke_suite/implib_nodef.py
author Richard Taylor <richard.i.taylor@nokia.com>
Fri, 30 Apr 2010 16:52:27 +0100
branchwip
changeset 506 efe4a967495a
parent 245 cbc11ebd788f
permissions -rw-r--r--
test changes for abiv1 kit property
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
245
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     1
#
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     3
# All rights reserved.
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     4
# This component and the accompanying materials are made available
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     6
# which accompanies this distribution, and is available
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     8
#
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
     9
# Initial Contributors:
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    11
#
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    12
# Contributors:
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    13
#
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    14
# Description: 
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    15
#
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    16
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    17
from raptor_tests import SmokeTest
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    18
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    19
def run():
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    20
	t = SmokeTest()
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    21
	
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    22
	t.id = "71a"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    23
	t.name = "implib_implicit_def"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    24
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    25
			+ " -p implib_implicit_def.mmp"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    26
	t.targets = [
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def.dso",
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/armv5/lib/implib_implicit_def{000a0000}.dso",
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/winscw/udeb/implib_implicit_def.lib"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    30
		]
506
efe4a967495a test changes for abiv1 kit property
Richard Taylor <richard.i.taylor@nokia.com>
parents: 245
diff changeset
    31
	t.run()
245
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    32
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    33
	t.id = "71b"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    34
	t.name = "implib_no_def"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    35
	t.command = "sbs -b smoke_suite/test_resources/simple_implib/nodef/group/bld.inf" \
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    36
			+ " -p implib_no_def.mmp"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    37
	t.targets = []
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    38
	t.mustmatch = [
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    39
		"No DEF File for IMPLIB target type in"	
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    40
		]
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    41
	t.errors = 2 # 1 for winscw and 1 for armv5
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    42
	t.returncode = 1
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    43
	t.run()
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    44
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    45
	t.id = "71"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    46
	t.name = "implib_nodef"
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    47
	t.print_result()
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    48
cbc11ebd788f Bug 1571: Raptor cannot report error or warning message in wrong implib project
yiluzhu
parents:
diff changeset
    49
	return t