sbsv2/raptor/test/smoke_suite/tools2.py
author kelvzhu
Mon, 18 Oct 2010 16:16:46 +0800
changeset 655 3f65fd25dfd4
parent 641 8dd670a9f34f
child 674 37ee82a83d43
permissions -rw-r--r--
sync up SVN codes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     1
#
641
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
     2
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     3
# All rights reserved.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     8
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     9
# Initial Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    11
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    12
# Contributors:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    13
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    14
# Description: 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    15
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    16
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    17
from raptor_tests import SmokeTest
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    18
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    19
def run():
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    20
	t = SmokeTest()
641
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    21
	
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    22
	t.id = "51a"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    23
	t.name = "tools2_exe_lib"
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	t.command = "sbs -b smoke_suite/test_resources/tools2/bld.inf -c tools2"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
	t.targets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/tools2/deb/libtool_lib1.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/tools2/deb/libtool_lib2.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/tools2/deb/tool_exe.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
		"$(EPOCROOT)/epoc32/release/tools2/rel/libtool_lib1.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/tools2/rel/libtool_lib2.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
		"$(EPOCROOT)/epoc32/release/tools2/rel/tool_exe.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
		"$(EPOCROOT)/epoc32/tools/tool_exe.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
	]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
	t.addbuildtargets("smoke_suite/test_resources/tools2/bld.inf", [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
		"libtool_lib1_a/libtool_lib1_lib/tools2/rel/tool_lib1_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
		"libtool_lib1_a/libtool_lib1_lib/tools2/rel/tool_lib1_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
		"libtool_lib2_a/libtool_lib2_lib/tools2/rel/tool_lib2_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
		"libtool_lib2_a/libtool_lib2_lib/tools2/rel/tool_lib2_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
		"libtool_lib1_a/libtool_lib1_lib/tools2/deb/tool_lib1_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
		"libtool_lib1_a/libtool_lib1_lib/tools2/deb/tool_lib1_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
		"libtool_lib2_a/libtool_lib2_lib/tools2/deb/tool_lib2_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
		"libtool_lib2_a/libtool_lib2_lib/tools2/deb/tool_lib2_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
		"tool_exe_exe/tool_exe_exe/tools2/rel/tool_exe_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
		"tool_exe_exe/tool_exe_exe/tools2/rel/tool_exe_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
		"tool_exe_exe/tool_exe_exe/tools2/deb/tool_exe_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
		"tool_exe_exe/tool_exe_exe/tools2/deb/tool_exe_a.o"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
		])
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
			
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
	t.run("windows") # tools2 output is platform dependent
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
	if t.result == SmokeTest.SKIP:
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
		t.targets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/tool_exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    55
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/libtool_lib1.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    56
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/deb/libtool_lib2.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    57
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/tool_exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    58
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/libtool_lib1.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    59
			"$(EPOCROOT)/epoc32/release/tools2/$(HOSTPLATFORM_DIR)/rel/libtool_lib2.a",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    60
			"$(EPOCROOT)/epoc32/tools/tool_exe"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    61
		]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    62
		t.addbuildtargets("smoke_suite/test_resources/tools2/bld.inf", [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    63
			"libtool_lib1_a/libtool_lib1_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib1_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    64
			"libtool_lib1_a/libtool_lib1_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib1_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    65
			"libtool_lib2_a/libtool_lib2_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib2_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    66
			"libtool_lib2_a/libtool_lib2_lib/tools2/rel/$(HOSTPLATFORM_DIR)/tool_lib2_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    67
			"libtool_lib1_a/libtool_lib1_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib1_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    68
			"libtool_lib1_a/libtool_lib1_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib1_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    69
			"libtool_lib2_a/libtool_lib2_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib2_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    70
			"libtool_lib2_a/libtool_lib2_lib/tools2/deb/$(HOSTPLATFORM_DIR)/tool_lib2_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    71
			"tool_exe_exe/tool_exe_exe/tools2/rel/$(HOSTPLATFORM_DIR)/tool_exe_a.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    72
			"tool_exe_exe/tool_exe_exe/tools2/rel/$(HOSTPLATFORM_DIR)/tool_exe_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    73
			"tool_exe_exe/tool_exe_exe/tools2/deb/$(HOSTPLATFORM_DIR)/tool_exe_b.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    74
			"tool_exe_exe/tool_exe_exe/tools2/deb/$(HOSTPLATFORM_DIR)/tool_exe_a.o"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    75
			])
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    76
		t.run("linux") # tools2 output is platform dependent
641
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    77
	
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    78
	t.id = "51b"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    79
	t.name = "tools2_nohrh"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    80
	t.usebash = True
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    81
	t.command = "sbs -b smoke_suite/test_resources/tools2/bootstrap.inf -c tools2.nohrh -f -"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    82
	t.targets = ["$(EPOCROOT)/epoc32/include/bootstrap_header_abc.h"]
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    83
	t.mustmatch_singleline = ["empty\.hrh"]
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    84
	t.mustnotmatch_singleline = ["Symbian_OS.hrh",
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    85
								 "symbian_os.hrh",
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    86
								 "feature_settings.hrh"]
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    87
	t.run()
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    88
	
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    89
	t.id = "51"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    90
	t.name = "tools2"
8dd670a9f34f sbs version 2.15.2
Jon Chatten
parents: 591
diff changeset
    91
	t.print_result()
591
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    92
	return t