|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The main script file for running security tests on the WhiteListBlackListUriService API |
|
15 // @internalAll |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 RUN_SCRIPT c:\TestData\Scripts\TestWListBListUriSuite_Add_Security.script |
|
21 |
|
22 |
|
23 PREFIX RUN_UTILS |
|
24 CopyFile c:\sys\bin\TestWListBListUriServer.exe c:\TestData\Scripts\TestWListBListUriServer.exe |
|
25 REMOVE_PREFIX |
|
26 |
|
27 //////////// |
|
28 // None capapility tests |
|
29 RUN_PROGRAM -1 setcap c:\TestData\Scripts\TestWListBListUriServer.exe 00000000 C:\sys\bin\TestWListBListUriServer_Cap.exe |
|
30 PRINT ***TestWListBListUriServer_Cap.exe now has None capability*** |
|
31 RUN_SCRIPT c:\TestData\Scripts\Cap_00000000_TestWListBListUri.script |
|
32 //////////// |
|
33 |
|
34 |
|
35 //////////// |
|
36 // ReadDeviceData capability tests |
|
37 RUN_PROGRAM -1 setcap c:\TestData\Scripts\TestWListBListUriServer.exe 00000010 C:\sys\bin\TestWListBListUriServer_Cap.exe |
|
38 PRINT ***TestWListBListUriServer_Cap.exe now has ReadDeviceData capability*** |
|
39 RUN_SCRIPT c:\TestData\Scripts\Cap_00000010_TestWListBListUri.script |
|
40 //////////// |
|
41 |
|
42 //////////// |
|
43 // WriteDeviceData capability tests |
|
44 RUN_PROGRAM -1 setcap c:\TestData\Scripts\TestWListBListUriServer.exe 00000020 C:\sys\bin\TestWListBListUriServer_Cap.exe |
|
45 PRINT ***TestWListBListUriServer_Cap.exe now has WriteDeviceData capability*** |
|
46 RUN_SCRIPT c:\TestData\Scripts\Cap_00000020_TestWListBListUri.script |
|
47 //////////// |
|
48 |
|
49 |
|
50 //////////// |
|
51 // ReadDeviceData & WriteDeviceData capability tests |
|
52 RUN_PROGRAM -1 setcap c:\TestData\Scripts\TestWListBListUriServer.exe 00000030 C:\sys\bin\TestWListBListUriServer_Cap.exe |
|
53 PRINT ***TestWListBListUriServer_Cap.exe now has WriteDeviceData capability*** |
|
54 RUN_SCRIPT c:\TestData\Scripts\Cap_00000030_TestWListBListUri.script |
|
55 //////////// |
|
56 |
|
57 RUN_SCRIPT c:\TestData\Scripts\TestWListBListUriSuite_Remove_Security.script |
|
58 |
|
59 // Cleanup |
|
60 PREFIX RUN_UTILS |
|
61 MakeReadWrite c:\TestData\Scripts\TestWListBListUriServer.exe |
|
62 DeleteFile c:\TestData\Scripts\TestWListBListUriServer.exe |
|
63 MakeReadWrite c:\sys\bin\TestWListBListUriServer_Cap.exe |
|
64 DeleteFile c:\sys\bin\TestWListBListUriServer_Cap.exe |
|
65 REMOVE_PREFIX |
|
66 // -------------------- |
|
67 |