author | timothy.murphy@nokia.com |
Tue, 02 Mar 2010 09:17:29 +0000 | |
changeset 297 | 7029b5be2b15 |
parent 209 | 604f2aceff59 |
permissions | -rw-r--r-- |
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 |
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 |
|
205
ce7b587b436c
fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows.
timothy.murphy@nokia.com
parents:
199
diff
changeset
|
107 |
|
ce7b587b436c
fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows.
timothy.murphy@nokia.com
parents:
199
diff
changeset
|
108 |
|
3 | 109 |
t.id = "0001c" |
110 |
t.name = "exe_armv5_gcce" |
|
111 |
t.command = command % "gcce_armv5" |
|
112 |
t.targets = targets |
|
113 |
t.addbuildtargets("smoke_suite/test_resources/simple/bld.inf", buildtargets) |
|
114 |
t.mustmatch = mustmatch |
|
115 |
t.mustnotmatch = mustnotmatch |
|
116 |
t.warnings = warnings |
|
117 |
t.run() |
|
118 |
if t.result == SmokeTest.FAIL: |
|
119 |
result = SmokeTest.FAIL |
|
120 |
||
209
604f2aceff59
test: make sure '\' characters in a string are escaped to \\ so that the regexp works
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
205
diff
changeset
|
121 |
|
604f2aceff59
test: make sure '\' characters in a string are escaped to \\ so that the regexp works
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
205
diff
changeset
|
122 |
# Test for the Check Filter to ensure that it reports |
604f2aceff59
test: make sure '\' characters in a string are escaped to \\ so that the regexp works
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
205
diff
changeset
|
123 |
# missing files properly when used from sbs_filter.py: |
205
ce7b587b436c
fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows.
timothy.murphy@nokia.com
parents:
199
diff
changeset
|
124 |
import os |
ce7b587b436c
fix: filterwhatcomp and filtercheckcomp - correctly strip absolute directory and replace with EPOCROOT on windows.
timothy.murphy@nokia.com
parents:
199
diff
changeset
|
125 |
abs_epocroot = os.path.abspath(os.environ["EPOCROOT"]) |
199
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
126 |
t.id = "0001d" |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
127 |
t.command = "rm $(EPOCROOT)/epoc32/release/armv5/udeb/test.exe.map; sbs_filter --filters=FilterCheck < ${SBSLOGFILE}" |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
128 |
t.targets = [] |
209
604f2aceff59
test: make sure '\' characters in a string are escaped to \\ so that the regexp works
raptorbot <raptorbot@systemstesthead.symbian.intra>
parents:
205
diff
changeset
|
129 |
t.mustmatch = ["MISSING:[ ]+" + abs_epocroot.replace("\\","\\\\") + ".epoc32.release.armv5.udeb.test\.exe\.map.*"] |
199
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
130 |
t.mustnotmatch = [] |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
131 |
t.warnings = 1 |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
132 |
t.returncode = 2 |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
133 |
t.run() |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
134 |
|
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
135 |
if t.result == SmokeTest.FAIL: |
3776a92b44bb
Tests cor check and whatTests cor check and what
timothy.murphy@nokia.com
parents:
3
diff
changeset
|
136 |
result = SmokeTest.FAIL |
3 | 137 |
t.id = "1" |
138 |
t.name = "exe_armv5" |
|
139 |
t.result = result |
|
140 |
t.print_result() |
|
141 |
return t |