author | Iain Williamson <iain.williamson@nokia.com> |
Thu, 27 May 2010 17:04:53 +0100 | |
changeset 578 | cad543700ad8 |
parent 493 | 4a86d5ea40ef |
permissions | -rw-r--r-- |
3 | 1 |
# |
493 | 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, CheckWhatSmokeTest |
|
18 |
||
19 |
def run(): |
|
20 |
result = SmokeTest.PASS |
|
21 |
t = SmokeTest() |
|
22 |
t.id = "0018a" |
|
23 |
t.name = "temclean" |
|
24 |
t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN" |
|
25 |
t.targets = [ |
|
26 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded", |
|
27 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
28 |
] |
|
29 |
t.missing = 2 |
|
30 |
t.warnings = 1 |
|
31 |
t.returncode = 0 |
|
32 |
t.run() |
|
33 |
if t.result == SmokeTest.FAIL: |
|
34 |
result = SmokeTest.FAIL |
|
35 |
||
36 |
||
37 |
t.id = "0018b" |
|
38 |
t.name = "temtest" |
|
39 |
t.command = "sbs -b smoke_suite/test_resources/tem/bld.inf -c armv5" |
|
40 |
t.targets = [ |
|
41 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded" |
|
42 |
] |
|
43 |
t.warnings = 2 |
|
44 |
t.missing = 0 |
|
45 |
t.returncode = 1 |
|
46 |
t.mustmatch = [ "repeated call to TEM with same values.* Stop\." ] |
|
47 |
t.run() |
|
48 |
if t.result == SmokeTest.FAIL: |
|
49 |
result = SmokeTest.FAIL |
|
50 |
||
51 |
||
52 |
t.id = "0018c" |
|
53 |
t.name = "temclean2" |
|
54 |
t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN" |
|
55 |
t.targets = [ |
|
56 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded", |
|
57 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
58 |
] |
|
59 |
t.missing = 2 |
|
60 |
t.warnings = 1 |
|
61 |
t.returncode = 0 |
|
62 |
t.mustmatch = [] |
|
63 |
t.run() |
|
64 |
if t.result == SmokeTest.FAIL: |
|
65 |
result = SmokeTest.FAIL |
|
66 |
||
67 |
||
68 |
t.id = "0018d" |
|
69 |
t.name = "badtem" |
|
70 |
t.command = "sbs -b smoke_suite/test_resources/tem/bad_bld.inf -c armv5" |
|
71 |
t.targets = [ |
|
72 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
73 |
] |
|
74 |
t.warnings = 3 |
|
75 |
t.missing = 0 |
|
76 |
t.returncode = 1 |
|
77 |
t.run() |
|
78 |
if t.result == SmokeTest.FAIL: |
|
79 |
result = SmokeTest.FAIL |
|
80 |
||
81 |
||
82 |
t.id = "0018e" |
|
83 |
t.name = "temclean3" |
|
84 |
t.command = "sbs -b smoke_suite/test_resources/tem/bldclean.inf -c armv5 CLEAN" |
|
85 |
t.targets = [ |
|
86 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_succeeded", |
|
87 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
88 |
] |
|
89 |
t.missing = 2 |
|
90 |
t.warnings = 1 |
|
91 |
t.returncode = 0 |
|
92 |
t.run() |
|
93 |
if t.result == SmokeTest.FAIL: |
|
94 |
result = SmokeTest.FAIL |
|
95 |
||
96 |
||
97 |
t = CheckWhatSmokeTest() |
|
98 |
t.id = "0018f" |
|
99 |
t.name = "temwhat" |
|
100 |
t.command = "sbs -b smoke_suite/test_resources/simple_extension/bld.inf --what" |
|
492
9f47b050a32f
Bug 2420 - [Raptor] Output from recipes is mis-recognised as "what" output
yiluzhu
parents:
3
diff
changeset
|
101 |
t.output_expected_only_once = True |
3 | 102 |
t.stdout = [ |
103 |
# exports |
|
104 |
'$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk', |
|
105 |
'$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta', |
|
106 |
'$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk', |
|
107 |
'$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta', |
|
108 |
# release tree built |
|
109 |
'$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt', |
|
110 |
'$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt', |
|
111 |
'$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt', |
|
112 |
'$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt' |
|
113 |
] |
|
114 |
t.run() |
|
115 |
if t.result == SmokeTest.FAIL: |
|
116 |
result = SmokeTest.FAIL |
|
117 |
||
118 |
||
119 |
t = SmokeTest() |
|
120 |
t.id = "0018g" |
|
121 |
t.name = "badtem2" |
|
122 |
t.command = "sbs -b smoke_suite/test_resources/tem/bad2_bld.inf -c armv5" |
|
123 |
t.targets = [ |
|
124 |
"$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
125 |
] |
|
126 |
t.warnings = 3 |
|
127 |
t.returncode = 1 |
|
128 |
t.run() |
|
129 |
if t.result == SmokeTest.FAIL: |
|
130 |
result = SmokeTest.FAIL |
|
131 |
||
132 |
t.id = "18" |
|
133 |
t.name = "temtest" |
|
134 |
t.result = result |
|
135 |
t.print_result() |
|
136 |
return t |