sbsv2/raptor/test/smoke_suite/keepgoing.py
author kelvzhu
Mon, 18 Oct 2010 16:16:46 +0800
changeset 655 3f65fd25dfd4
parent 591 22486c9c7b15
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
#
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
     2
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
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()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
	t.description = """Raptor should keep going and build as much as possible with the -k option specified."""
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
	command = "sbs -b smoke_suite/test_resources/simple/bld.inf -k"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	config = " --configpath=test/smoke_suite/test_resources/keepgoing"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
	targets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
		"$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.sym",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
		"$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.sym"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
		]	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
	buildtargets = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
		"test_/armv5/udeb/test.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
		"test_/armv5/urel/test.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
		"test_/armv5/udeb/test.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
		"test_/armv5/udeb/test3.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
		"test_/armv5/udeb/test4.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
		"test_/armv5/udeb/test5.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
		"test_/armv5/udeb/test1.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
		"test_/armv5/udeb/test6.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
		"test_/armv5/udeb/test2.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
		"test_/armv5/udeb/test3.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
		"test_/armv5/udeb/test4.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
		"test_/armv5/udeb/test5.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
		"test_/armv5/udeb/test1.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
		"test_/armv5/udeb/test6.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
		"test_/armv5/udeb/test2.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
		"test_/armv5/urel/test.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
		"test_/armv5/urel/test3.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
		"test_/armv5/urel/test4.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
		"test_/armv5/urel/test5.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
		"test_/armv5/urel/test1.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
		"test_/armv5/urel/test6.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    55
		"test_/armv5/urel/test2.o.d",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    56
		"test_/armv5/urel/test3.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    57
		"test_/armv5/urel/test4.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    58
		"test_/armv5/urel/test5.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    59
		"test_/armv5/urel/test1.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    60
		"test_/armv5/urel/test6.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    61
		"test_/armv5/urel/test2.o",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    62
		"test_/armv5/udeb/test_udeb_objects.via",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    63
		"test_/armv5/urel/test_urel_objects.via"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    64
		]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    65
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    66
	# using a non-existent config with -c should build any independent configs
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    67
	t.id = "115a"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    68
	t.name = "keepgoing_bad_config"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    69
	t.command = command + " -c armv5 -c armv5.bogus"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    70
	t.targets = targets
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    71
	t.addbuildtargets("smoke_suite/test_resources/simple/bld.inf", buildtargets)
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    72
	t.mustmatch = ["sbs: error: Unknown build variant 'bogus'"]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    73
	t.warnings = 0
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    74
	t.errors = 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    75
	t.returncode = 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    76
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    77
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    78
	# using groups with bad sub-groups should build any independent groups
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    79
	t.id = "115b"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    80
	t.name = "keepgoing_bad_subgroup"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    81
	t.command = command + config + " -c lots_of_products"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    82
	t.mustmatch = ["Unknown reference 'qwertyuio'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    83
	               "Unknown reference 'asdfghjkl'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    84
	               "Unknown reference 'zxcvbnm_p'"]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    85
	t.warnings = 0
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    86
	t.errors = 3
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    87
	t.returncode = 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    88
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    89
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    90
	# using groups with bad sub-sub-groups should build any independent groups
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    91
	t.id = "115c"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    92
	t.name = "keepgoing_bad_subsubgroup"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    93
	t.command = command + config + " -c lots_of_products_2"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    94
	t.mustmatch = ["Unknown reference 'qwertyuio'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    95
	               "Unknown reference 'asdfghjkl'",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    96
	               "Unknown reference 'zxcvbnm_p'"]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    97
	t.warnings = 0
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    98
	t.errors = 3
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    99
	t.returncode = 1
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   100
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   101
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   102
	# summarise	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   103
	t.id = "115"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   104
	t.name = "keepgoing"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   105
	t.print_result()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   106
	return t