author | timothy.murphy@nokia.com |
Thu, 25 Mar 2010 14:43:35 +0000 | |
branch | fix |
changeset 409 | 1b444ea0baec |
parent 388 | 3f46b91ff7d1 |
child 414 | fdf44dc5eff3 |
permissions | -rw-r--r-- |
3 | 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 | 3 |
# All rights reserved. |
4 |
# This component and the accompanying materials are made available |
|
5 |
# under the terms of the License "Eclipse Public License v1.0" |
|
6 |
# which accompanies this distribution, and is available |
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
# |
|
9 |
# Initial Contributors: |
|
10 |
# Nokia Corporation - initial contribution. |
|
11 |
# |
|
12 |
# Contributors: |
|
13 |
# |
|
14 |
# Description: |
|
15 |
# |
|
16 |
||
17 |
from raptor_tests import SmokeTest |
|
18 |
||
19 |
def run(): |
|
20 |
||
21 |
t = SmokeTest() |
|
22 |
t.usebash = True |
|
23 |
||
24 |
cmd_prefix = "sbs -b smoke_suite/test_resources/simple_paging/bld.inf -c armv5_urel " |
|
25 |
cmd_suffix = " -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && cat ${SBSLOGFILE} " |
|
26 |
||
27 |
t.id = "0093a" |
|
28 |
t.name = "paging_default" |
|
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 | 35 |
if t.result == "skip": |
36 |
return t |
|
37 |
||
38 |
t.id = "0093b" |
|
39 |
t.name = "paging_unpaged" |
|
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 | 45 |
t.run() |
46 |
||
47 |
t.id = "0093c" |
|
48 |
t.name = "paging_paged" |
|
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 | 56 |
t.run() |
57 |
||
58 |
t.id = "0093d" |
|
59 |
t.name = "paging_unpagedcode_pageddata" |
|
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 | 66 |
t.run() |
67 |
||
68 |
t.id = "0093e" |
|
69 |
t.name = "paging_pagedcode_unpageddata" |
|
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 | 76 |
t.run() |
77 |
||
78 |
t.id = "0093f" |
|
79 |
t.name = "paging_pagedcode_defaultdata" |
|
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 | 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 | 101 |
|
102 |
t.id = "0093" |
|
103 |
t.name = "paging" |
|
104 |
t.print_result() |
|
105 |
return t |
|
106 |