baseapitest/basesvs/performance/f32/t_perf/scripts/pbase-f32-rfile-performance-medium.script
author John Imhofe
Mon, 19 Oct 2009 15:55:17 +0100
changeset 0 a41df078684a
child 2 4122176ea935
permissions -rw-r--r--
Convert Kernelhwsrv package from SFL to EPL kernel\eka\compsupp is subject to the ARM EABI LICENSE userlibandfileserver\fatfilenameconversionplugins\unicodeTables is subject to the Unicode license kernel\eka\kernel\zlib is subject to the zlib license
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     1
//
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     2
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     3
// All rights reserved.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     4
// This component and the accompanying materials are made available
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     5
// under the terms of the License "Eclipse Public License v1.0"
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     6
// which accompanies this distribution, and is available
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     7
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     8
//
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
     9
// Initial Contributors:
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    10
// Nokia Corporation - initial contribution.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    11
//
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    12
// Contributors:
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    13
//
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    14
// Description:
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    15
//
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    16
//! @file
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    17
//! @SYMTestSuiteName		pbase-f32-rfile-performance-medium
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    18
//! @SYMScriptDescription	The test script contains performance tests for the following API of the
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    19
//!				RFile class:
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    20
//!				TInt Read(TDes8 &aDes, TInt aLength) const;
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    21
//!				TInt Read(TInt aPos, TDes8 &aDes, TInt aLength) const;
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    22
//!				TInt Seek(TSeek aMode, TInt &aPos) const;
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    23
//!				TInt Write(const TDesC8 &aDes, TInt aLength);
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    24
//!				TInt Write(TInt aPos, const TDesC8 &aDes);
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    25
//! @SYMScriptTestEnvironment	This test script requires a NAND or NOR configuration ROM image
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    26
//!				when running this suite with test driver ensure STAT is built into the ROM
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    27
//! @SYMScriptAutomation	Test Execute Framework and Test Driver
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    28
//! @SYMScriptAuthor 		Rehana Anwar
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    29
//! @SYMScriptCreationDate	10/05/2007
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    30
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    31
LOAD_SUITE t_perf
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    32
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    33
START_TESTCASE			pbase-f32-rfile-performance-medium-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    34
//! @SYMTestCaseID		pbase-f32-rfile-performance-medium-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    35
//! @SYMComponent		RFile::Read
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    36
//! @SYMTestCaseDesc		Read test: Tests the performance of TInt Read(TDes8 &aDes, TInt aLength).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    37
//!				Here each teststep calculates the time taken to make 500 calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    38
//!				using a specified blockSize of bytes (specifed by that step).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    39
//!				Where blockSize denotes the parameter TInt aLength within the above API.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    40
//!				Here the blocksize increment for each teststep is as follows:  16b , 512b, 4096b, 32768b, 65536b. 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    41
//!				These byte values map to the respective parameter names within the configuration ini file: XSBytes,SBytes,MBytes,LBytes,XLBytes 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    42
//!				The values within these parameter names are therefore configurable values.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    43
//!				This test case contains five read performance tests they are as follows: read 16b ,512b,4096b, 32768b, 65536b
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    44
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    45
//! @SYMTestActions		1. Create  X number of files and directory structure<drive>:\<baseDirName>\<subDirName>.........X files
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    46
//!				2. Create number of files requested and set the file size (file size varies according to read test)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    47
//!				3. Fill in each file with file data.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    48
//!				4. Start the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    49
//!				5. Ensure the current position is set to beginning of the file ( this offset will increment for each api call).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    50
//!				6. Read aLength bytes (i.e. aLength = 16) from file specified, from the position set in step5 in the file.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    51
//!				7. Repeat step 6, X times each ( where x=500 and is the number of function calls specified, note that the file offset will increment).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    52
//!				8. Stop the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    53
//!				9. Record the elapsed time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    54
//!				10. Calculate the time taken to achieve the current seek file position and subtract from time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    55
//!				11. Calculate and print the time taken per call i.e. t/X( where x is the number of function calls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    56
//!				and print time t total time for all function calls.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    57
//!				12. Repeat steps 4-11 for each read  test scenario.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    58
//!				13. Delete the directory structure created.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    59
//! @SYMTestPriority		High
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    60
//! @SYMTestExpectedResults	The average time taken per call and the total time taken for all calls is displayed
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    61
RUN_TEST_STEP			960	t_perf	SetupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    62
RUN_TEST_STEP			500	t_perf	ReadFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0001-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    63
RUN_TEST_STEP			500	t_perf	ReadFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0001-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    64
RUN_TEST_STEP			500	t_perf	ReadFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0001-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    65
RUN_TEST_STEP			500	t_perf	ReadFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0001-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    66
RUN_TEST_STEP			500	t_perf	ReadFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0001-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    67
RUN_TEST_STEP			960	t_perf	CleanupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    68
END_TESTCASE			pbase-f32-rfile-performance-medium-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    69
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    70
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    71
START_TESTCASE			pbase-f32-rfile-performance-medium-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    72
//! @SYMTestCaseID		pbase-f32-rfile-performance-medium-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    73
//! @SYMAPI			RFile::Read
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    74
//! @SYMTestCaseDesc		Read Seek test:Tests the performance of TInt Read(TInt aPos, TDes8 &aDes, TInt aLength).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    75
//!				by calculating the time taken to make X calls with varying values of the position from
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    76
//!				where the file is read from i.e. aPos and no. of bytes read i.e. aLength.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    77
//!				Here each teststep calculates the time taken to make 500 calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    78
//!				using a specified blockSize of bytes (specifed by that step) & varying positions within the file.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    79
//!				Where blockSize denotes the parameter TInt aLength and the offset denotes the parameter TInt aPos within the above API.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    80
//!				Here the blocksize increment for each teststep is as follows:  16b , 512b, 4096b, 32768b, 65536b. 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    81
//!				These byte values map to the respective parameter names within the configuration ini file: XSBytes,SBytes,MBytes,LBytes,XLBytes 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    82
//!				The values within these parameter names are therefore configurable values.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    83
//!				This test case contains five read seek performance tests they are as follows: read 16b ,512b,4096b, 32768b, 65536b
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    84
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    85
//! @SYMTestActions		1. Create  X number of files and directory structure<drive>:\<baseDirName>\<subDirName>.........X files
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    86
//!				2. Create number of files requested and set the file size (file size varies according to read seek test)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    87
//!				3. Fill in each file with file data.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    88
//!				4. Start the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    89
//!				5. Read aLength bytes (i.e. aLength = 16) from file specified, from the current position of the file ( initially this position is 0, this offset will increment for each api call).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    90
//!				6. Repeat step 6 & 7,500 times each ( where this is the number of function calls specified and where the position is set in step5 in the file.).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    91
//!				7. Stop the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    92
//!				8. Record the elapsed time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    93
//!				9. Calculate the time taken to calculate the current file position and subtract from time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    94
//!				10. Calculate and print the time taken per call i.e. t/X ( where x is the number of function calls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    95
//!				and print time t total time for all function calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    96
//!				11. Repeat steps 4-10 for each read seek  test scenario.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    97
//!				12. Delete the directory structure created.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    98
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
    99
