|
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, 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" |
|
101 t.stdout = [ |
|
102 # exports |
|
103 '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.mk', |
|
104 '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/clean.meta', |
|
105 '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.mk', |
|
106 '$(EPOCROOT)/epoc32/tools/makefile_templates/sbsv2test/build.meta', |
|
107 # release tree built |
|
108 '$(EPOCROOT)/epoc32/release/armv5/udeb/simple_extension.txt', |
|
109 '$(EPOCROOT)/epoc32/release/armv5/urel/simple_extension.txt', |
|
110 '$(EPOCROOT)/epoc32/release/winscw/udeb/simple_extension.txt', |
|
111 '$(EPOCROOT)/epoc32/release/winscw/urel/simple_extension.txt' |
|
112 ] |
|
113 t.run() |
|
114 if t.result == SmokeTest.FAIL: |
|
115 result = SmokeTest.FAIL |
|
116 |
|
117 |
|
118 t = SmokeTest() |
|
119 t.id = "0018g" |
|
120 t.name = "badtem2" |
|
121 t.command = "sbs -b smoke_suite/test_resources/tem/bad2_bld.inf -c armv5" |
|
122 t.targets = [ |
|
123 "$(EPOCROOT)/epoc32/raptor_smoketest_tem_failed" |
|
124 ] |
|
125 t.warnings = 3 |
|
126 t.returncode = 1 |
|
127 t.run() |
|
128 if t.result == SmokeTest.FAIL: |
|
129 result = SmokeTest.FAIL |
|
130 |
|
131 t.id = "18" |
|
132 t.name = "temtest" |
|
133 t.result = result |
|
134 t.print_result() |
|
135 return t |