|
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 "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 PRINT Running EMsvGetChildren |
|
18 |
|
19 //****************************************** |
|
20 // We need ReadData capability to get all entries. The SID determines which entries we can access |
|
21 // when we do not have proper caps. We should be able to access all entries in this test |
|
22 //****************************************** |
|
23 |
|
24 PRINT Running EMsvGetChildren : Read Caps = 0. Same SID. Should Pass. |
|
25 |
|
26 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
27 |
|
28 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
29 |
|
30 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe |
|
31 |
|
32 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
33 |
|
34 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
35 |
|
36 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildren_Pass.script |
|
37 |
|
38 // Need delay to allow SendProxyServer shutting down |
|
39 DELAY 3000 |
|
40 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
41 |
|
42 |
|
43 //****************************************** |
|
44 // We need ReadData capability to get all entries. The SID determines which entries we can access |
|
45 // when we do not have proper caps. We should be able to access all entries in this test. |
|
46 //****************************************** |
|
47 |
|
48 PRINT Running EMsvGetChildren : Read Caps = ReadUserData. Different SID. Should Pass. |
|
49 |
|
50 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
51 |
|
52 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
53 |
|
54 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00008000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
55 |
|
56 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
57 |
|
58 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
59 |
|
60 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildren_Pass.script |
|
61 |
|
62 // Need delay to allow SendProxyServer shutting down |
|
63 DELAY 3000 |
|
64 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
65 |
|
66 |
|
67 |
|
68 //****************************************** |
|
69 // We need ReadData capability to get all entries. The SID determines which entries we can access |
|
70 // when we do not have proper caps. We should only be able to access the ones we own in this test. |
|
71 //****************************************** |
|
72 |
|
73 PRINT Running EMsvGetChildren : Read Caps = 0. Same SID as half the messages. Should Pass for these. |
|
74 |
|
75 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
76 |
|
77 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
78 |
|
79 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
80 |
|
81 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CleanMessageStore.script |
|
82 |
|
83 // Create messages owned by 101F7776 |
|
84 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
85 |
|
86 // Wait for test server to die |
|
87 DELAY 5000 |
|
88 |
|
89 |
|
90 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7777 C:\sys\bin\MessagingTestServer.exe |
|
91 |
|
92 // Create messages owned by 101F7777 |
|
93 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateMultipleEntryInbox.script |
|
94 |
|
95 // should only get the messages we own |
|
96 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvGetChildren_Pass.script |
|
97 |
|
98 |
|
99 // Wait for test server to die |
|
100 DELAY 5000 |
|
101 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
102 |
|
103 |
|
104 |