|
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 t = SmokeTest() |
|
21 t.usebash = True |
|
22 result = SmokeTest.PASS |
|
23 |
|
24 description = """This test is testing 2 states of keywords, DEBUGGABLE on its own and with DEBUGGABLE_UDEBONLY together; in their mmp's |
|
25 make a new mmp change the target so that it generates another exe, and search together with that exe name when testing second test""" |
|
26 command = "sbs -b smoke_suite/test_resources/simple/bld.inf -b smoke_suite/test_resources/simple/debuggable_bld.inf -c %s -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \ |
|
27 "grep -i '.*elf2e32.*--debuggable.*' ${SBSLOGFILE};" |
|
28 targets = [ |
|
29 "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe", |
|
30 "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map", |
|
31 "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe", |
|
32 "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.map", |
|
33 "$(EPOCROOT)/epoc32/release/armv5/udeb/debuggable.exe", |
|
34 "$(EPOCROOT)/epoc32/release/armv5/urel/debuggable.exe", |
|
35 "$(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.sym", |
|
36 "$(EPOCROOT)/epoc32/release/armv5/udeb/debuggable.exe.sym", |
|
37 "$(EPOCROOT)/epoc32/release/armv5/udeb/debuggable.exe.map", |
|
38 "$(EPOCROOT)/epoc32/release/armv5/urel/test.exe.sym", |
|
39 "$(EPOCROOT)/epoc32/release/armv5/urel/debuggable.exe.sym", |
|
40 "$(EPOCROOT)/epoc32/release/armv5/urel/debuggable.exe.map" |
|
41 ] |
|
42 buildtargets = [ |
|
43 "test_/armv5/udeb/test.o", |
|
44 "test_/armv5/urel/test.o", |
|
45 "test_/armv5/udeb/test.o.d", |
|
46 "test_/armv5/udeb/test3.o.d", |
|
47 "test_/armv5/udeb/test4.o.d", |
|
48 "test_/armv5/udeb/test5.o.d", |
|
49 "test_/armv5/udeb/test1.o.d", |
|
50 "test_/armv5/udeb/test6.o.d", |
|
51 "test_/armv5/udeb/test2.o.d", |
|
52 "test_/armv5/udeb/test3.o", |
|
53 "test_/armv5/udeb/test4.o", |
|
54 "test_/armv5/udeb/test5.o", |
|
55 "test_/armv5/udeb/test1.o", |
|
56 "test_/armv5/udeb/test6.o", |
|
57 "test_/armv5/udeb/test2.o", |
|
58 "test_/armv5/urel/test.o.d", |
|
59 "test_/armv5/urel/test3.o.d", |
|
60 "test_/armv5/urel/test4.o.d", |
|
61 "test_/armv5/urel/test5.o.d", |
|
62 "test_/armv5/urel/test1.o.d", |
|
63 "test_/armv5/urel/test6.o.d", |
|
64 "test_/armv5/urel/test2.o.d", |
|
65 "test_/armv5/urel/test3.o", |
|
66 "test_/armv5/urel/test4.o", |
|
67 "test_/armv5/urel/test5.o", |
|
68 "test_/armv5/urel/test1.o", |
|
69 "test_/armv5/urel/test6.o", |
|
70 "test_/armv5/urel/test2.o", |
|
71 "test_/armv5/udeb/test_udeb_objects.via", |
|
72 "test_/armv5/urel/test_urel_objects.via" |
|
73 ] |
|
74 mustmatch = [ |
|
75 ".*elf2e32.*urel.*test.exe.*--debuggable.*", |
|
76 ".*elf2e32.*udeb.*test.exe.*--debuggable.*", |
|
77 ".*elf2e32.*udeb.*debuggable.exe.*--debuggable.*" |
|
78 ] |
|
79 mustnotmatch = [ |
|
80 ".*elf2e32.*urel.*debuggable.exe.*--debuggable.*" |
|
81 ] |
|
82 warnings = 1 |
|
83 |
|
84 t.id = "0001a" |
|
85 t.name = "exe_armv5_rvct" |
|
86 t.description = description |
|
87 t.command = command % "armv5" |
|
88 t.targets = targets |
|
89 t.addbuildtargets("smoke_suite/test_resources/simple/bld.inf", buildtargets) |
|
90 t.mustmatch = mustmatch |
|
91 t.mustnotmatch = mustnotmatch |
|
92 t.warnings = warnings |
|
93 t.run() |
|
94 if t.result == SmokeTest.FAIL: |
|
95 result = SmokeTest.FAIL |
|
96 |
|
97 t.id = "0001b" |
|
98 t.name = "exe_armv5_clean" |
|
99 t.command = "sbs -b smoke_suite/test_resources/simple/bld.inf -c armv5 clean" |
|
100 t.targets = [] |
|
101 t.mustmatch = [] |
|
102 t.mustnotmatch = [] |
|
103 t.warnings = 0 |
|
104 t.run() |
|
105 if t.result == SmokeTest.FAIL: |
|
106 result = SmokeTest.FAIL |
|
107 |
|
108 t.id = "0001c" |
|
109 t.name = "exe_armv5_gcce" |
|
110 t.command = command % "gcce_armv5" |
|
111 t.targets = targets |
|
112 t.addbuildtargets("smoke_suite/test_resources/simple/bld.inf", buildtargets) |
|
113 t.mustmatch = mustmatch |
|
114 t.mustnotmatch = mustnotmatch |
|
115 t.warnings = warnings |
|
116 t.run() |
|
117 if t.result == SmokeTest.FAIL: |
|
118 result = SmokeTest.FAIL |
|
119 |
|
120 t.id = "1" |
|
121 t.name = "exe_armv5" |
|
122 t.result = result |
|
123 t.print_result() |
|
124 return t |