sbsv2/raptor/test/smoke_suite/paging.py
author jjkang
Fri, 25 Jun 2010 19:56:45 +0800
changeset 604 b33dd54aaa52
parent 602 3145852acc89
permissions -rw-r--r--
add cpptoolsplat
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     1
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     2
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     3
# All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     4
# This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     5
# under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     6
# which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     7
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     8
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     9
# Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    10
# Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    11
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    12
# Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    13
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    14
# Description: 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    15
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    16
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    17
from raptor_tests import SmokeTest
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    18
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    19
def run():
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    20
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    21
	t = SmokeTest()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    22
	t.usebash = True
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    23
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    24
	cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    25
	cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    26
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    27
	t.id = "0093a"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    28
	t.name = "paging_default"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    29
	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    30
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    31
			"--codepaging=default", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    32
			"--datapaging=default"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    33
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    34
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    35
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    36
	t.id = "0093b"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    37
	t.name = "paging_unpaged"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    38
	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    39
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    40
			"--codepaging=unpaged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    41
			"--datapaging=unpaged"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    42
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    43
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    44
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    45
	t.id = "0093c"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    46
	t.name = "paging_paged"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    47
	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    48
	# Either pagedcode or pageddata can imply bytepaircompresstarget 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    49
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    50
			"--codepaging=paged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    51
			"--datapaging=default",
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    52
			"--compressionmethod=bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    53
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    54
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    55
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    56
	t.id = "0093d"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    57
	t.name = "paging_unpagedcode_pageddata"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    58
	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    59
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    60
			"--codepaging=unpaged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    61
			"--datapaging=paged",
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    62
			"--compressionmethod=bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    63
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    64
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    65
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    66
	t.id = "0093e"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    67
	t.name = "paging_pagedcode_unpageddata"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    68
	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    69
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    70
			"--codepaging=paged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    71
			"--datapaging=unpaged",
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    72
			"--compressionmethod=bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    73
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    74
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    75
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    76
	t.id = "0093f"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    77
	t.name = "paging_pagedcode_defaultdata"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    78
	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    79
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    80
			"--codepaging=paged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    81
			"--datapaging=default",
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    82
			"--compressionmethod=bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    83
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    84
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    85
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    86
	t.id = "0093g"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    87
	t.name = "paging_paged_unpaged_no_bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    88
	t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    89
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    90
			"--codepaging=unpaged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    91
			"--datapaging=unpaged"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    92
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    93
	t.mustnotmatch = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    94
			"--compressionmethod=bytepair"	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    95
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    96
	t.warnings = 2 # 1 in the log and 1 on screen
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    97
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    98
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    99
	# test the pre-WDP paging options --paged and --unpaged
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   100
	# there is an os_properties.xml file in test/config that
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   101
	# turns POSTLINKER_SUPPORTS_WDP off
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   102
	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   103
	t.id = "0093g"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   104
	t.name = "paging_paged_no_wdp"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   105
	t.command = cmd_prefix + "-p paged.mmp --configpath=test/config" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   106
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   107
			"--paged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   108
			"--compressionmethod=bytepair"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   109
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   110
	t.mustnotmatch = []
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   111
	t.warnings = 0
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   112
	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/paged.dll" ]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   113
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   114
	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   115
	t.id = "0093h"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   116
	t.name = "paging_unpaged_no_wdp"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   117
	t.command = cmd_prefix + "-p unpaged.mmp --configpath=test/config" + cmd_suffix
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   118
	t.mustmatch_singleline = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   119
			"--unpaged", 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   120
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   121
	t.mustnotmatch = [
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   122
			"--compressionmethod=bytepair"	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   123
			]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   124
	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/unpaged.dll" ]
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   125
	t.run()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   126
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   127
	t.id = "0093"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   128
	t.name = "paging"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   129
	t.print_result()
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   130
	return t
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   131