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