3
|
1 |
#
|
|
2 |
# Copyright (c) 2009 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 |
result = SmokeTest.PASS
|
|
28 |
|
|
29 |
t.id = "0093a"
|
|
30 |
t.name = "paging_default"
|
|
31 |
t.command = cmd_prefix + "-p default.mmp" + cmd_suffix
|
|
32 |
t.mustmatch = [".*--codepaging=default.*", ".*--datapaging=default.*"]
|
|
33 |
t.run("windows") # Windows-only until we've updated the Linux version of elf2e32.
|
|
34 |
if t.result == "skip":
|
|
35 |
return t
|
|
36 |
if t.result == SmokeTest.FAIL:
|
|
37 |
result = SmokeTest.FAIL
|
|
38 |
|
|
39 |
t.id = "0093b"
|
|
40 |
t.name = "paging_unpaged"
|
|
41 |
t.command = cmd_prefix + "-p unpaged.mmp" + cmd_suffix
|
|
42 |
t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=unpaged.*"]
|
|
43 |
t.run()
|
|
44 |
if t.result == SmokeTest.FAIL:
|
|
45 |
result = SmokeTest.FAIL
|
|
46 |
|
|
47 |
t.id = "0093c"
|
|
48 |
t.name = "paging_paged"
|
|
49 |
t.command = cmd_prefix + "-p paged.mmp" + cmd_suffix
|
|
50 |
t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=paged.*"]
|
|
51 |
t.run()
|
|
52 |
if t.result == SmokeTest.FAIL:
|
|
53 |
result = SmokeTest.FAIL
|
|
54 |
|
|
55 |
t.id = "0093d"
|
|
56 |
t.name = "paging_unpagedcode_pageddata"
|
|
57 |
t.command = cmd_prefix + "-p unpagedcode_pageddata.mmp" + cmd_suffix
|
|
58 |
t.mustmatch = [".*--codepaging=unpaged.*", ".*--datapaging=paged.*"]
|
|
59 |
t.run()
|
|
60 |
if t.result == SmokeTest.FAIL:
|
|
61 |
result = SmokeTest.FAIL
|
|
62 |
|
|
63 |
t.id = "0093e"
|
|
64 |
t.name = "paging_pagedcode_unpageddata"
|
|
65 |
t.command = cmd_prefix + "-p pagedcode_unpageddata.mmp" + cmd_suffix
|
|
66 |
t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=unpaged.*"]
|
|
67 |
t.run()
|
|
68 |
if t.result == SmokeTest.FAIL:
|
|
69 |
result = SmokeTest.FAIL
|
|
70 |
|
|
71 |
t.id = "0093f"
|
|
72 |
t.name = "paging_pagedcode_defaultdata"
|
|
73 |
t.command = cmd_prefix + "-p pagedcode_defaultdata.mmp" + cmd_suffix
|
|
74 |
t.mustmatch = [".*--codepaging=paged.*", ".*--datapaging=default.*"]
|
|
75 |
t.run()
|
|
76 |
if t.result == SmokeTest.FAIL:
|
|
77 |
result = SmokeTest.FAIL
|
|
78 |
|
|
79 |
t.id = "0093"
|
|
80 |
t.name = "paging"
|
|
81 |
t.result = result
|
|
82 |
t.print_result()
|
|
83 |
return t
|
|
84 |
|