591
|
1 |
#
|
|
2 |
# Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
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
|
|
30 |
t.mustmatch_singleline = [
|
|
31 |
"--codepaging=default",
|
|
32 |
"--datapaging=default"
|
|
33 |
]
|
|
34 |
t.run()
|
|
35 |
|
|
36 |
t.id = "0093b"
|
|
37 |
t.name = "paging_unpaged"
|
|
38 |
t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
|
|
39 |
t.mustmatch_singleline = [
|
|
40 |
"--codepaging=unpaged",
|
|
41 |
"--datapaging=unpaged"
|
|
42 |
]
|
|
43 |
t.run()
|
|
44 |
|
|
45 |
t.id = "0093c"
|
|
46 |
t.name = "paging_paged"
|
|
47 |
t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
|
|
48 |
# Either pagedcode or pageddata can imply bytepaircompresstarget
|
|
49 |
t.mustmatch_singleline = [
|
|
50 |
"--codepaging=paged",
|
|
51 |
"--datapaging=default",
|
|
52 |
"--compressionmethod=bytepair"
|
|
53 |
]
|
|
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
|
|
59 |
t.mustmatch_singleline = [
|
|
60 |
"--codepaging=unpaged",
|
|
61 |
"--datapaging=paged",
|
|
62 |
"--compressionmethod=bytepair"
|
|
63 |
]
|
|
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
|
|
69 |
t.mustmatch_singleline = [
|
|
70 |
"--codepaging=paged",
|
|
71 |
"--datapaging=unpaged",
|
|
72 |
"--compressionmethod=bytepair"
|
|
73 |
]
|
|
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
|
|
79 |
t.mustmatch_singleline = [
|
|
80 |
"--codepaging=paged",
|
|
81 |
"--datapaging=default",
|
|
82 |
"--compressionmethod=bytepair"
|
|
83 |
]
|
|
84 |
t.run()
|
|
85 |
|
|
86 |
t.id = "0093g"
|
|
87 |
t.name = "paging_paged_unpaged_no_bytepair"
|
|
88 |
t.command = cmd_prefix + "-p paged_unpaged.mmp" + cmd_suffix
|
|
89 |
t.mustmatch_singleline = [
|
|
90 |
"--codepaging=unpaged",
|
|
91 |
"--datapaging=unpaged"
|
|
92 |
]
|
|
93 |
t.mustnotmatch = [
|
|
94 |
"--compressionmethod=bytepair"
|
|
95 |
]
|
|
96 |
t.warnings = 2 # 1 in the log and 1 on screen
|
|
97 |
t.run()
|
|
98 |
|
|
99 |
# test the pre-WDP paging options --paged and --unpaged
|
|
100 |
# there is an os_properties.xml file in test/config that
|
|
101 |
# turns POSTLINKER_SUPPORTS_WDP off
|
|
102 |
|
|
103 |
t.id = "0093g"
|
|
104 |
t.name = "paging_paged_no_wdp"
|
|
105 |
t.command = cmd_prefix + "-p paged.mmp --configpath=test/config" + cmd_suffix
|
|
106 |
t.mustmatch_singleline = [
|
|
107 |
"--paged",
|
|
108 |
"--compressionmethod=bytepair"
|
|
109 |
]
|
|
110 |
t.mustnotmatch = []
|
|
111 |
t.warnings = 0
|
|
112 |
t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/paged.dll" ]
|
|
113 |
t.run()
|
|
114 |
|
|
115 |
t.id = "0093h"
|
|
116 |
t.name = "paging_unpaged_no_wdp"
|
|
117 |
t.command = cmd_prefix + "-p unpaged.mmp --configpath=test/config" + cmd_suffix
|
|
118 |
t.mustmatch_singleline = [
|
|
119 |
"--unpaged",
|
|
120 |
]
|
|
121 |
t.mustnotmatch = [
|
|
122 |
"--compressionmethod=bytepair"
|
|
123 |
]
|
|
124 |
t.targets = [ "$(EPOCROOT)/epoc32/release/armv5/urel/unpaged.dll" ]
|
|
125 |
t.run()
|
|
126 |
|
|
127 |
t.id = "0093"
|
|
128 |
t.name = "paging"
|
|
129 |
t.print_result()
|
|
130 |
return t
|
|
131 |
|