dbgsrv/coredumpserver/test/automatictests/tcds_unit/scripts/tcds_unit_selflib.script
changeset 0 c6b0df440bee
equal deleted inserted replaced
-1:000000000000 0:c6b0df440bee
       
     1 //! @File
       
     2 //! @SYMTestSuiteName					DT-SELFLIB-UNIT
       
     3 //! @SYMScriptTestEnvironment			TEF
       
     4 
       
     5 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     6 // All rights reserved.
       
     7 // This component and the accompanying materials are made available
       
     8 // under the terms of "Eclipse Public License v1.0"
       
     9 // which accompanies this distribution, and is available
       
    10 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 //
       
    12 // Initial Contributors:
       
    13 // Nokia Corporation - initial contribution.
       
    14 //
       
    15 // Contributors:
       
    16 //
       
    17 // Description:
       
    18 //
       
    19 
       
    20 LOAD_SUITE tcds_unit_selflib
       
    21 
       
    22 START_TESTCASE					DT-SELFLIB-UNIT-0001
       
    23 //! @SYMTestCaseID				DT-SELFLIB-UNIT-0001
       
    24 //! @SYMTestCaseDesc			Basic NewL & NewLC testing
       
    25 //! @SYMTestPriority			Critical
       
    26 //! @SYMTestActions				Call NewL/NewLC and delete it.
       
    27 //! @SYMTestExpectedResults		Pass
       
    28 //! @SYMTestType				UT
       
    29 //! @SYMCreationDate			10/05/2009
       
    30 //! @SYMAuthor					stephenroberts
       
    31 //! @SYMTestStatus				2. Functional
       
    32 //! @SYMPREQ					PREQ2596
       
    33 	START_TEST_BLOCK	100	tcds_unit_selflib \data\tcds_unit_selflib.ini
       
    34 		CREATE_OBJECT	CSELFLibWrapper	wrapper
       
    35 		COMMAND		wrapper	PrepareFiles
       
    36 		COMMAND		wrapper	NewL
       
    37 		COMMAND		wrapper NewLC
       
    38 		COMMAND		wrapper	TearDownFiles
       
    39 	END_TEST_BLOCK
       
    40 END_TESTCASE DT-SELFLIB-UNIT-0001
       
    41 
       
    42 START_TESTCASE					DT-SELFLIB-UNIT-0002
       
    43 //! @SYMTestCaseID				DT-SELFLIB-UNIT-0002
       
    44 //! @SYMTestCaseDesc			Test that construction fails a) files with invalid signatures b) corrupt ELF files
       
    45 //! @SYMTestPriority			Critical
       
    46 //! @SYMTestActions				Call it on various files
       
    47 //! @SYMTestExpectedResults		Pass
       
    48 //! @SYMTestType				UT
       
    49 //! @SYMCreationDate			10/08/2009
       
    50 //! @SYMAuthor					stephenroberts
       
    51 //! @SYMTestStatus				2. Functional
       
    52 //! @SYMPREQ					PREQ2596
       
    53 	START_TEST_BLOCK	100	tcds_unit_selflib \data\tcds_unit_selflib.ini
       
    54 		CREATE_OBJECT	CSELFLibWrapper	wrapper
       
    55 		COMMAND		wrapper	PrepareFiles
       
    56 		COMMAND		wrapper	TestConstruction_InvalidFile_Signature
       
    57 		COMMAND		wrapper	TestConstruction_InvalidFile_Size
       
    58 		COMMAND		wrapper TestConstruction_NotSupported
       
    59 		COMMAND		wrapper TestConstruction_Inuse
       
    60 		COMMAND		wrapper	TearDownFiles
       
    61 	END_TEST_BLOCK
       
    62 END_TESTCASE DT-SELFLIB-UNIT-0002
       
    63 
       
    64 START_TESTCASE					DT-SELFLIB-UNIT-0003
       
    65 //! @SYMTestCaseID				DT-SELFLIB-UNIT-0003
       
    66 //! @SYMTestCaseDesc			Tests we can get the ELF header via SELF lib
       
    67 //! @SYMTestPriority			Critical
       
    68 //! @SYMTestActions				Open file, validate returned ELF header
       
    69 //! @SYMTestExpectedResults		Pass
       
    70 //! @SYMTestType				UT
       
    71 //! @SYMCreationDate			10/09/2009
       
    72 //! @SYMAuthor					stephenroberts
       
    73 //! @SYMTestStatus				2. Functional
       
    74 //! @SYMPREQ					PREQ2596
       
    75 	START_TEST_BLOCK	100	tcds_unit_selflib \data\tcds_unit_selflib.ini
       
    76 		CREATE_OBJECT	CSELFLibWrapper	wrapper
       
    77 		COMMAND		wrapper	PrepareFiles
       
    78 		COMMAND		wrapper	GetElfHeaderL
       
    79 		COMMAND		wrapper	TearDownFiles
       
    80 	END_TEST_BLOCK
       
    81 END_TESTCASE DT-SELFLIB-UNIT-0003
       
    82 
       
    83 START_TESTCASE					DT-SELFLIB-UNIT-0004
       
    84 //! @SYMTestCaseID				DT-SELFLIB-UNIT-0004
       
    85 //! @SYMTestCaseDesc			Test we can insert Variant Specific data to the ELF file
       
    86 //! @SYMTestPriority			Critical
       
    87 //! @SYMTestActions				Test we can insert Variant Specific data to the ELF file
       
    88 //! @SYMTestExpectedResults		Pass
       
    89 //! @SYMTestType				UT
       
    90 //! @SYMCreationDate			12/09/2009
       
    91 //! @SYMAuthor					stephenroberts
       
    92 //! @SYMTestStatus				2. Functional
       
    93 //! @SYMPREQ					PREQ2596
       
    94 	START_TEST_BLOCK	100	tcds_unit_selflib \data\tcds_unit_selflib.ini
       
    95 		CREATE_OBJECT	CSELFLibWrapper	wrapper
       
    96 		COMMAND		wrapper	PrepareFiles
       
    97 		COMMAND		wrapper	InsertVariantSpecificData
       
    98 		COMMAND		wrapper InsertMultipleVariants
       
    99 		COMMAND		wrapper InsertNothingAndUpdate
       
   100 		COMMAND		wrapper	TearDownFiles
       
   101 	END_TEST_BLOCK
       
   102 END_TESTCASE DT-SELFLIB-UNIT-0004
       
   103 
       
   104 START_TESTCASE					DT-SELFLIB-UNIT-0005
       
   105 //! @SYMTestCaseID				DT-SELFLIB-UNIT-0005
       
   106 //! @SYMTestCaseDesc			Performance test
       
   107 //! @SYMTestPriority			Critical
       
   108 //! @SYMTestActions				Test the performance is acceptable
       
   109 //! @SYMTestExpectedResults		Pass
       
   110 //! @SYMTestType				UT
       
   111 //! @SYMCreationDate			16/09/2009
       
   112 //! @SYMAuthor					stephenroberts
       
   113 //! @SYMTestStatus				2. Functional
       
   114 //! @SYMPREQ					PREQ2596
       
   115 	START_TEST_BLOCK	1000000	tcds_unit_selflib \data\tcds_unit_selflib.ini
       
   116 		CREATE_OBJECT	CSELFLibWrapper	wrapper
       
   117 		COMMAND		wrapper	PrepareFiles
       
   118 		COMMAND		wrapper	TestPerformance
       
   119 		COMMAND		wrapper TestStress
       
   120 		COMMAND		wrapper	TearDownFiles
       
   121 	END_TEST_BLOCK
       
   122 END_TESTCASE DT-SELFLIB-UNIT-0005