commonappservices/alarmservertest/TestAlarmSrv/Alarm.script
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     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 PREFIX RUN_UTILS
       
    18 CopyFile c:\sys\bin\Cap_Alarm.exe c:\TestData\Scripts\Cap_Alarm.exe
       
    19 REMOVE_PREFIX
       
    20 
       
    21 // Start ConsoleAlarmAlertServer so that AlarmServer is able to run.
       
    22 LOAD_SUITE StartCAAS
       
    23 PRINT	-------- Starting ConsoleAlarmAlertServer
       
    24 RUN_TEST_STEP 2000 StartCAAS Start_ConsoleAlarmAlertServer
       
    25 
       
    26 
       
    27 //To delete all alarms
       
    28 RUN_PROGRAM -1 AlarmDelete
       
    29 
       
    30 //To create an alarm
       
    31 RUN_PROGRAM -1 AlarmCreate
       
    32 
       
    33 // Ultimate paths for Cap_Alarm_sc.exe:
       
    34 //	Emulator 9.1(EKA2)	- C:\sys\bin\		- have to create
       
    35 //	Emulator 	(EKA1)	- C:\system\programs\
       
    36 //	H2 		(EKA2)	- C:\sys\bin\		- have to create
       
    37 //	Lubboc	(EKA1)	- C:\system\programs\
       
    38 //RUN_UTILS MkDir C:\sys\bin\
       
    39 
       
    40 // --------------------
       
    41 // Use Setcap to change capabilities of harness (MASK = 00000004)
       
    42 RUN_PROGRAM -1 setcap c:\TestData\Scripts\Cap_Alarm.exe 00000004 C:\sys\bin\Cap_Alarm_sc.exe
       
    43 //Please don't ammend the following PRINT Line as it is used by CapToolSumm to generate its report
       
    44 PRINT --------  capabilities now set to [PowerMgmt] (MASK = 00000004)  --------
       
    45 
       
    46 RUN_SCRIPT  c:\TestData\Scripts\Cap_00000004_AlarmSub_Custom.script
       
    47 
       
    48 //To delete all alarms
       
    49 RUN_PROGRAM -1 AlarmDelete
       
    50 
       
    51 // --------------------
       
    52 // Use Setcap to change capabilities of harness (MASK = 00010004)
       
    53 RUN_PROGRAM -1 setcap c:\TestData\Scripts\Cap_Alarm.exe 00010004 C:\sys\bin\Cap_Alarm_sc.exe
       
    54 //Please don't ammend the following PRINT Line as it is used by CapToolSumm to generate its report
       
    55 PRINT --------  capabilities now set to [WriteUserData PowerMgmt] (MASK = 00010004)  --------
       
    56 
       
    57 RUN_SCRIPT  c:\TestData\Scripts\Cap_00010004_AlarmSub.script
       
    58 // --------------------
       
    59 // Use Setcap to change capabilities of harness (MASK = 00000004)
       
    60 RUN_PROGRAM -1 setcap c:\TestData\Scripts\Cap_Alarm.exe 00000004 C:\sys\bin\Cap_Alarm_sc.exe
       
    61 //Please don't ammend the following PRINT Line as it is used by CapToolSumm to generate its report
       
    62 PRINT --------  capabilities now set to [PowerMgmt] (MASK = 00000004)  --------
       
    63 
       
    64 RUN_SCRIPT  c:\TestData\Scripts\Cap_00000004_AlarmSub.script
       
    65 
       
    66 //To delete all alarms
       
    67 RUN_PROGRAM -1 AlarmDelete
       
    68 
       
    69 // --------------------
       
    70 // Use Setcap to change capabilities of harness (MASK = 00000024)
       
    71 RUN_PROGRAM -1 setcap c:\TestData\Scripts\Cap_Alarm.exe 00000024 C:\sys\bin\Cap_Alarm_sc.exe
       
    72 //Please don't ammend the following PRINT Line as it is used by CapToolSumm to generate its report
       
    73 PRINT --------  capabilities now set to [WriteDeviceData PowerMgmt] (MASK = 00000024)  --------
       
    74 
       
    75 RUN_SCRIPT  c:\TestData\Scripts\Cap_00000024_AlarmSub.script
       
    76 // --------------------
       
    77 // Use Setcap to change capabilities of harness (MASK = 00008004)
       
    78 RUN_PROGRAM -1 setcap c:\TestData\Scripts\Cap_Alarm.exe 00008004 C:\sys\bin\Cap_Alarm_sc.exe
       
    79 //Please don't ammend the following PRINT Line as it is used by CapToolSumm to generate its report
       
    80 PRINT --------  capabilities now set to [ReadUserData PowerMgmt] (MASK = 00008004)  --------
       
    81 
       
    82 RUN_SCRIPT  c:\TestData\Scripts\Cap_00008004_AlarmSub.script
       
    83 
       
    84 // --------------------
       
    85 // Cleanup
       
    86 PREFIX RUN_UTILS
       
    87 MakeReadWrite c:\TestData\Scripts\Cap_Agenda.exe
       
    88 DeleteFile c:\TestData\Scripts\Cap_Agenda.exe
       
    89 REMOVE_PREFIX
       
    90 // --------------------