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.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
// @file
sl@0
    16
//
sl@0
    17
sl@0
    18
//! @SYMTestSuiteName SYSLIB-LOGENG-TEFLOGENGBUR
sl@0
    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. 
sl@0
    20
//! @internalComponent
sl@0
    21
//! @test
sl@0
    22
sl@0
    23
RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
sl@0
    24
sl@0
    25
PRINT Run all log engine backup and restore tests
sl@0
    26
sl@0
    27
LOAD_SUITE teflogengbur
sl@0
    28
LOAD_SUITE BURTestServer
sl@0
    29
sl@0
    30
START_TESTCASE   SYSLIB-LOGENG-CT-1436  //Logengine backup and restore
sl@0
    31
//! @SYMTestCaseID SYSLIB-LOGENG-CT-1436
sl@0
    32
//! @SYMTestCaseDesc Tests tests log engine backup and restore with log engine shutting down between backup and restore
sl@0
    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.
sl@0
    34
//! @SYMTestPriority High
sl@0
    35
//! @SYMTestActions Initialize some data in the log engine, use the backup and restore test server to do a backup of C:, 
sl@0
    36
//!                 delete the log engine database, then use the backup and restore test server to do a restore
sl@0
    37
//! @SYMTestExpectedResults After the restore, logging from the initialize step is not lost
sl@0
    38
//! @SYMDEF INC069553
sl@0
    39
sl@0
    40
	
sl@0
    41
	PRINT Initialize data set 1 in the log engine
sl@0
    42
	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
sl@0
    43
	
sl@0
    44
	PRINT Backup C:
sl@0
    45
	RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
sl@0
    46
	
sl@0
    47
	PRINT Stop the log engine and delete the database
sl@0
    48
	RUN_TEST_STEP 100 teflogengbur StopLogServerStep
sl@0
    49
	
sl@0
    50
	PRINT Restore C: with log engine shut down
sl@0
    51
	RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
sl@0
    52
	
sl@0
    53
	PRINT Check that data was not lost
sl@0
    54
	RUN_TEST_STEP 100 teflogengbur BackupRestoreVerifyStep z:\TEF_LogEng\testdata_config.ini DataSet1
sl@0
    55
sl@0
    56
END_TESTCASE   SYSLIB-LOGENG-CT-1436  //Logengine backup and restore
sl@0
    57
sl@0
    58
sl@0
    59
START_TESTCASE   SYSLIB-LOGENG-CT-1437  //Logengine backup and restore
sl@0
    60
//! @SYMTestCaseID SYSLIB-LOGENG-CT-1437
sl@0
    61
//! @SYMTestCaseDesc Tests tests log engine backup and restore with log engine running during the restore
sl@0
    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.
sl@0
    63
//! @SYMTestPriority High
sl@0
    64
//! @SYMTestActions Initialize some data in the log engine, use the backup and restore test server to do a backup of C:, 
sl@0
    65
//!                 delete the log engine database, then add different data to the log engine. Do a restore with log engine running.
sl@0
    66
//! @SYMTestExpectedResults After the restore, the data from the initial backup is restored.
sl@0
    67
//! @SYMDEF INC069553
sl@0
    68
sl@0
    69
	
sl@0
    70
	PRINT Initialize data set 1 in the log engine
sl@0
    71
	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
sl@0
    72
	
sl@0
    73
	PRINT Backup C: (with the data from data set 1)
sl@0
    74
	RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
sl@0
    75
sl@0
    76
	PRINT Stop the log engine and delete the database
sl@0
    77
	RUN_TEST_STEP 100 teflogengbur StopLogServerStep
sl@0
    78
	
sl@0
    79
	PRINT Add to the log engine different data from above (using data set 2)
sl@0
    80
	RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet2
sl@0
    81
	
sl@0
    82
	PRINT Restore C: with log engine running
sl@0
    83
	RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
sl@0
    84
	
sl@0
    85
	PRINT Check that the data from the backup is not lost
sl@0
    86
	RUN_TEST_STEP 100 teflogengbur BackupRestoreVerifyStep z:\TEF_LogEng\testdata_config.ini DataSet1
sl@0
    87
	PRINT Check that the data from after the backup no longer exists (by making sure the verify step fails)
sl@0
    88
	RUN_TEST_STEP_RESULT -1 100 teflogengbur BackupRestoreVerifyStep2 z:\TEF_LogEng\testdata_config.ini DataSet2
sl@0
    89
sl@0
    90
END_TESTCASE   SYSLIB-LOGENG-CT-1437  // Logengine backup and restore
sl@0
    91
sl@0
    92
RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
sl@0
    93
sl@0
    94
PRINT Completed log engine backup and restore tests