messagingfw/msgtestfw/TestCases/ScriptedTestCases/Capabilities/cap_emsvcurrentdriveinfo.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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  EMsvCurrentDriveInfo
       
    18 
       
    19 LOAD_SERVER t_media  -SharedData
       
    20 START_TEST_BLOCK	100	t_media		c:\msgtest\testframework\scriptedtestcases\capabilities\cap_emsvcurrentdriveinfo.ini
       
    21 	CREATE_OBJECT	CenRepTestWrapper	0100_obj
       
    22 	COMMAND		0100_obj		ResetCentralRepository	0100_ResetCentralRepository
       
    23 END_TEST_BLOCK
       
    24 
       
    25 
       
    26 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.ini	c:\private\1000484b\msgprioritydrivelist.bak
       
    27 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    28 RUN_UTILS  CopyFile   		c:\msgtest\media\msg-adddrive-cap.ini		c:\private\1000484b\msgprioritydrivelist.ini
       
    29 
       
    30 //******************************************
       
    31 // We don't need any capabilities to call EMsvCurrentDriveInfo.
       
    32 // Likewise, the SID does not matter either. This call always succeeds.
       
    33 //******************************************
       
    34 
       
    35 PRINT Running  EMsvCurrentDriveInfo : Read Caps = 0. Same SID. Should Pass.
       
    36 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    37 
       
    38 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    39 
       
    40 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    41 
       
    42 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvCurrentDriveInfo.script
       
    43 
       
    44 // Need delay to allow SendProxyServer shutting down
       
    45 DELAY 3000
       
    46 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    47 
       
    48 //******************************************
       
    49 // We don't need any capabilities to call EMsvCurrentDriveInfo.
       
    50 // Likewise, the SID does not matter either. This call always succeeds.
       
    51 //******************************************
       
    52 
       
    53 PRINT Running  EMsvCurrentDriveInfo : Read Caps = 0. Different SID. Should Pass.
       
    54 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    55 
       
    56 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    57 
       
    58 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    59 
       
    60 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvCurrentDriveInfo.script
       
    61 
       
    62 DELAY 3000
       
    63 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    64 
       
    65 RUN_UTILS  MakeReadWrite  	c:\private\1000484b\msgprioritydrivelist.ini
       
    66 RUN_UTILS  CopyFile   		c:\private\1000484b\msgprioritydrivelist.bak	c:\private\1000484b\msgprioritydrivelist.ini
       
    67 RUN_UTILS  DeleteFile		c:\private\1000484b\msgprioritydrivelist.bak