os/security/contentmgmt/referencedrmagent/tcaf/scripts/consumerstep_64bit.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 the License "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 
    18 LOAD_SUITE tcaf
    19 
    20 RUN_UTILS MkDir c:\rta\
    21 RUN_UTILS MkDir c:\rta\testdata\
    22 RUN_UTILS MkDir c:\tcaf\
    23 RUN_UTILS MkDir c:\tcaf\testdata\
    24 RUN_UTILS MkDir c:\tcaf\testdata\TestAgentPrivateDir\
    25 
    26 RUN_UTILS CopyFile z:\rta\testdata\*.* c:\rta\testdata\*.*
    27 RUN_UTILS CopyFile z:\tcaf\testdata\*.* c:\tcaf\testdata\*.*
    28 RUN_UTILS CopyFile z:\tcaf\testdata\TestAgentPrivateDir\*.* c:\tcaf\testdata\TestAgentPrivateDir\*.*
    29 
    30 RUN_UTILS MakeReadWrite c:\tcaf\testdata\copyfile.txt
    31 
    32 //! @file
    33 //! @SYMTestCaseID 		SEC-CAF-CONS-0031
    34 //! @SYMTestCaseDesc 		Plaintext File Size 
    35 //!				(PlainText_File_Size_64bit)
    36 //! @SYMPREQ			PREQ1725
    37 //! @SYMTestStatus		Implemented
    38 //! @SYMTestPriority		Critical
    39 //! @SYMTestActions		Checks that the size of the file reported by RFile is the same as the size reported by CAF (F32Agent). CAF opens the file using the given filename
    40 //! @SYMTestExpectedResults	Sizes are equal
    41 //! @SYMTestType		CIT
    42 START_TESTCASE SEC-CAF-CONS-0031
    43 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent
    44 END_TESTCASE SEC-CAF-CONS-0031
    45 
    46 //! @file
    47 //! @SYMTestCaseID 		SEC-CAF-CONS-0032
    48 //! @SYMTestCaseDesc 		Plaintext File Read and Seek 
    49 //!				(PlainText_File_Read_and_Seek_64bit)
    50 //! @SYMPREQ			PREQ1725
    51 //! @SYMTestStatus		Implemented
    52 //! @SYMTestPriority		Critical
    53 //! @SYMTestActions		Checks that the data read from an RFile is the same as the data read from CAF (F32Agent). Caf opens the file using the given filename.
    54 //! @SYMTestExpectedResults	Data read is the same for both
    55 //! @SYMTestType		CIT
    56 START_TESTCASE SEC-CAF-CONS-0032
    57 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent
    58 END_TESTCASE SEC-CAF-CONS-0032
    59 
    60 //! @file
    61 //! @SYMTestCaseID 		SEC-CAF-CONS-0033
    62 //! @SYMTestCaseDesc 		64Bit DRM File Size 
    63 //!				(DRM_File_Size_64bit)
    64 //! @SYMPREQ			PREQ1725
    65 //! @SYMTestStatus		Implemented
    66 //! @SYMTestPriority		Critical
    67 //! @SYMTestActions		Checks that the size of a plaintext file reported by RFile is the same as the size of the content within a DRM file reported by CAF (TestAgent). CAF opens the file using the given filename
    68 //! @SYMTestExpectedResults	Sizes are equal
    69 //! @SYMTestType		CIT
    70 START_TESTCASE SEC-CAF-CONS-0033
    71 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent
    72 END_TESTCASE SEC-CAF-CONS-0033
    73 
    74 //! @file
    75 //! @SYMTestCaseID 		SEC-CAF-CONS-0034
    76 //! @SYMTestCaseDesc 		64 bit DRM File Read and Seek
    77 //!				(DRM_File_Read_and_Seek_64bit)
    78 //! @SYMPREQ			PREQ1725
    79 //! @SYMTestStatus		Implemented
    80 //! @SYMTestPriority		Critical
    81 //! @SYMTestActions		Checks that data read from a plaintext file by RFile is the same as data read from the content within a DRM file by CAF (TestAgent). CAF opens the file using the given filename
    82 //! @SYMTestExpectedResults	data read is the same for both
    83 //! @SYMTestType		CIT
    84 START_TESTCASE SEC-CAF-CONS-0034
    85 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent
    86 END_TESTCASE SEC-CAF-CONS-0034
    87 
    88 //! @file
    89 //! @SYMTestCaseID 		SEC-CAF-CONS-0035
    90 //! @SYMTestCaseDesc 		Compare the size of the entire file opened with TestAgent vs RFile entire file
    91 //!				(Specific_ContentObject_File_Size_64Bit)
    92 //! @SYMREQ			PREQ1725
    93 //! @SYMTestStatus		Implemented
    94 //! @SYMTestPriority		Critical
    95 //! @SYMTestActions		Checks that the size of the file reported by RFile is the same as the size reported by CAF (F32Agent). Caf opens the file using a concatenated URI and UniqueId
    96 //! @SYMTestExpectedResults	Sizes are equal
    97 //! @SYMTestType		CIT
    98 START_TESTCASE SEC-CAF-CONS-0035
    99 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI
   100 END_TESTCASE SEC-CAF-CONS-0035
   101 
   102 //! @file
   103 //! @SYMTestCaseID 		SEC-CAF-CONS-0036
   104 //! @SYMTestCaseDesc 		Read and Seek through the entire file opened with TestAgent vs RFile entire file
   105 //!				(Specific_ContentObject_Read_and_Seek_64Bit)
   106 //! @SYMREQ			PREQ1725
   107 //! @SYMTestStatus		Implemented
   108 //! @SYMTestPriority		Critical
   109 //! @SYMTestActions		Checks that the data read from an RFile is the same as the data read from CAF (TestAgent). Caf opens the file using a concatenated URI and UniqueId
   110 //! @SYMTestExpectedResults	Data read is the same for both
   111 //! @SYMTestType		CIT
   112 START_TESTCASE SEC-CAF-CONS-0036
   113 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI
   114 END_TESTCASE SEC-CAF-CONS-0036
   115 
   116 
   117 //!@file
   118 //!SYMTestCaseID 		SEC-CAF-CONS-0037
   119 //!SYMTestCaseDesc 		File with 2GB Size 
   120 //!SYMPREQ				PREQ1725
   121 //!SYMTestStatus		Implemented
   122 //!SYMTestPriority		High
   123 //!SYMTestActions		Checks that the size of the file(filesize is greater than 2GB) reported by RFile is the same as the size reported by CAF (F32Agent). CAF opens the file using the given filename
   124 //!SYMTestExpectedResults	Sizes are equal
   125 //!SYMTestType			CIT
   126 // Manual Test - Create relevant files before running this test
   127 //START_TESTCASE SEC-CAF-CONS-0037
   128 //RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent
   129 //START_TESTCASE SEC-CAF-CONS-0037
   130 
   131 
   132 //!@file
   133 //!SYMTestCaseID 		SEC-CAF-CONS-0038
   134 //!SYMTestCaseDesc 		Plaintext File (size greater than 2GB) Read and Seek 
   135 //!SYMPREQ				PREQ1725
   136 //!SYMTestStatus		Implemented
   137 //!SYMTestPriority		High
   138 //!SYMTestActions		Checks that the data read from an RFile is the same as the data read from CAF (F32Agent). Caf opens the file using the given filename.
   139 //!SYMTestExpectedResults	Data read is the same for both
   140 //!SYMTestType			CIT
   141 // Manual Test - Create relevant files before running this test
   142 //START_TESTCASE SEC-CAF-CONS-0038
   143 //RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent
   144 //START_TESTCASE SEC-CAF-CONS-0038
   145 
   146 
   147 RUN_UTILS Delete c:\supplied.drm
   148 RUN_UTILS Delete c:\receipt.txt
   149 RUN_UTILS Delete c:\OUTPUTFILE.DRM
   150 
   151 RUN_SCRIPT z:\tcaf\testcleanupstep.script
   152 
   153