os/persistentdata/loggingservices/eventlogger/test/tef/teflogengbur/scripts/teflogengbur.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-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 //
    15 // @file
    16 //
    17 
    18 //! @SYMTestSuiteName SYSLIB-LOGENG-TEFLOGENGBUR
    19 //! @SYMScriptTestEnvironment this script should be run in Textshell. BURTestserver must be built for this test to run.For HW testing the ROM build must include those iby's that SBE depends on. 
    20 //! @internalComponent
    21 //! @test
    22 
    23 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
    24 
    25 PRINT Run all log engine backup and restore tests
    26 
    27 LOAD_SUITE teflogengbur
    28 LOAD_SUITE BURTestServer
    29 
    30 START_TESTCASE   SYSLIB-LOGENG-CT-1436  //Logengine backup and restore
    31 //! @SYMTestCaseID SYSLIB-LOGENG-CT-1436
    32 //! @SYMTestCaseDesc Tests tests log engine backup and restore with log engine shutting down between backup and restore
    33 //!                  This is intended as only a basic test to make sure backup and restore is configured properly. Additional backup testing can be found in t_logbackup.
    34 //! @SYMTestPriority High
    35 //! @SYMTestActions Initialize some data in the log engine, use the backup and restore test server to do a backup of C:, 
    36 //!                 delete the log engine database, then use the backup and restore test server to do a restore
    37 //! @SYMTestExpectedResults After the restore, logging from the initialize step is not lost
    38 //! @SYMDEF INC069553
    39 
    40 	
    41 	PRINT Initialize data set 1 in the log engine
    42 	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
    43 	
    44 	PRINT Backup C:
    45 	RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
    46 	
    47 	PRINT Stop the log engine and delete the database
    48 	RUN_TEST_STEP 100 teflogengbur StopLogServerStep
    49 	
    50 	PRINT Restore C: with log engine shut down
    51 	RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
    52 	
    53 	PRINT Check that data was not lost
    54 	RUN_TEST_STEP 100 teflogengbur BackupRestoreVerifyStep z:\TEF_LogEng\testdata_config.ini DataSet1
    55 
    56 END_TESTCASE   SYSLIB-LOGENG-CT-1436  //Logengine backup and restore
    57 
    58 
    59 START_TESTCASE   SYSLIB-LOGENG-CT-1437  //Logengine backup and restore
    60 //! @SYMTestCaseID SYSLIB-LOGENG-CT-1437
    61 //! @SYMTestCaseDesc Tests tests log engine backup and restore with log engine running during the restore
    62 //! @SYMTestCaseDesc This is intended as only a basic test to make sure backup and restore is configured properly. Additional backup testing can be found in t_logbackup.
    63 //! @SYMTestPriority High
    64 //! @SYMTestActions Initialize some data in the log engine, use the backup and restore test server to do a backup of C:, 
    65 //!                 delete the log engine database, then add different data to the log engine. Do a restore with log engine running.
    66 //! @SYMTestExpectedResults After the restore, the data from the initial backup is restored.
    67 //! @SYMDEF INC069553
    68 
    69 	
    70 	PRINT Initialize data set 1 in the log engine
    71 	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
    72 	
    73 	PRINT Backup C: (with the data from data set 1)
    74 	RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
    75 
    76 	PRINT Stop the log engine and delete the database
    77 	RUN_TEST_STEP 100 teflogengbur StopLogServerStep
    78 	
    79 	PRINT Add to the log engine different data from above (using data set 2)
    80 	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet2
    81 	
    82 	PRINT Restore C: with log engine running
    83 	RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
    84 	
    85 	PRINT Check that the data from the backup is not lost
    86 	RUN_TEST_STEP 100 teflogengbur BackupRestoreVerifyStep z:\TEF_LogEng\testdata_config.ini DataSet1
    87 	PRINT Check that the data from after the backup no longer exists (by making sure the verify step fails)
    88 	RUN_TEST_STEP_RESULT -1 100 teflogengbur BackupRestoreVerifyStep2 z:\TEF_LogEng\testdata_config.ini DataSet2
    89 
    90 END_TESTCASE   SYSLIB-LOGENG-CT-1437  // Logengine backup and restore
    91 
    92 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
    93 
    94 PRINT Completed log engine backup and restore tests