os/persistentdata/loggingservices/eventlogger/test/tef/teflogengbur/scripts/teflogengbur.script
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
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
23 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
25 PRINT Run all log engine backup and restore tests
27 LOAD_SUITE teflogengbur
28 LOAD_SUITE BURTestServer
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
41 PRINT Initialize data set 1 in the log engine
42 RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
45 RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
47 PRINT Stop the log engine and delete the database
48 RUN_TEST_STEP 100 teflogengbur StopLogServerStep
50 PRINT Restore C: with log engine shut down
51 RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
53 PRINT Check that data was not lost
54 RUN_TEST_STEP 100 teflogengbur BackupRestoreVerifyStep z:\TEF_LogEng\testdata_config.ini DataSet1
56 END_TESTCASE SYSLIB-LOGENG-CT-1436 //Logengine backup and restore
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.
70 PRINT Initialize data set 1 in the log engine
71 RUN_TEST_STEP 100 teflogengbur BackupRestoreInitializeStep z:\TEF_LogEng\testdata_config.ini DataSet1
73 PRINT Backup C: (with the data from data set 1)
74 RUN_TEST_STEP -1 BURTestServer TestBackup z:\TEF_LogEng\bur_config.ini
76 PRINT Stop the log engine and delete the database
77 RUN_TEST_STEP 100 teflogengbur StopLogServerStep
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
82 PRINT Restore C: with log engine running
83 RUN_TEST_STEP -1 BURTestServer TestRestore z:\TEF_LogEng\bur_config.ini
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
90 END_TESTCASE SYSLIB-LOGENG-CT-1437 // Logengine backup and restore
92 RUN_UTILS DeleteFile c:\private\101f401d\Logdbu.dat
94 PRINT Completed log engine backup and restore tests