|
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, AntiTargetSmokeTest |
|
18 |
|
19 def run(): |
|
20 result = SmokeTest.PASS |
|
21 |
|
22 t = SmokeTest() |
|
23 t.id = "0057a" |
|
24 t.name = "gccxml" |
|
25 t.usebash = True |
|
26 t.command = "sbs -b smoke_suite/test_resources/simple_gui/bld.inf " + \ |
|
27 "-c gccxml_urel -m ${SBSMAKEFILE} -f ${SBSLOGFILE} && " + \ |
|
28 "grep -o 'gcc.*-fpermissive' ${SBSLOGFILE}" |
|
29 t.targets = [ |
|
30 "$(EPOCROOT)/epoc32/release/gccxml/includeheaders.txt", |
|
31 "$(EPOCROOT)/epoc32/release/gccxml/urel/helloworldexe.gxp" |
|
32 ] |
|
33 t.addbuildtargets('smoke_suite/test_resources/simple_gui/bld.inf', [ |
|
34 "helloworld_exe/gccxml/HelloWorld.mmp.xml", |
|
35 "helloworld_exe/helloworld__resource_apps_sc.rpp.d", |
|
36 "helloworld_exe/gccxml/HelloWorld.rss.rfi", |
|
37 "helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d", |
|
38 "helloworld_exe/gccxml/HelloWorld_reg.rss.rfi", |
|
39 "helloworld_exe/gccxml/urel/HelloWorld_Application.xml.d", |
|
40 "helloworld_exe/gccxml/urel/HelloWorld_Application.xml", |
|
41 "helloworld_exe/gccxml/urel/HelloWorld_AppUi.xml.d", |
|
42 "helloworld_exe/gccxml/urel/HelloWorld_AppUi.xml", |
|
43 "helloworld_exe/gccxml/urel/HelloWorld_AppView.xml.d", |
|
44 "helloworld_exe/gccxml/urel/HelloWorld_AppView.xml", |
|
45 "helloworld_exe/gccxml/urel/HelloWorld_Document.xml.d", |
|
46 "helloworld_exe/gccxml/urel/HelloWorld_Document.xml", |
|
47 "helloworld_exe/gccxml/urel/HelloWorld_Main.xml.d", |
|
48 "helloworld_exe/gccxml/urel/HelloWorld_Main.xml" |
|
49 ]) |
|
50 t.mustmatch = [ |
|
51 ".*gcc.*-fpermissive.*" |
|
52 ] |
|
53 # Windows-only until formal delivery of a Linux version of gccxml_cc1plus |
|
54 t.run("windows") |
|
55 if t.result == SmokeTest.FAIL: |
|
56 result = SmokeTest.FAIL |
|
57 elif t.result == SmokeTest.SKIP: |
|
58 return t |
|
59 |
|
60 |
|
61 t = AntiTargetSmokeTest() |
|
62 t.id = "0057b" |
|
63 t.name = "gccxml_reallyclean" |
|
64 t.command = "sbs -b smoke_suite/test_resources/simple_gui/bld.inf " + \ |
|
65 "-c gccxml_urel REALLYCLEAN" |
|
66 t.antitargets = ["$(EPOCROOT)/epoc32/release/gccxml/urel/helloworldexe.gxp"] |
|
67 t.addbuildantitargets('smoke_suite/test_resources/simple_gui/bld.inf', [ |
|
68 "helloworld_exe/gccxml/HelloWorld.mmp.xml", |
|
69 "helloworld_exe/helloworld__resource_apps_sc.rpp.d", |
|
70 "helloworld_exe/gccxml/HelloWorld.rss.rfi", |
|
71 "helloworld_reg_exe/helloworld_reg__private_10003a3f_apps_sc.rpp.d", |
|
72 "helloworld_exe/gccxml/HelloWorld_reg.rss.rfi", |
|
73 "helloworld_exe/gccxml/urel/HelloWorld_Application.xml.d", |
|
74 "helloworld_exe/gccxml/urel/HelloWorld_Application.xml", |
|
75 "helloworld_exe/gccxml/urel/HelloWorld_AppUi.xml.d", |
|
76 "helloworld_exe/gccxml/urel/HelloWorld_AppUi.xml", |
|
77 "helloworld_exe/gccxml/urel/HelloWorld_AppView.xml.d", |
|
78 "helloworld_exe/gccxml/urel/HelloWorld_AppView.xml", |
|
79 "helloworld_exe/gccxml/urel/HelloWorld_Document.xml.d", |
|
80 "helloworld_exe/gccxml/urel/HelloWorld_Document.xml", |
|
81 "helloworld_exe/gccxml/urel/HelloWorld_Main.xml.d", |
|
82 "helloworld_exe/gccxml/urel/HelloWorld_Main.xml" |
|
83 ]) |
|
84 t.run("windows") |
|
85 if t.result == SmokeTest.FAIL: |
|
86 result = SmokeTest.FAIL |
|
87 |
|
88 |
|
89 t = SmokeTest() |
|
90 t.id = "0057c" |
|
91 t.name = "gccxml_var2" |
|
92 t.command = "sbs -b smoke_suite/test_resources/simple_gui/BldVar2.inf " + \ |
|
93 "-c gccxml_urel -f -" |
|
94 |
|
95 # Don't allow -m or -f to be appended |
|
96 t.logfileOption = lambda :"" |
|
97 t.makefileOption = lambda :"" |
|
98 |
|
99 t.mustmatch = [".*__KERNEL_MODE__.*"] |
|
100 t.errors = 1 # not really VAR2 code, so it wont build cleanly |
|
101 t.returncode = 1 |
|
102 t.run("windows") |
|
103 if t.result == SmokeTest.FAIL: |
|
104 result = SmokeTest.FAIL |
|
105 |
|
106 |
|
107 t = SmokeTest() |
|
108 t.id = "0057d" |
|
109 t.name = "gccxml_stdcpp" |
|
110 t.command = "sbs -b smoke_suite/test_resources/simple_gui/Bld_stdcpp.inf " + \ |
|
111 "-c gccxml_urel -f -" |
|
112 |
|
113 # Don't allow -m or -f to be appended |
|
114 t.logfileOption = lambda :"" |
|
115 t.makefileOption = lambda :"" |
|
116 |
|
117 t.mustmatch = [".*__SYMBIAN_STDCPP_SUPPORT__.*"] |
|
118 t.errors = 0 # reset after previous run |
|
119 t.run("windows") |
|
120 if t.result == SmokeTest.FAIL: |
|
121 result = SmokeTest.FAIL |
|
122 |
|
123 |
|
124 t.id = "57" |
|
125 t.name = "gccxml" |
|
126 t.result = result |
|
127 t.print_result() |
|
128 return t |
|
129 |