author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Thu, 13 May 2010 14:14:32 +0100 | |
changeset 553 | 7d4971eaf863 |
parent 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 = [ |
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 | 35 |
|
36 |
t.id = "0093b" |
|
37 |
t.name = "paging_unpaged" |
|
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 | 43 |
t.run() |
44 |
||
45 |
t.id = "0093c" |
|
46 |
t.name = "paging_paged" |
|
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 | 54 |
t.run() |
55 |
||
56 |
t.id = "0093d" |
|
57 |
t.name = "paging_unpagedcode_pageddata" |
|
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 | 64 |
t.run() |
65 |
||
66 |
t.id = "0093e" |
|
67 |
t.name = "paging_pagedcode_unpageddata" |
|
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 | 74 |
t.run() |
75 |
||
76 |
t.id = "0093f" |
|
77 |
t.name = "paging_pagedcode_defaultdata" |
|
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 | 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 | 126 |
|
127 |
t.id = "0093" |
|
128 |
t.name = "paging" |
|
129 |
t.print_result() |
|
130 |
return t |
|
131 |