sbsv2/raptor/test/smoke_suite/paging.py
author Ross Qin <ross.qin@nokia.com>
Tue, 30 Nov 2010 14:05:41 +0800
changeset 713 7b7f0409fc00
parent 591 22486c9c7b15
permissions -rw-r--r--
merge
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) 2009-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
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    21
	t = SmokeTest()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    22
	t.usebash = True
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    23
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    24
	cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel "
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    25
	cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} "
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    26
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    27
	t.id = "0093a"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    28
	t.name = "paging_default"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    29
	t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    30
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    31
			"--codepaging=default", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    32
			"--datapaging=default"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    33
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    34
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    35
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    36
	t.id = "0093b"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    37
	t.name = "paging_unpaged"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    38
	t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    39
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    40
			"--codepaging=unpaged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    41
			"--datapaging=unpaged"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    42
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    43
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    44
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    45
	t.id = "0093c"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    46
	t.name = "paging_paged"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    47
	t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    48
	# Either pagedcode or pageddata can imply bytepaircompresstarget 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    49
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    50
			"--codepaging=paged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    51
			"--datapaging=default",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    52
			"--compressionmethod=bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    53
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    54
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    55
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    56
	t.id = "0093d"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    57
	t.name = "paging_unpagedcode_pageddata"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    58
	t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    59
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    60
			"--codepaging=unpaged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    61
			"--datapaging=paged",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    62
			"--compressionmethod=bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    63
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    64
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    65
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    66
	t.id = "0093e"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    67
	t.name = "paging_pagedcode_unpageddata"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    68
	t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    69
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    70
			"--codepaging=paged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    71
			"--datapaging=unpaged",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    72
			"--compressionmethod=bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    73
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    74
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    75
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    76
	t.id = "0093f"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    77
	t.name = "paging_pagedcode_defaultdata"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    78
	t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    79
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    80
			"--codepaging=paged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    81
			"--datapaging=default",
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    82
			"--compressionmethod=bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    83
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    84
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    85
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    86
	t.id = "0093g"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    87
	t.name = "paging_paged_unpaged_no_bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    88
	t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    89
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    90
			"--codepaging=unpaged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    91
			"--datapaging=unpaged"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    92
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    93
	t.mustnotmatch = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    94
			"--compressionmethod=bytepair"	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    95
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    96
	t.warnings = 2 # 1 in the log and 1 on screen
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    97
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    98
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
    99
	# test the pre-WDP paging options --paged and --unpaged
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   100
	# there is an os_properties.xml file in test/config that
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   101
	# turns POSTLINKER_SUPPORTS_WDP off
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   102
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   103
	t.id = "0093g"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   104
	t.name = "paging_paged_no_wdp"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   105
	t.command = cmd_prefix + "-p paged.mmp --configpath=test/config" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   106
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   107
			"--paged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   108
			"--compressionmethod=bytepair"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   109
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   110
	t.mustnotmatch = []
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   111
	t.warnings = 0
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   112
	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/paged.dll" ]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   113
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   114
	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   115
	t.id = "0093h"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   116
	t.name = "paging_unpaged_no_wdp"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   117
	t.command = cmd_prefix + "-p unpaged.mmp --configpath=test/config" + cmd_suffix
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   118
	t.mustmatch_singleline = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   119
			"--unpaged", 
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   120
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   121
	t.mustnotmatch = [
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   122
			"--compressionmethod=bytepair"	
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   123
			]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   124
	t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/unpaged.dll" ]
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   125
	t.run()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   126
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   127
	t.id = "0093"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   128
	t.name = "paging"
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   129
	t.print_result()
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   130
	return t
22486c9c7b15 raptor v2.14.0
jjkang
parents:
diff changeset
   131