|
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 EMsvStopService |
|
18 |
|
19 //****************************************** |
|
20 // Cap_EMsvStopService.script : Needs NetworkServices. SID should not matter. |
|
21 //****************************************** |
|
22 |
|
23 PRINT Running EMsvStopService : Read Caps = NetworkServices. Same SID. Should Pass. |
|
24 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
25 |
|
26 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
27 |
|
28 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00002000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe |
|
29 |
|
30 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvStopService_Pass.script |
|
31 |
|
32 // Need delay to allow SendProxyServer shutting down |
|
33 DELAY 3000 |
|
34 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
35 |
|
36 //****************************************** |
|
37 // Cap_EMsvStopService.script : Needs NetworkServices. SID should not matter. |
|
38 //****************************************** |
|
39 |
|
40 PRINT Running EMsvGetEntry : Read Caps = None. Same SID. Should Fail. |
|
41 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
42 |
|
43 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
44 |
|
45 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe |
|
46 |
|
47 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvStopService_Fail.script |
|
48 |
|
49 // Need delay to allow SendProxyServer shutting down |
|
50 DELAY 3000 |
|
51 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
52 |
|
53 //****************************************** |
|
54 // Cap_EMsvStopService.script : Needs NetworkServices. SID should not matter. |
|
55 //****************************************** |
|
56 |
|
57 PRINT Running EMsvGetEntry : Read Caps = WriteDeviceData. Different SID. Should Fail. |
|
58 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
59 |
|
60 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
61 |
|
62 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000020 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
63 |
|
64 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvStopService_Fail.script |
|
65 |
|
66 // Need delay to allow SendProxyServer shutting down |
|
67 DELAY 3000 |
|
68 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |
|
69 |
|
70 //****************************************** |
|
71 // Cap_EMsvStopService.script : Needs NetworkServices. SID should not matter. |
|
72 //****************************************** |
|
73 |
|
74 PRINT Running EMsvGetEntry : Read Caps = None. Different SID. Should Fail |
|
75 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script |
|
76 |
|
77 |
|
78 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe |
|
79 |
|
80 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe |
|
81 |
|
82 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvStopService_Fail.script |
|
83 |
|
84 // Need delay to allow SendProxyServer shutting down |
|
85 DELAY 3000 |
|
86 RUN_SCRIPT c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script |