36 PlatSecDiagnostics ON |
35 PlatSecDiagnostics ON |
37 PlatSecEnforcement ON |
36 PlatSecEnforcement ON |
38 PlatSecEnforceSysBin ON |
37 PlatSecEnforceSysBin ON |
39 PlatSecProcessIsolation ON |
38 PlatSecProcessIsolation ON |
40 } |
39 } |
|
40 |
41 #include "setcap.iby" |
41 #include "setcap.iby" |
42 #include "testutil.iby" |
42 |
43 #include "testexecute.iby" |
43 #include "testexecute.iby" |
44 #include "t_testhandler.iby" |
44 #include "t_testhandler.iby" |
45 #include "xml.iby" // Needed for security tests |
45 #include "testutil.iby" |
|
46 //#include "xml.iby" // Needed for security tests |
46 |
47 |
47 #include "securityframeworktestserver.iby" |
48 #include "securityframeworktestserver.iby" |
|
49 |
|
50 |
|
51 #if defined SYMBIAN_KEYSTORE_USE_AUTH_SERVER || defined SDP_ROM1 |
|
52 |
|
53 #include "ups.iby" |
|
54 #include "tups.iby" |
|
55 #include "asnpkcstests.iby" |
|
56 #include "certmantests.iby" |
|
57 #include "tpkcs7server.iby" |
|
58 #include "tpkcs12integrationserver.iby" |
|
59 #include "ctframeworktests.iby" |
|
60 #else |
|
61 #include "streamingcaf.iby" |
|
62 // iby files for caf |
|
63 #include "caf.iby" |
|
64 #include "caftest.iby" |
|
65 #include "reccafconfig.iby" |
|
66 #include "rta.iby" |
|
67 #include "rtatest.iby" |
|
68 #include "cryptotests.iby" |
|
69 #include "tscaf.iby" |
|
70 #include "randomtests.iby" |
|
71 #include "hashtests.iby" |
|
72 |
|
73 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
74 #include "mtputils.iby" |
|
75 #include "mtputilstest.iby" |
|
76 #include "refcafhelper.iby" |
|
77 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
78 |
|
79 #endif |
|
80 |
|
81 |
48 // Common utils libraries |
82 // Common utils libraries |
49 #include "securitycommonutils.iby" |
83 #include "securitycommonutils.iby" |
50 // Common utils libraries test |
84 #include "securitytestframework.iby" |
51 #include "installtestframework.iby" |
85 #include "secutiltests.iby" |
52 #include "securitytestframework.iby" |
86 |
53 |
87 //filetokens and authserver run in both the images. |
54 #include "streamingcaf.iby" |
88 #include "filetokenstests.iby" |
55 |
89 |
56 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
90 |
57 #include "mtputils.iby" |
|
58 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
59 |
|
60 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
61 //Universal Software Install Framework production |
|
62 #include "scr.iby" // Software Component Registry |
|
63 #include "sif.iby" // Software Install Framework |
|
64 #include "sts.iby" // Software Transaction Services |
|
65 #include "sifrefinstaller.iby" // Sif Reference Installer |
|
66 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
67 |
|
68 #ifdef __SECURITY_NORMAL_SWICERTSTORE__ |
|
69 |
|
70 #ifdef __SECURITY_ONLYJAVA__ |
|
71 |
|
72 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
73 #include "sisinstallertest.iby" |
|
74 #include "JavaMIDletInstallerTest.iby" |
|
75 #include "rtatest.iby" |
|
76 #include "recjar.iby" |
|
77 #endif |
|
78 #elif __SECURITY_NORMAL__ |
|
79 |
|
80 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
81 #include "sisinstallertest.iby" |
|
82 #endif |
|
83 |
|
84 #include "tsistestdata.iby" |
|
85 |
|
86 ECOM_PLUGIN(tsecdlg.dll, 10204789.rsc) |
|
87 |
|
88 #include "tups.iby" |
|
89 #include "ups.iby" |
|
90 // iby files for caf |
|
91 #include "caf.iby" |
|
92 #include "caftest.iby" |
|
93 #include "reccafconfig.iby" |
|
94 #include "rta.iby" |
|
95 #include "rtatest.iby" |
|
96 #include "tpkcs12integrationserver.iby" |
|
97 // Dependency |
|
98 file=ABI_DIR\BUILD_DIR\pkcs7.dll System\Libs\pkcs7.dll |
|
99 |
|
100 #include "tscaf.iby" |
|
101 |
|
102 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
103 #include "mtputilstest.iby" |
|
104 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
105 |
|
106 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
107 //Universal Software Install Framework tests |
|
108 #include "tscr.iby" |
|
109 #include "tsif.iby" |
|
110 #include "tsts.iby" |
|
111 #include "tsifrefinstaller.iby" |
|
112 #endif //SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 // Extra test data |
|
120 #include "tswi.iby" |
|
121 #include "tswiconsole.iby" |
|
122 #include "tsissignedtestdata.iby" |
|
123 #include "secutiltests.iby" |
|
124 |
|
125 #endif |
|
126 |
|
127 |
|
128 |
|
129 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
130 // Jar/Jad recogniser needed for CAF tests |
|
131 #include "recjar.iby" |
|
132 #endif |
|
133 |
|
134 #elif __SECURITY_MANDATORY_SWICERTSTORE__ |
|
135 // Temp |
|
136 #include "cryptodeps.iby" |
|
137 |
|
138 #include "randomtests.iby" |
|
139 #include "hashtests.iby" |
|
140 #include "certmantests.iby" |
|
141 #include "ctframeworktests.iby" |
|
142 #include "tpkcs7server.iby" |
|
143 #include "filetokenstests.iby" |
|
144 #include "asnpkcstests.iby" |
|
145 #include "tsiscorrupttestdata.iby" |
|
146 // uncomment authserver tests when authserver gets released |
|
147 #ifdef SYMBIAN_AUTH_SERVER |
|
148 #include "tAuthSvr.iby" |
|
149 #endif // SYMBIAN_AUTH_SERVER |
|
150 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
151 // Jar Download Reference Filter - sets user agent |
|
152 ECOM_PLUGIN(midletuaheaderfilter.dll,10200a88.rsc) |
|
153 #endif |
|
154 |
|
155 // Extra test data |
|
156 #include "tswi.iby" |
|
157 #include "tswiconsole.iby" |
|
158 #include "tsissignedtestdata.iby" |
|
159 #include "secutiltests.iby" |
|
160 #elif __SECURITY_JAVA__ |
|
161 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
162 #include "JavaMIDletInstallerTest.iby" |
|
163 #endif |
|
164 |
|
165 #include "cryptotests.iby" |
|
166 #include "randomtests.iby" |
|
167 #include "hashtests.iby" |
|
168 #include "rtatest.iby" |
|
169 #include "rta.iby" |
|
170 #endif |
|
171 |
|
172 |
|
173 //*********** |
|
174 // REMOVE ME WHEN AUTHSERVER IS ADDED TO MAIN BUILD |
|
175 //*********** |
|
176 #ifdef SYMBIAN_AUTH_SERVER |
91 #ifdef SYMBIAN_AUTH_SERVER |
|
92 #include "tAuthSvr.iby" |
177 #include "authserver.iby" |
93 #include "authserver.iby" |
178 #include "pinplugin.iby" |
94 #include "pinplugin.iby" |
179 #endif // SYMBIAN_AUTH_SERVER |
95 #endif // SYMBIAN_AUTH_SERVER |
180 |
96 |
|
97 |
|
98 define ZDRIVE \epoc32\winscw\c |
181 // This is the bat file to run the security tests automatically |
99 // This is the bat file to run the security tests automatically |
182 // comms configuration (and configuration using sim.tsy) |
100 // comms configuration (and configuration using sim.tsy) |
183 data = ZDRIVE\auto.cfg \auto.cfg |
101 data = ZDRIVE\auto.cfg \auto.cfg |
184 data = ZDRIVE\auto_broken.cfg \auto_broken.cfg |
102 data = ZDRIVE\auto_broken.cfg \auto_broken.cfg |
185 data = ZDRIVE\autosimtsy.cfg \autosimtsy.cfg |
103 data = ZDRIVE\autosimtsy.cfg \autosimtsy.cfg |
187 |
105 |
188 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01 |
106 // This the file which used to redirect the request from cam-ocsptest01 to ban-ocsptest01 |
189 data = ZDRIVE\autohardware\hosts \hosts |
107 data = ZDRIVE\autohardware\hosts \hosts |
190 |
108 |
191 |
109 |
192 |
|
193 #ifdef __AUTO_HARDWARE_TESTS__ |
110 #ifdef __AUTO_HARDWARE_TESTS__ |
194 data = ZDRIVE\autohardware\autoexec.bat \autoexec.bat |
111 data = ZDRIVE\autohardware\autoexec.bat \autoexec.bat |
195 #endif |
112 #endif |
196 |
113 |
197 #ifdef __SECURITY_NORMAL_SWICERTSTORE__ |
114 |
198 |
115 data = ZDRIVE\autohardware\runcertman.bat \runcertman.bat |
199 #ifdef __SECURITY_ONLYJAVA__ |
116 data = ZDRIVE\autohardware\runasnpkcs.bat \runasnpkcs.bat |
200 |
117 data = ZDRIVE\autohardware\runcryptotokens.bat \runcryptotokens.bat |
201 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
118 data = ZDRIVE\autohardware\runupstests.bat \runupstests.bat |
202 data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat \runjavamidletinstaller.bat |
119 data = ZDRIVE\autohardware\runpkcs12tests.bat \runpkcs12tests.bat |
203 data = ZDRIVE\autohardware\runsisinstaller_9.4.bat \runsisinstaller.bat |
120 |
204 data = ZDRIVE\autohardware\testsecurityonlyjava.bat \testsecurity.bat |
|
205 #endif |
|
206 #elif __SECURITY_NORMAL__ |
|
207 #ifdef SYMBIAN_UNIVERSAL_INSTALL_FRAMEWORK |
|
208 data = ZDRIVE\autohardware\testsecurity_9.6_nonmcs.bat \testsecurity.bat |
|
209 data = ZDRIVE\autohardware\runswiromtests_9.6.bat \runswiromtests.bat |
|
210 data = ZDRIVE\autohardware\runusiftests.bat \runusiftests.bat |
|
211 data = ZDRIVE\autohardware\runcommonutilstests.bat \runcommonutilstests.bat |
|
212 #else |
|
213 data = ZDRIVE\autohardware\testsecurity_9.5_nonmcs.bat \testsecurity.bat |
|
214 data = ZDRIVE\autohardware\runswiromtests_9.5.bat \runswiromtests.bat |
|
215 #endif |
|
216 |
|
217 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
218 data = ZDRIVE\autohardware\runsisinstaller_9.4.bat \runsisinstaller.bat |
|
219 #endif |
|
220 |
|
221 |
|
222 |
|
223 data = ZDRIVE\autohardware\runupstests_9.4.bat \runupstests.bat |
|
224 data = ZDRIVE\autohardware\runpkcs12tests_9.4.bat \runpkcs12tests.bat |
|
225 |
|
226 #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API |
|
227 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
121 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
228 data = ZDRIVE\autohardware\runcaftests_wmdrm.bat \runcaftests.bat |
122 data = ZDRIVE\autohardware\runcaftests_wmdrm.bat \runcaftests.bat |
229 #else |
123 #else |
230 data = ZDRIVE\autohardware\runcaftests_9.6.bat \runcaftests.bat |
124 data = ZDRIVE\autohardware\runcaftests.bat \runcaftests.bat |
231 #endif |
125 #endif |
232 |
126 |
233 #else |
127 |
234 data = ZDRIVE\autohardware\runcaftests_9.5.bat \runcaftests.bat |
128 |
235 #endif |
129 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
236 |
130 data = ZDRIVE\autohardware\runcrypto_wmdrm.bat \runcrypto.bat |
237 |
131 #else |
238 #endif |
132 data = ZDRIVE\autohardware\runcrypto.bat \runcrypto.bat |
239 |
133 #endif |
240 #elif __SECURITY_MANDATORY_SWICERTSTORE__ |
134 |
241 |
135 |
242 #ifdef SYMBIAN_AUTH_SERVER |
|
243 #ifdef SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS |
|
244 data = ZDRIVE\autohardware\runauthtests_macroenabled.bat \runauthtests.bat |
|
245 data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat \testsecurity.bat |
|
246 #else |
|
247 data = ZDRIVE\autohardware\testsecurity_9.6_mcs.bat \testsecurity.bat |
|
248 data = ZDRIVE\autohardware\runauthtests.bat \runauthtests.bat |
|
249 #endif //SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS |
|
250 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
251 data = ZDRIVE\autohardware\runfiletokens_useauth.bat \runfiletokens.bat |
|
252 #elif SYMBIAN_AUTH_SERVER |
|
253 data = ZDRIVE\autohardware\runfiletokens_disableauth.bat \runfiletokens.bat |
|
254 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
255 #else |
|
256 data = ZDRIVE\autohardware\runfiletokens_9.4.bat \runfiletokens.bat |
|
257 data = ZDRIVE\autohardware\testsecurity_9.5_mcs.bat \testsecurity.bat |
|
258 #endif // SYMBIAN_AUTH_SERVER |
|
259 |
|
260 data = ZDRIVE\autohardware\runcertman_9.5.bat \runcertman.bat |
|
261 data = ZDRIVE\autohardware\runasnpkcs_9.4.bat \runasnpkcs.bat |
|
262 data = ZDRIVE\autohardware\runcryptotokens_9.4.bat \runcryptotokens.bat |
|
263 data = ZDRIVE\autohardware\runswiromtests_9.4_mcs.bat \runswiromtests.bat |
|
264 |
|
265 #elif __SECURITY_JAVA__ |
|
266 |
|
267 #ifndef SYMBIAN_JAVA_NOT_INCLUDED |
|
268 |
|
269 data = ZDRIVE\autohardware\runjavamidletinstaller_9.4.bat \runjavamidletinstaller.bat |
|
270 data = ZDRIVE\autohardware\testsecurity_9.4_java.bat \testsecurity.bat |
|
271 #else |
|
272 data = ZDRIVE\autohardware\testsecurity_9.6_crypto.bat \testsecurity.bat |
|
273 #endif |
|
274 |
|
275 #ifdef SYMBIAN_CRYPTOSPI |
|
276 data = ZDRIVE\autohardware\runcrypto_9.5.bat \runcrypto.bat |
|
277 #else |
|
278 data = ZDRIVE\autohardware\runcrypto_9.4.bat \runcrypto.bat |
|
279 #endif |
|
280 #endif |
|
281 |
136 |
282 data = ZDRIVE\autohardware\testsecurityperformance_cryptalg.bat \testsecurityperformance_cryptalg.bat |
137 data = ZDRIVE\autohardware\testsecurityperformance_cryptalg.bat \testsecurityperformance_cryptalg.bat |
283 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat \testsecurityperformance_crypto.bat |
138 data = ZDRIVE\autohardware\testsecurityperformance_crypto.bat \testsecurityperformance_crypto.bat |
|
139 |
|
140 #ifdef SYMBIAN_AUTH_SERVER |
|
141 #ifdef SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS |
|
142 data = ZDRIVE\autohardware\runauthtests_macroenabled.bat \runauthtests.bat |
|
143 #else |
|
144 data = ZDRIVE\autohardware\runauthtests.bat \runauthtests.bat |
|
145 #endif //SYMBIAN_ENABLE_POST_MARKET_AUTHENTICATION_PLUGINS |
|
146 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
147 data = ZDRIVE\autohardware\runfiletokens_useauth.bat \runfiletokens.bat |
|
148 #else |
|
149 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
150 data = ZDRIVE\autohardware\runfiletokens_disableauth_with_wmdrm.bat \runfiletokens.bat |
|
151 #else |
|
152 data = ZDRIVE\autohardware\runfiletokens_disableauth.bat \runfiletokens.bat |
|
153 #endif |
|
154 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
155 #else |
|
156 data = ZDRIVE\autohardware\runfiletokens.bat \runfiletokens.bat |
|
157 #endif // SYMBIAN_AUTH_SERVER |
|
158 |
|
159 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER |
|
160 data = ZDRIVE\autohardware\testsecurity_sdp_auth.bat \testsecurity.bat |
|
161 #else |
|
162 #ifdef SDP_ROM1 |
|
163 data = ZDRIVE\autohardware\testsecurity_sdp_newrom.bat \testsecurity.bat |
|
164 #else |
|
165 data = ZDRIVE\autohardware\testsecurity_sdp.bat \testsecurity.bat |
|
166 #endif |
|
167 #endif |
|
168 |
|
169 |
|
170 |
284 |
171 |
285 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well |
172 //estor.dll is put in ROFS by deafult but we need to put it into CORE as well |
286 //core version will be used; see DEF113303 for details |
173 //core version will be used; see DEF113303 for details |
287 #ifdef __SECURITY_TEST_ROM__ |
174 #ifdef __SECURITY_TEST_ROM__ |
288 #ifdef _INTERNAL_MMC |
175 #ifdef _INTERNAL_MMC |
289 ROM_IMAGE[0]{ |
|
290 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll |
|
291 } |
|
292 #elif _NAND2 |
|
293 ROM_IMAGE[0] { |
176 ROM_IMAGE[0] { |
294 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll |
177 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll |
295 } |
178 } |
296 #endif |
179 #else |
297 #endif |
180 #ifdef _NAND2 |
298 |
181 ROM_IMAGE[0] { |
|
182 file = \epoc32\release\armv5\urel\estor.dll \sys\bin\estor.dll |
|
183 } |
|
184 #endif |
|
185 #endif |
|
186 #endif |
299 |
187 |
300 REM ---------- Comms-Infras ---------- |
188 REM ---------- Comms-Infras ---------- |
301 // ced is not included in release builds by default (in commdb.iby) |
189 // ced is not included in release builds by default (in commdb.iby) |
302 // so we include it explicitly here if _DEBUG is NOT defined |
190 // so we include it explicitly here if _DEBUG is NOT defined |
303 file=ABI_DIR\BUILD_DIR\ced.exe System\Libs\ced.exe |
191 file=ABI_DIR\BUILD_DIR\ced.exe System\Libs\ced.exe |