sbsv2/raptor/test/smoke_suite/paging.py
author yiluzhu
Thu, 18 Mar 2010 14:31:08 +0000
branchfix
changeset 388 3f46b91ff7d1
parent 3 e1eecf4d390d
child 414 fdf44dc5eff3
permissions -rw-r--r--
SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
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 = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    31
			".*--codepaging=default.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    32
			".*--datapaging=default.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    33
			]
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    34
	t.run("windows") # Windows-only until we've updated the Linux version of elf2e32.
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    35
	if t.result == "skip":
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    36
		return t
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    37
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    38
	t.id = "0093b"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    39
	t.name = "paging_unpaged"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    40
	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
    41
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    42
			".*--codepaging=unpaged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    43
			".*--datapaging=unpaged.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    44
			]
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    45
	t.run()
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    46
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    47
	t.id = "0093c"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    48
	t.name = "paging_paged"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    49
	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
    50
	# 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
    51
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    52
			".*--codepaging=paged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    53
			".*--datapaging=paged.*",
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    54
			".*--compressionmethod=bytepair.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    55
			]
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    56
	t.run()
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    57
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    58
	t.id = "0093d"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    59
	t.name = "paging_unpagedcode_pageddata"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    60
	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
    61
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    62
			".*--codepaging=unpaged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    63
			".*--datapaging=paged.*",
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    64
			".*--compressionmethod=bytepair.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    65
			]
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    66
	t.run()
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    67
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    68
	t.id = "0093e"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    69
	t.name = "paging_pagedcode_unpageddata"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    70
	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
    71
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    72
			".*--codepaging=paged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    73
			".*--datapaging=unpaged.*",
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    74
			".*--compressionmethod=bytepair.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    75
			]
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    76
	t.run()
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    77
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    78
	t.id = "0093f"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    79
	t.name = "paging_pagedcode_defaultdata"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    80
	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
    81
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    82
			".*--codepaging=paged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    83
			".*--datapaging=default.*",
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    84
			".*--compressionmethod=bytepair.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    85
			]
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
    86
	t.run()
388
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    87
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    88
	t.id = "0093g"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    89
	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
    90
	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
    91
	t.mustmatch_singleline = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    92
			".*--codepaging=unpaged.*", 
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    93
			".*--datapaging=unpaged.*"
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    94
			]
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    95
	t.mustnotmatch = [
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    96
			".*--compressionmethod=bytepair.*"	
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    97
			]
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    98
	t.warnings = 4 # 2 in log 2 on screen
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
    99
	t.run()
3f46b91ff7d1 SF Bug 1939 - PAGED keyword in MMP files should imply byte pair compressed
yiluzhu
parents: 3
diff changeset
   100
3
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   101
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   102
	t.id = "0093"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   103
	t.name = "paging"
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   104
	t.print_result()
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   105
	return t
e1eecf4d390d Team sf branch.
tnmurphy@4GBL06592.nokia.com
parents:
diff changeset
   106