//! @SYMTestPriority		High
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   100
//! @SYMTestExpectedResults	The average time taken per call and the total time taken for all calls is displayed
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   101
RUN_TEST_STEP			960	t_perf  SetupStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   102
RUN_TEST_STEP			500	t_perf  ReadFileStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0002-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   103
RUN_TEST_STEP			500	t_perf  ReadFileStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0002-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   104
RUN_TEST_STEP			500	t_perf  ReadFileStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0002-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   105
RUN_TEST_STEP			500	t_perf  ReadFileStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0002-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   106
RUN_TEST_STEP			500	t_perf  ReadFileStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0002-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   107
RUN_TEST_STEP			960	t_perf  CleanupStep   	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   108
END_TESTCASE			pbase-f32-rfile-performance-medium-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   109
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   110
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   111
START_TESTCASE			pbase-f32-rfile-performance-medium-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   112
//! @SYMTestCaseID		pbase-f32-rfile-performance-medium-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   113
//! @SYMAPI			RFile::Seek
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   114
//! @SYMTestCaseDesc		Seek test: Tests the performance of TInt Seek(TSeek aMode, TInt &aPos)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   115
//!				by calculating the time taken to make 500 calls(where this is read in from the ini file as functionCalls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   116
//!				with varying values that set  positions within a file. Here aMode is set to the TSeek enumeration value ESeekStart. 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   117
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   118
//! @SYMTestActions		1. Create  X number of files and directory structure<drive>:\<baseDirName>\<subDirName>.........X files
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   119
//!				2. Create number of files requested and set the file size (file size varies according to each seek tests tep)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   120
//!				3. Fill in each file with file data.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   121
//!				4. Start the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   122
//!				5. Seek aPos bytes (i.e. aPos= 2) from from the file specified
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   123
//!				6. Repeat step 4 &5,500 times each ( where this is the number of function calls specified, & where the position is incremented in step5 in the file.).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   124
//!				7. Stop the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   125
//!				8. Record the elapsed time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   126
//!				9. Calculate the time taken to calculate the current file position and subtract from time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   127
//!				10. Calculate and print the time taken per call i.e. t/X ( where x is the number of function calls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   128
//!				and print time t total time for all function calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   129
//!				11. Delete the directory structure created.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   130
//!				12. Repeat steps 1-11 for each seek test scenario.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   131
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   132
//! @SYMTestPriority		High
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   133
//! @SYMTestExpectedResults	The average time taken per call and the total time taken for all calls is displayed
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   134
RUN_TEST_STEP			960	t_perf	SetupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0003-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   135
RUN_TEST_STEP			500	t_perf	SeekFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0003-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   136
RUN_TEST_STEP			960	t_perf	CleanupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0003-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   137
END_TESTCASE			pbase-f32-rfile-performance-medium-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   138
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   139
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   140
START_TESTCASE			pbase-f32-rfile-performance-medium-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   141
//! @SYMTestCaseID		pbase-f32-rfile-performance-medium-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   142
//! @SYMAPI			RFile::Write
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   143
//! @SYMTestCaseDesc		Write Test: Tests the performance of TInt write(TDes8 &aDes, TInt aLength).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   144
//!				Here each teststep calculates the time taken to make 500 calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   145
//!				using a specified blockSize of bytes (specifed by that step).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   146
//!				Where blockSize denotes the parameter TInt aLength within the above API.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   147
//!				Here the blocksize increment for each teststep is as follows:  16b , 512b, 4096b, 32768b, 65536b. 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   148
//!				These byte values map to the respective parameter names within the configuration ini file: XSBytes,SBytes,MBytes,LBytes,XLBytes 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   149
//!				The values within these parameter names are therefore configurable values.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   150
//!				This test case contains five write performance tests they are as follows: Write 16b ,512b,4096b, 32768b, 65536b.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   151
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   152
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   153
//! @SYMTestActions		1. Create  X number of files and directory structure<drive>:\<baseDirName>\<subDirName>.........X files
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   154
//!				2. Create number of files requested and set the file size (file size varies according to write test)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   155
//!				3. Fill in each file with file data.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   156
//!				4. Start the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   157
//!				5. Ensure the current position is set to beginning of the file ( this offset will increment for each api call).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   158
//!				6. Write aLength bytes (i.e. aLength = 16) from file specified, from the position set in step5 in the file.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   159
//!				7. Repeat step 6, 500 times each ( where this is the number of function calls specified, note that the file offset will increment).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   160
//!				8. Stop the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   161
//!				9. Record the elapsed time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   162
//!				10. Calculate the time taken to achieve the current seek file position and subtract from time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   163
//!				11. Calculate and print the time taken per call i.e. t/X( where x is the number of function calls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   164
//!				and print time t total time for all function calls.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   165
//!				12. Repeat steps 4-11 for each read  test scenario.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   166
//!				13. Delete the directory structure created.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   167
//! @SYMTestPriority		High
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   168
//! @SYMTestExpectedResults	The average time taken per call and the total time taken for all calls is displayed.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   169
RUN_TEST_STEP			960	t_perf	SetupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   170
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0004-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   171
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0004-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   172
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0004-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   173
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0004-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   174
RUN_TEST_STEP			1000	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0004-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   175
RUN_TEST_STEP			960	t_perf	CleanupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   176
END_TESTCASE			pbase-f32-rfile-performance-medium-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   177
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   178
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   179
START_TESTCASE			pbase-f32-rfile-performance-medium-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   180
//! @SYMTestCaseID		pbase-f32-rfile-performance-medium-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   181
//! @SYMAPI			RFile::Write
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   182
//! @SYMTestCaseDesc		Write seek test:Tests the performance of TInt Write(TInt aPos, TDes8 &aDes, TInt aLength).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   183
//!				by calculating the time taken to make X calls with varying values of the position
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   184
//!				from where the file is read from i.e. aPos and no. of bytes written i.e. aLength
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   185
//!				Here each teststep calculates the time taken to make X calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   186
//!				(where x is read in from the ini file as functionCalls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   187
//!				using a specified blockSize of bytes (specifed by that step) &  varying positions within the file.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   188
//!				Where blockSize denotes the parameter TInt aLength and the offset denotes the parameter TInt aPos within the above API.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   189
//!				Here the blocksize increment for each teststep is as follows:  16b, 512b, 4096b, 32768b, 65536b. 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   190
//!				These byte values map to the respective parameter names within the configuration ini file: XSBytes,SBytes,MBytes,LBytes,XLBytes 
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   191
//!				The values within these parameter names are therefore configurable values.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   192
//!				This test case contains five write seek performance tests they are as follows: write 16b ,512b,4096b, 32768b, 65536b
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   193
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   194
//! @SYMTestActions		1. Create  X number of files and directory structure<drive>:\<baseDirName>\<subDirName>.........X files
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   195
//!				2. Create number of files requested and set the file size (file size varies according to write seek test)
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   196
//!				3. Fill in each file with file data.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   197
//!				4. Start the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   198
//!				5. Write aLength bytes (i.e. aLength = 16) from file specified, from the current position of the file ( initially this position is 0, this offset will increment for each api call).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   199
//!				6. Repeat step 6 & 7, 500 times each ( where this is the number of function calls specified and where the position is incremented in step5 in the file.).
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   200
//!				7. Stop the clock
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   201
//!				8. Record the elapsed time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   202
//!				9. Calculate the time taken to calculate the current file position and subtract from time t
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   203
//!				10. Calculate and print the time taken per call i.e. t/X ( where x is the number of function calls),
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   204
//!				and print time t total time for all function calls
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   205
//!				11. Repeat steps 4-10 for each read seek  test scenario.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   206
//!				12. Delete the directory structure created.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   207
//!
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   208
//! @SYMTestPriority		High
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   209
//! @SYMTestExpectedResults	The average time taken per call and the total time taken for all calls is displayed.
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   210
RUN_TEST_STEP			960	t_perf	SetupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   211
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0005-0001
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   212
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0005-0002
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   213
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0005-0003
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   214
RUN_TEST_STEP			500	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0005-0004
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   215
RUN_TEST_STEP			1000	t_perf	WriteFileStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	pbase-f32-rfile-performance-medium-0005-0005
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   216
RUN_TEST_STEP			960	t_perf	CleanupStep	\base\performance\f32\pbase-f32-rfile-performance-medium.ini	Utils
a41df078684a Convert Kernelhwsrv package from SFL to EPL
John Imhofe
parents:
diff changeset
   217
END_TESTCASE			pbase-f32-rfile-performance-medium-0005